chiark / gitweb /
src/types.c: Do not crash when one of several addr subqueries fails
[adns] / regress / hsyscalls.h
CommitLineData
f9476535 1#ifndef HSYSCALLS_H_INCLUDED
2#define HSYSCALLS_H_INCLUDED
5aabad0d 3#include <sys/types.h>
f9476535 4#include <sys/time.h>
5#include <sys/socket.h>
6#include <sys/uio.h>
7#include <unistd.h>
8#ifdef HAVE_POLL
9#include <sys/poll.h>
10#endif
11int Hselect( int max , fd_set *rfds , fd_set *wfds , fd_set *efds , struct timeval *to );
12#ifdef HAVE_POLL
13int Hpoll( struct pollfd *fds , int nfds , int timeout );
14#endif
15int Hsocket( int domain , int type , int protocol );
16int Hfcntl( int fd , int cmd , ... );
17int Hconnect( int fd , const struct sockaddr *addr , int addrlen );
87dd6345 18int Hbind( int fd , const struct sockaddr *addr , int addrlen );
19int Hlisten( int fd , int backlog );
f9476535 20int Hclose( int fd );
21int Hsendto( int fd , const void *msg , int msglen , unsigned int flags , const struct sockaddr *addr , int addrlen );
22int Hrecvfrom( int fd , void *buf , int buflen , unsigned int flags , struct sockaddr *addr , int *addrlen );
23int Hread( int fd , void *buf , size_t buflen );
24int Hwrite( int fd , const void *buf , size_t len );
25int Hwritev(int fd, const struct iovec *vector, size_t count);
26int Hgettimeofday(struct timeval *tv, struct timezone *tz);
0e45654b 27pid_t Hgetpid(void);
f9476535 28void* Hmalloc(size_t sz);
29void Hfree(void *ptr);
30void* Hrealloc(void *op, size_t nsz);
31void Hexit(int rv)NONRETURNING;
32#endif