X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=adns.git;a=blobdiff_plain;f=regress%2Fhsyscalls.h;fp=regress%2Fhsyscalls.h;h=afec8ca934704d0dbf064b322714fd77c0b4f2b5;hp=0000000000000000000000000000000000000000;hb=f9476535903f0225fba0733203580c88b30ad6a1;hpb=67a57aae0e981c235a2cb8d27214a3d4213ff941 diff --git a/regress/hsyscalls.h b/regress/hsyscalls.h new file mode 100644 index 0000000..afec8ca --- /dev/null +++ b/regress/hsyscalls.h @@ -0,0 +1,28 @@ +#ifndef HSYSCALLS_H_INCLUDED +#define HSYSCALLS_H_INCLUDED +#include +#include +#include +#include +#ifdef HAVE_POLL +#include +#endif +int Hselect( int max , fd_set *rfds , fd_set *wfds , fd_set *efds , struct timeval *to ); +#ifdef HAVE_POLL +int Hpoll( struct pollfd *fds , int nfds , int timeout ); +#endif +int Hsocket( int domain , int type , int protocol ); +int Hfcntl( int fd , int cmd , ... ); +int Hconnect( int fd , const struct sockaddr *addr , int addrlen ); +int Hclose( int fd ); +int Hsendto( int fd , const void *msg , int msglen , unsigned int flags , const struct sockaddr *addr , int addrlen ); +int Hrecvfrom( int fd , void *buf , int buflen , unsigned int flags , struct sockaddr *addr , int *addrlen ); +int Hread( int fd , void *buf , size_t buflen ); +int Hwrite( int fd , const void *buf , size_t len ); +int Hwritev(int fd, const struct iovec *vector, size_t count); +int Hgettimeofday(struct timeval *tv, struct timezone *tz); +void* Hmalloc(size_t sz); +void Hfree(void *ptr); +void* Hrealloc(void *op, size_t nsz); +void Hexit(int rv)NONRETURNING; +#endif