Mercurial > dovecot > original-hg > dovecot-1.2
view src/lib/sendfile-util.h @ 3749:194295062e5e HEAD
Added kqueue support. Patch by Vaclav Haisman.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 14 Dec 2005 20:51:52 +0200 |
parents | ee4bdf40ec10 |
children | e4eb71ae8e96 |
line wrap: on
line source
#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