Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
411 B

/* for macos X, don't ask */
#define SENDFILE 1
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/uio.h>
#include <errno.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
int main() {
struct sf_hdtr hdr;
struct iovec v[17+23];
int r,fd=1;
off_t sbytes;
hdr.headers=v; hdr.hdr_cnt=17;
hdr.trailers=v+17; hdr.trl_cnt=23;
return 0;