chiark / gitweb /
Use `...` instead of POSIX $(...) to pander to stupid shells.
[adns] / regress / hsyscalls.h
CommitLineData
c7340170 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
10int Hselect( int max , fd_set *rfds , fd_set *wfds , fd_set *efds , struct timeval *to );
11#ifdef HAVE_POLL
12int Hpoll( struct pollfd *fds , int nfds , int timeout );
13#endif
14int Hsocket( int domain , int type , int protocol );
15int Hfcntl( int fd , int cmd , ... );
16int Hconnect( int fd , const struct sockaddr *addr , int addrlen );
17int Hclose( int fd );
18int Hsendto( int fd , const void *msg , int msglen , unsigned int flags , const struct sockaddr *addr , int addrlen );
19int Hrecvfrom( int fd , void *buf , int buflen , unsigned int flags , struct sockaddr *addr , int *addrlen );
20int Hread( int fd , void *buf , size_t buflen );
21int Hwrite( int fd , const void *buf , size_t len );
22int Hwritev(int fd, const struct iovec *vector, size_t count);
23int Hgettimeofday(struct timeval *tv, struct timezone *tz);
24void* Hmalloc(size_t sz);
25void Hfree(void *ptr);
26void* Hrealloc(void *op, size_t nsz);
27void Hexit(int rv)NONRETURNING;
28#endif