annotate src/lib/sendfile-util.h @ 9451:9fff30644260 HEAD

istream-concat: Fixed a lot of bugs.
author Timo Sirainen <tss@iki.fi>
date Mon, 26 Oct 2009 17:06:57 -0400
parents e4eb71ae8e96
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6410
e4eb71ae8e96 Changed .h ifdef/defines to use <NAME>_H format.
Timo Sirainen <tss@iki.fi>
parents: 1146
diff changeset
1 #ifndef SENDFILE_UTIL_H
e4eb71ae8e96 Changed .h ifdef/defines to use <NAME>_H format.
Timo Sirainen <tss@iki.fi>
parents: 1146
diff changeset
2 #define SENDFILE_UTIL_H
58
8aaa39e7aec8 sendfile() works now properly with 64bit off_t
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
3
1146
ee4bdf40ec10 Bugfixes to handling >2GB files.
Timo Sirainen <tss@iki.fi>
parents: 58
diff changeset
4 /* Wrapper for various sendfile()-like calls. Returns -1 and errno=EINVAL if
ee4bdf40ec10 Bugfixes to handling >2GB files.
Timo Sirainen <tss@iki.fi>
parents: 58
diff changeset
5 it isn't supported for some reason (out_fd isn't a socket, offset is too
ee4bdf40ec10 Bugfixes to handling >2GB files.
Timo Sirainen <tss@iki.fi>
parents: 58
diff changeset
6 large, or there simply is no sendfile()). */
58
8aaa39e7aec8 sendfile() works now properly with 64bit off_t
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
7 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
8
8aaa39e7aec8 sendfile() works now properly with 64bit off_t
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
9 #endif