mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-01 15:11:18 +02:00
Improvements to the ultrix port, in particular a bunch of compiler
quieting prototyping in port/ultrix4.h Submitted by: Erik Bertelsen <erik@sockdev.uni-c.dk>
This commit is contained in:
parent
aa7dbd0b95
commit
d62267c707
@ -6,7 +6,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) 1994, Regents of the University of California
|
* 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 $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -32,9 +32,12 @@ extern char *fcvt(double, int, int*, int*);
|
|||||||
#define pg_dlsym(h, f) ((func_ptr)dl_sym(h, f))
|
#define pg_dlsym(h, f) ((func_ptr)dl_sym(h, f))
|
||||||
#define pg_dlclose(h) dl_close(h)
|
#define pg_dlclose(h) dl_close(h)
|
||||||
#define pg_dlerror() dl_error()
|
#define pg_dlerror() dl_error()
|
||||||
|
extern int dl_init(char *);
|
||||||
|
|
||||||
/* port.c */
|
/* port.c */
|
||||||
|
|
||||||
|
extern int syscall();
|
||||||
|
|
||||||
extern void init_address_fixup(void);
|
extern void init_address_fixup(void);
|
||||||
|
|
||||||
/* strdup.c: strdup() is not part of libc on Ultrix */
|
/* strdup.c: strdup() is not part of libc on Ultrix */
|
||||||
@ -44,6 +47,7 @@ extern char* strdup(char const*);
|
|||||||
backend/port/inet_aton.h
|
backend/port/inet_aton.h
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
struct in_addr;
|
||||||
int
|
int
|
||||||
inet_aton(const char *cp, struct in_addr *addr);
|
inet_aton(const char *cp, struct in_addr *addr);
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/port/ultrix4/Attic/port.c,v 1.1.1.1 1996/07/09 06:21:45 scrappy Exp $
|
* $Header: /cvsroot/pgsql/src/backend/port/ultrix4/Attic/port.c,v 1.2 1997/02/13 09:53:59 scrappy Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -15,6 +15,7 @@
|
|||||||
#include <sys/sysmips.h>
|
#include <sys/sysmips.h>
|
||||||
|
|
||||||
#include "c.h"
|
#include "c.h"
|
||||||
|
#include "port-protos.h"
|
||||||
|
|
||||||
void
|
void
|
||||||
init_address_fixup()
|
init_address_fixup()
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.4 1996/11/27 08:16:07 bryanh Exp $
|
* $Header: /cvsroot/pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.5 1997/02/13 09:54:04 scrappy Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -27,6 +27,9 @@
|
|||||||
#include "nodes/pg_list.h"
|
#include "nodes/pg_list.h"
|
||||||
|
|
||||||
#include "port-protos.h" /* system specific function prototypes */
|
#include "port-protos.h" /* system specific function prototypes */
|
||||||
|
#ifdef __ultrix
|
||||||
|
#include <dl.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "catalog/catname.h"
|
#include "catalog/catname.h"
|
||||||
#include "utils/syscache.h"
|
#include "utils/syscache.h"
|
||||||
|
@ -1 +1,58 @@
|
|||||||
# define USE_POSIX_TIME
|
# 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 */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user