Georg Schwarz
2014-07-06 21:55:09 UTC
On Linux, sendfile() looka like this:
ssize_t sendfile(int out_fd, int in_fd, off_t *offset, size_t count)
On MacOS X it looks like this:
int
sendfile(int fd, int s, off_t offset, off_t *len, struct sf_hdtr *hdtr,
int flags)
what about other systems?
What's best practice of handling (probably Linux-originated) code that uses sendfile?
Should sendfile support best be disabled in systems other than Linux? (the code already has useful #ifdefs included)
ssize_t sendfile(int out_fd, int in_fd, off_t *offset, size_t count)
On MacOS X it looks like this:
int
sendfile(int fd, int s, off_t offset, off_t *len, struct sf_hdtr *hdtr,
int flags)
what about other systems?
What's best practice of handling (probably Linux-originated) code that uses sendfile?
Should sendfile support best be disabled in systems other than Linux? (the code already has useful #ifdefs included)
--
Georg Schwarz http://home.pages.de/~schwarz/
***@freenet.de +49 176 91313874
Georg Schwarz http://home.pages.de/~schwarz/
***@freenet.de +49 176 91313874