8 * Except for those system calls and library functions that are either
9 * - covered by the C standard library and Posix.1
10 * - or need a declaration to declare parameter or return types,
11 * most Ultrix 4 calls are not declared in the system header files.
12 * The rest of this header is used to remedy this for PostgreSQL to give a
13 * warning-free compilation.
16 #include <sys/types.h> /* Declare various types, e.g. size_t, fd_set */
18 extern int fp_class_d(double);
19 extern long random(void);
22 extern int getrusage(int, struct rusage
*);
24 extern int ioctl(int, unsigned long,...);
26 extern int socket(int, int, int);
28 extern int connect(int, const struct sockaddr
*, int);
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);
40 extern int select(int, fd_set
*, fd_set
*, fd_set
*, struct timeval
*);
42 extern int gethostname(char *, int);
44 extern int getopt(int, char *const *, const char *);
45 extern int putenv(const char *);
48 extern int setitimer(int, const struct itimerval
*, struct itimerval
*);
50 extern int gettimeofday(struct timeval
*, struct timezone
*);
52 extern int fsync(int);
53 extern int ftruncate(int, off_t
);
55 extern char *crypt(char *, char *);
57 /* End of ultrix4.h */