|
| 1 | +# define USE_POSIX_TIME |
| 2 | +# define NEED_STRDUP |
| 3 | + |
| 4 | +/* |
| 5 | + * Except for those system calls and library functions that are either |
| 6 | + * - covered by the C standard library and Posix.1 |
| 7 | + * - or need a declaration to declare parameter or return types, |
| 8 | + * most Ultrix 4 calls are not declared in the system header files. |
| 9 | + * The rest of this header is used to remedy this for PostgreSQL to give a |
| 10 | + * warning-free compilation. |
| 11 | + */ |
| 12 | + |
| 13 | +#include <sys/types.h> /* Declare various types, e.g. size_t, fd_set */ |
| 14 | + |
| 15 | +extern int strcasecmp(const char *, const char *); |
| 16 | +extern void bzero(void *, size_t); |
| 17 | + |
| 18 | +extern int fp_class_d(double); |
| 19 | +extern long random(void); |
| 20 | + |
| 21 | +struct rusage; |
| 22 | +extern int getrusage(int, struct rusage *); |
| 23 | + |
| 24 | +extern int ioctl(int, unsigned long, ...); |
| 25 | + |
| 26 | +extern int socket(int, int, int); |
| 27 | +struct sockaddr; |
| 28 | +extern int connect(int, const struct sockaddr *, int); |
| 29 | +typedef int ssize_t; |
| 30 | +extern ssize_t send(int, const void *, size_t, int); |
| 31 | +extern ssize_t recv(int, void*, size_t, int); |
| 32 | +extern int setsockopt(int, int, int, const void *, int); |
| 33 | +extern int bind(int, const struct sockaddr *, int); |
| 34 | +extern int listen(int, int); |
| 35 | +extern int accept(int, struct sockaddr *, int *); |
| 36 | +extern int getsockname(int, struct sockaddr *, int *); |
| 37 | +extern ssize_t recvfrom(int, void *, size_t, int, struct sockaddr *, int *); |
| 38 | +extern ssize_t sendto(int, const void *, size_t, int, const struct sockaddr *, int); |
| 39 | +struct timeval; |
| 40 | +extern int select(int, fd_set*, fd_set*, fd_set*, struct timeval *); |
| 41 | + |
| 42 | +extern int gethostname(char *, int); |
| 43 | + |
| 44 | +extern int getopt(int, char * const *, const char *); |
| 45 | +extern int putenv(const char *); |
| 46 | + |
| 47 | +extern pid_t vfork(void); |
| 48 | + |
| 49 | +struct itimerval; |
| 50 | +extern int setitimer(int, const struct itimerval*, struct itimerval *); |
| 51 | +struct timezone; |
| 52 | +extern int gettimeofday(struct timeval *, struct timezone *); |
| 53 | + |
| 54 | +extern int fsync(int); |
| 55 | +extern int ftruncate(int, off_t); |
| 56 | + |
| 57 | +/* End of ultrix4.h */ |
| 58 | + |
0 commit comments