1 #ifndef HSYSCALLS_H_INCLUDED
2 #define HSYSCALLS_H_INCLUDED
4 #include <sys/socket.h>
10 int Hselect( int max
, fd_set
*rfds
, fd_set
*wfds
, fd_set
*efds
, struct timeval
*to
);
12 int Hpoll( struct pollfd
*fds
, int nfds
, int timeout
);
14 int Hsocket( int domain
, int type
, int protocol
);
15 int Hfcntl( int fd
, int cmd
, ... );
16 int Hconnect( int fd
, const struct sockaddr
*addr
, int addrlen
);
18 int Hsendto( int fd
, const void *msg
, int msglen
, unsigned int flags
, const struct sockaddr
*addr
, int addrlen
);
19 int Hrecvfrom( int fd
, void *buf
, int buflen
, unsigned int flags
, struct sockaddr
*addr
, int *addrlen
);
20 int Hread( int fd
, void *buf
, size_t buflen
);
21 int Hwrite( int fd
, const void *buf
, size_t len
);
22 int Hwritev(int fd
, const struct iovec
*vector
, size_t count
);
23 int Hgettimeofday(struct timeval
*tv
, struct timezone
*tz
);
24 void* Hmalloc(size_t sz
);
25 void Hfree(void *ptr
);
26 void* Hrealloc(void *op
, size_t nsz
);
27 void Hexit(int rv
)NONRETURNING
;