/usr/include/dovecot/sendfile-util.h is in dovecot-dev 1:2.2.22-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 | #ifndef SENDFILE_UTIL_H
#define SENDFILE_UTIL_H
/* Wrapper for various sendfile()-like calls. Returns -1 and errno=EINVAL if
it isn't supported for some reason (out_fd isn't a socket, offset is too
large, or there simply is no sendfile()). */
ssize_t safe_sendfile(int out_fd, int in_fd, uoff_t *offset, size_t count);
#endif
|