Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 7113e88

Browse files
committed
More more of the include files under the include directory
1 parent 9956fa0 commit 7113e88

16 files changed

+210
-0
lines changed

src/include/port/BSD44_derived.h

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# define USE_POSIX_TIME
2+
# define NEED_I386_TAS_ASM
3+
# define HAS_TEST_AND_SET
4+
# if defined(__mips__)
5+
/* # undef HAS_TEST_AND_SET */
6+
# endif
7+
typedef unsigned char slock_t;

src/include/port/aix.h

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# define CLASS_CONFLICT
2+
# define DISABLE_XOPEN_NLS
3+
# define HAVE_ANSI_CPP
4+
# define HAS_TEST_AND_SET
5+
typedef unsigned int slock_t;

src/include/port/alpha.h

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# define USE_POSIX_TIME
2+
# define USE_POSIX_SIGNALS
3+
# define DISABLE_XOPEN_NLS
4+
# define HAS_LONG_LONG
5+
# define HAS_TEST_AND_SET
6+
# include <sys/mman.h> /* for msemaphore */
7+
typedef msemaphore slock_t;

src/include/port/bsdi.h

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# if defined(i386)
2+
# define NEED_I386_TAS_ASM
3+
# endif
4+
# if defined(sparc)
5+
# define NEED_SPARC_TAS_ASM
6+
# endif
7+
# define USE_POSIX_TIME
8+
# define HAS_TEST_AND_SET
9+
typedef unsigned char slock_t;

src/include/port/dgux.h

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# define LINUX_ELF
2+
# define USE_POSIX_SIGNALS

src/include/port/hpux.h

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# define JMP_BUF
2+
# define USE_POSIX_TIME
3+
# define HAS_TEST_AND_SET
4+
typedef struct { int sem[4]; } slock_t;

src/include/port/i386_solaris.h

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# define USE_POSIX_TIME
2+
# define USE_POSIX_SIGNALS
3+
# define NO_EMPTY_STMTS
4+
# define SYSV_DIRENT
5+
# define HAS_TEST_AND_SET
6+
typedef unsigned char slock_t;
7+
8+
#include <sys/isa_defs.h>
9+
10+
#ifndef BYTE_ORDER
11+
#define BYTE_ORDER LITTLE_ENDIAN
12+
#endif
13+
14+
#ifndef NAN
15+
16+
#ifndef __nan_bytes
17+
#define __nan_bytes { 0, 0, 0, 0, 0, 0, 0xf8, 0x7f }
18+
#endif /* __nan_bytes */
19+
20+
#ifdef __GNUC__
21+
#define NAN \
22+
(__extension__ ((union { unsigned char __c[8]; \
23+
double __d; }) \
24+
{ __nan_bytes }).__d)
25+
26+
#else /* Not GCC. */
27+
#define NAN (*(__const double *) __nan)
28+
#endif /* GCC. */
29+
#endif /* NAN */
30+
31+
#ifndef index
32+
#define index strchr
33+
#endif
34+
35+
#ifndef HAVE_RUSAGE
36+
#define HAVE_RUSAGE 1
37+
#endif
38+

src/include/port/irix5.h

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# define USE_POSIX_TIME
2+
# define USE_POSIX_SIGNALS
3+
# define NO_EMPTY_STMTS
4+
# define SYSV_DIRENT
5+
# define HAS_TEST_AND_SET
6+
# include <abi_mutex.h>
7+
typedef abilock_t slock_t;

src/include/port/linux.h

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/* __USE_POSIX, __USE_BSD, and __USE_BSD_SIGNAL used to be defined either
2+
here or with -D compile options, but __ macros should be set and used by C
3+
library macros, not Postgres code. __USE_POSIX is set by features.h,
4+
__USE_BSD is set by bsd/signal.h, and __USE_BSD_SIGNAL appears not to
5+
be used.
6+
*/
7+
# define JMP_BUF
8+
# define USE_POSIX_TIME
9+
# define USE_POSIX_SIGNALS
10+
# if !defined(PPC)
11+
# define NEED_I386_TAS_ASM
12+
# define HAS_TEST_AND_SET
13+
typedef unsigned char slock_t;
14+
# endif

src/include/port/nextstep.h

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# include <sys/ioctl.h>
2+
# if defined(__STRICT_ANSI__)
3+
# define isascii(c) ((unsigned)(c)<=0177)
4+
# endif
5+
extern char* strdup (const char* string);
6+
# ifndef _POSIX_SOURCE
7+
typedef unsigned short mode_t;
8+
typedef int sigset_t;
9+
# define SIG_BLOCK 00
10+
# define SIG_UNBLOCK 01
11+
# define SIG_SETMASK 02
12+
# define NEED_SIG_JMP
13+
# endif
14+
15+
# define JMP_BUF
16+
# define NO_WAITPID
17+
typedef struct mutex slock_t;

src/include/port/sparc_solaris.h

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# define USE_POSIX_TIME
2+
# define USE_POSIX_SIGNALS
3+
# define NO_EMPTY_STMTS
4+
# define SYSV_DIRENT
5+
# define HAS_TEST_AND_SET
6+
typedef unsigned char slock_t;
7+
8+
#ifndef BYTE_ORDER
9+
#define BYTE_ORDER BIG_ENDIAN
10+
#endif

src/include/port/sunos4.h

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# define USE_POSIX_TIME

src/include/port/svr4.h

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# define USE_POSIX_TIME
2+
# define USE_POSIX_SIGNALS
3+
# define NO_EMPTY_STMTS
4+
# define SYSV_DIRENT

src/include/port/ultrix4.h

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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+

src/include/port/univel.h

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# define USE_POSIX_TIME
2+
# define NO_EMPTY_STMTS
3+
# define USE_POSIX_SIGNALS
4+
# define SYSV_DIRENT
5+
6+
#if 0
7+
# define HAS_TEST_AND_SET
8+
typedef unsigned char slock_t;
9+
#endif
10+
11+
extern long random(void);
12+
extern void srandom(int seed);
13+
extern int strcasecmp(char *s1,char *s2);
14+
extern int gethostname(char *name,int namelen);
15+
16+
#ifndef BYTE_ORDER
17+
#define BYTE_ORDER LITTLE_ENDIAN
18+
#endif
19+

src/include/port/win32.h

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# define JMP_BUF
2+
# define NEED_SIG_JMP
3+
# define NO_UNISTD_H
4+
# define USES_WINSOCK
5+
# define NOFILE 100
6+
# ifndef MAXPATHLEN
7+
# define MAXPATHLEN 250
8+
# endif

0 commit comments

Comments
 (0)