view 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
line wrap: on
line source

#ifndef __SENDFILE_UTIL_H
#define __SENDFILE_UTIL_H

/* simple wrapper for sendfile(), allowing usage of 64bit off_t with it */
ssize_t safe_sendfile(int out_fd, int in_fd, uoff_t *offset, size_t count);

#endif