*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: port-protos.h,v 1.4 1997/01/16 06:32:17 bryanh Exp $
+ * $Id: port-protos.h,v 1.5 1997/02/13 09:53:57 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
#define pg_dlsym(h, f) ((func_ptr)dl_sym(h, f))
#define pg_dlclose(h) dl_close(h)
#define pg_dlerror() dl_error()
+extern int dl_init(char *);
/* port.c */
+extern int syscall();
+
extern void init_address_fixup(void);
/* strdup.c: strdup() is not part of libc on Ultrix */
backend/port/inet_aton.h
*/
+struct in_addr;
int
inet_aton(const char *cp, struct in_addr *addr);
# define USE_POSIX_TIME
+# define NEED_STRDUP
+
+/*
+ * Except for those system calls and library functions that are either
+ * - covered by the C standard library and Posix.1
+ * - or need a declaration to declare parameter or return types,
+ * most Ultrix 4 calls are not declared in the system header files.
+ * The rest of this header is used to remedy this for PostgreSQL to give a
+ * warning-free compilation.
+ */
+
+#include <sys/types.h> /* Declare various types, e.g. size_t, fd_set */
+
+extern int strcasecmp(const char *, const char *);
+extern void bzero(void *, size_t);
+
+extern int fp_class_d(double);
+extern long random(void);
+
+struct rusage;
+extern int getrusage(int, struct rusage *);
+
+extern int ioctl(int, unsigned long, ...);
+
+extern int socket(int, int, int);
+struct sockaddr;
+extern int connect(int, const struct sockaddr *, int);
+typedef int ssize_t;
+extern ssize_t send(int, const void *, size_t, int);
+extern ssize_t recv(int, void*, size_t, int);
+extern int setsockopt(int, int, int, const void *, int);
+extern int bind(int, const struct sockaddr *, int);
+extern int listen(int, int);
+extern int accept(int, struct sockaddr *, int *);
+extern int getsockname(int, struct sockaddr *, int *);
+extern ssize_t recvfrom(int, void *, size_t, int, struct sockaddr *, int *);
+extern ssize_t sendto(int, const void *, size_t, int, const struct sockaddr *, int);
+struct timeval;
+extern int select(int, fd_set*, fd_set*, fd_set*, struct timeval *);
+
+extern int gethostname(char *, int);
+
+extern int getopt(int, char * const *, const char *);
+extern int putenv(const char *);
+
+extern pid_t vfork(void);
+
+struct itimerval;
+extern int setitimer(int, const struct itimerval*, struct itimerval *);
+struct timezone;
+extern int gettimeofday(struct timeval *, struct timezone *);
+
+extern int fsync(int);
+extern int ftruncate(int, off_t);
+
+/* End of ultrix4.h */
+