chiark / gitweb /
+ * Documentation improved somewhat, including new GPL-vs-LGPL file.
[adns.git] / regress / hsyscalls.h
1 #ifndef HSYSCALLS_H_INCLUDED
2 #define HSYSCALLS_H_INCLUDED
3 #include <sys/time.h>
4 #include <sys/socket.h>
5 #include <sys/uio.h>
6 #include <unistd.h>
7 #ifdef HAVE_POLL
8 #include <sys/poll.h>
9 #endif
10 int Hselect(    int max , fd_set *rfds , fd_set *wfds , fd_set *efds , struct timeval *to       );
11 #ifdef HAVE_POLL
12 int Hpoll(      struct pollfd *fds , int nfds , int timeout     );
13 #endif
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      );
17 int Hclose(     int fd  );
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;
28 #endif