annotate src/lib/sendfile-util.h @ 22664:fea53c2725c0

director: Fix director_max_parallel_moves/kicks type Should be uint, not time.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Thu, 09 Nov 2017 12:24:16 +0200
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