diff options
| author | Marc G. Fournier | 1997-02-09 04:34:07 +0000 |
|---|---|---|
| committer | Marc G. Fournier | 1997-02-09 04:34:07 +0000 |
| commit | e7c767b47720805a448c1f3fb0c6210fb5ff77c7 (patch) | |
| tree | 401c4c47a9acf7ce67e43b98303917569d177748 /src/port | |
| parent | d557375d6132c12c1282173b8a2bebd093a51bae (diff) | |
Try to further reduce the PORT dependencies.
Essentially, config.h now includes an 'os.h', which is created via
configure by linking a "port.h" file from the port directory to the
include directory.
Going to try to merge backend/port in similar ways
Diffstat (limited to 'src/port')
| -rw-r--r-- | src/port/aix.h | 5 | ||||
| -rw-r--r-- | src/port/alpha.h | 7 | ||||
| -rw-r--r-- | src/port/bsdi.h | 9 | ||||
| -rw-r--r-- | src/port/dgux.h | 2 | ||||
| -rw-r--r-- | src/port/hpux.h | 4 | ||||
| -rw-r--r-- | src/port/i386_solaris.h | 6 | ||||
| -rw-r--r-- | src/port/irix5.h | 7 | ||||
| -rw-r--r-- | src/port/linux.h | 13 | ||||
| -rw-r--r-- | src/port/nextstep.h | 17 | ||||
| -rw-r--r-- | src/port/sparc_solaris.h | 6 | ||||
| -rw-r--r-- | src/port/sunos4.h | 1 | ||||
| -rw-r--r-- | src/port/svr4.h | 4 | ||||
| -rw-r--r-- | src/port/ultrix4.h | 2 | ||||
| -rw-r--r-- | src/port/win32.h | 8 |
14 files changed, 91 insertions, 0 deletions
diff --git a/src/port/aix.h b/src/port/aix.h new file mode 100644 index 00000000000..1d50688d90f --- /dev/null +++ b/src/port/aix.h @@ -0,0 +1,5 @@ +# define CLASS_CONFLICT +# define DISABLE_XOPEN_NLS +# define HAVE_ANSI_CPP +# define HAS_TEST_AND_SET + typedef unsigned int slock_t; diff --git a/src/port/alpha.h b/src/port/alpha.h new file mode 100644 index 00000000000..5ac7ba167a0 --- /dev/null +++ b/src/port/alpha.h @@ -0,0 +1,7 @@ +# define USE_POSIX_TIME +# define USE_POSIX_SIGNALS +# define DISABLE_XOPEN_NLS +# define HAS_LONG_LONG +# define HAS_TEST_AND_SET +# include <sys/mman.h> /* for msemaphore */ + typedef msemaphore slock_t; diff --git a/src/port/bsdi.h b/src/port/bsdi.h new file mode 100644 index 00000000000..022c41dbd6a --- /dev/null +++ b/src/port/bsdi.h @@ -0,0 +1,9 @@ +# if defined(i386) +# define NEED_I386_TAS_ASM +# endif +# if defined(sparc) +# define NEED_SPARC_TAS_ASM +# endif +# define USE_POSIX_TIME +# define HAS_TEST_AND_SET + typedef unsigned char slock_t; diff --git a/src/port/dgux.h b/src/port/dgux.h new file mode 100644 index 00000000000..a004c2928a7 --- /dev/null +++ b/src/port/dgux.h @@ -0,0 +1,2 @@ +# define LINUX_ELF +# define USE_POSIX_SIGNALS diff --git a/src/port/hpux.h b/src/port/hpux.h new file mode 100644 index 00000000000..8bf04ce5b05 --- /dev/null +++ b/src/port/hpux.h @@ -0,0 +1,4 @@ +# define JMP_BUF +# define USE_POSIX_TIME +# define HAS_TEST_AND_SET + typedef struct { int sem[4]; } slock_t; diff --git a/src/port/i386_solaris.h b/src/port/i386_solaris.h new file mode 100644 index 00000000000..aa78ba5f6c1 --- /dev/null +++ b/src/port/i386_solaris.h @@ -0,0 +1,6 @@ +# define USE_POSIX_TIME +# define USE_POSIX_SIGNALS +# define NO_EMPTY_STMTS +# define SYSV_DIRENT +# define HAS_TEST_AND_SET + typedef unsigned char slock_t; diff --git a/src/port/irix5.h b/src/port/irix5.h new file mode 100644 index 00000000000..c995eb671fb --- /dev/null +++ b/src/port/irix5.h @@ -0,0 +1,7 @@ +# define USE_POSIX_TIME +# define USE_POSIX_SIGNALS +# define NO_EMPTY_STMTS +# define SYSV_DIRENT +# define HAS_TEST_AND_SET +# include <abi_mutex.h> + typedef abilock_t slock_t; diff --git a/src/port/linux.h b/src/port/linux.h new file mode 100644 index 00000000000..14396979bbc --- /dev/null +++ b/src/port/linux.h @@ -0,0 +1,13 @@ +/* __USE_POSIX, __USE_BSD, and __USE_BSD_SIGNAL used to be defined either + here or with -D compile options, but __ macros should be set and used by C + library macros, not Postgres code. __USE_POSIX is set by features.h, + __USE_BSD is set by bsd/signal.h, and __USE_BSD_SIGNAL appears not to + be used. +*/ +# define JMP_BUF +# define USE_POSIX_TIME +# if !defined(PPC) +# define NEED_I386_TAS_ASM +# define HAS_TEST_AND_SET + typedef unsigned char slock_t; +# endif diff --git a/src/port/nextstep.h b/src/port/nextstep.h new file mode 100644 index 00000000000..d7fbae858c6 --- /dev/null +++ b/src/port/nextstep.h @@ -0,0 +1,17 @@ +# include <sys/ioctl.h> +# if defined(__STRICT_ANSI__) +# define isascii(c) ((unsigned)(c)<=0177) +# endif + extern char* strdup (const char* string); +# ifndef _POSIX_SOURCE + typedef unsigned short mode_t; + typedef int sigset_t; +# define SIG_BLOCK 00 +# define SIG_UNBLOCK 01 +# define SIG_SETMASK 02 +# define NEED_SIG_JMP +# endif + +# define JMP_BUF +# define NO_WAITPID + typedef struct mutex slock_t; diff --git a/src/port/sparc_solaris.h b/src/port/sparc_solaris.h new file mode 100644 index 00000000000..aa78ba5f6c1 --- /dev/null +++ b/src/port/sparc_solaris.h @@ -0,0 +1,6 @@ +# define USE_POSIX_TIME +# define USE_POSIX_SIGNALS +# define NO_EMPTY_STMTS +# define SYSV_DIRENT +# define HAS_TEST_AND_SET + typedef unsigned char slock_t; diff --git a/src/port/sunos4.h b/src/port/sunos4.h new file mode 100644 index 00000000000..0dbac44dffd --- /dev/null +++ b/src/port/sunos4.h @@ -0,0 +1 @@ +# define USE_POSIX_TIME diff --git a/src/port/svr4.h b/src/port/svr4.h new file mode 100644 index 00000000000..0c9810a1cc2 --- /dev/null +++ b/src/port/svr4.h @@ -0,0 +1,4 @@ +# define USE_POSIX_TIME +# define USE_POSIX_SIGNALS +# define NO_EMPTY_STMTS +# define SYSV_DIRENT diff --git a/src/port/ultrix4.h b/src/port/ultrix4.h new file mode 100644 index 00000000000..ae501302742 --- /dev/null +++ b/src/port/ultrix4.h @@ -0,0 +1,2 @@ +# define USE_POSIX_TIME +# define NEED_STRDUP diff --git a/src/port/win32.h b/src/port/win32.h new file mode 100644 index 00000000000..7f4c97c582e --- /dev/null +++ b/src/port/win32.h @@ -0,0 +1,8 @@ +# define JMP_BUF +# define NEED_SIG_JMP +# define NO_UNISTD_H +# define USES_WINSOCK +# define NOFILE 100 +# ifndef MAXPATHLEN +# define MAXPATHLEN 250 +# endif |
