Mercurial > dovecot > original-hg > dovecot-1.2
annotate src/lib/sendfile-util.h @ 58:8aaa39e7aec8 HEAD
sendfile() works now properly with 64bit off_t
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 28 Aug 2002 03:11:51 +0300 |
parents | |
children | ee4bdf40ec10 |
rev | line source |
---|---|
58
8aaa39e7aec8
sendfile() works now properly with 64bit off_t
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
1 #ifndef __SENDFILE_UTIL_H |
8aaa39e7aec8
sendfile() works now properly with 64bit off_t
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
2 #define __SENDFILE_UTIL_H |
8aaa39e7aec8
sendfile() works now properly with 64bit off_t
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
3 |
8aaa39e7aec8
sendfile() works now properly with 64bit off_t
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
4 /* simple wrapper for sendfile(), allowing usage of 64bit off_t with it */ |
8aaa39e7aec8
sendfile() works now properly with 64bit off_t
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
5 ssize_t safe_sendfile(int out_fd, int in_fd, uoff_t *offset, size_t count); |
8aaa39e7aec8
sendfile() works now properly with 64bit off_t
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
6 |
8aaa39e7aec8
sendfile() works now properly with 64bit off_t
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
7 #endif |