unix.ffi: adding sendfile.

db4
John Benediktsson 2012-10-24 19:53:39 -07:00
parent e32eab2ca7
commit 22a6087107
2 changed files with 10 additions and 0 deletions

View File

@ -275,3 +275,5 @@ CONSTANT: SIGIO 29
ALIAS: SIGPOLL SIGIO
CONSTANT: SIGPWR 30
CONSTANT: SIGSYS 31
FUNCTION: ssize_t sendfile ( int out_fd, int in_fd, off_t* offset, size_t count ) ;

View File

@ -264,3 +264,11 @@ CONSTANT: SIGWINCH 28
CONSTANT: SIGINFO 29
CONSTANT: SIGUSR1 30
CONSTANT: SIGUSR2 31
STRUCT: sf_hdtr
{ headers iovec* }
{ hdr_cnt int }
{ trailers iovec* }
{ trl_cnt int } ;
FUNCTION: int sendfile ( int fd, int s, off_t offset, off_t* len, sf_hdtr* hdtr, int flags ) ;