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