X-Git-Url: https://git.distorted.org.uk/~mdw/adns/blobdiff_plain/f9476535903f0225fba0733203580c88b30ad6a1..09d96df2bba590305e08703e232fd8bf780b199f:/regress/hsyscalls.h diff --git a/regress/hsyscalls.h b/regress/hsyscalls.h index afec8ca..6dc9edc 100644 --- a/regress/hsyscalls.h +++ b/regress/hsyscalls.h @@ -1,5 +1,6 @@ #ifndef HSYSCALLS_H_INCLUDED #define HSYSCALLS_H_INCLUDED +#include #include #include #include @@ -14,6 +15,8 @@ int Hpoll( struct pollfd *fds , int nfds , int timeout ); 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 Hbind( int fd , const struct sockaddr *addr , int addrlen ); +int Hlisten( int fd , int backlog ); 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 ); @@ -21,6 +24,7 @@ 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); +pid_t Hgetpid(void); void* Hmalloc(size_t sz); void Hfree(void *ptr); void* Hrealloc(void *op, size_t nsz);