unix.ffi: adding sendfile.
parent
e32eab2ca7
commit
22a6087107
|
@ -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 ) ;
|
||||
|
|
|
@ -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 ) ;
|
||||
|
|
Loading…
Reference in New Issue