diff options
| author | Bruce Momjian <bruce@momjian.us> | 2000-12-18 18:45:05 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2000-12-18 18:45:05 +0000 |
| commit | 1f159e562b2a31234edba781218ce5278ea2cfd8 (patch) | |
| tree | 347b6c792b54d1d2e16c156bc0f5b6b09a4bacc8 /src/include | |
| parent | 5491233f5245c464be2286ad894448b21ef757db (diff) | |
| download | postgresql-1f159e562b2a31234edba781218ce5278ea2cfd8.tar.gz | |
>> Here is a patch for the beos port (All regression tests are OK).
>> xlog.c : special case for beos to avoid 'link' which does not work yet
>> beos/sem.c : implementation of new sem_ctl call (GETPID) and a new
>sem_op
>> flag (IPCNOWAIT)
>> dynloader/beos.c : add a verification of symbol validity (seem that
the
>> loader sometime return OK with an invalid symbol)
>> postmaster.c : add beos forking support for the new checkpoint
process
>> postgres.c : remove beos special case for getrusage
>> beos.h : Correction of a bas definition of AF_UNIX, misc defnitions
>>
>>
>> thanks
>>
>>
>> cyril
Cyril VELTER
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/port/beos.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/include/port/beos.h b/src/include/port/beos.h index 0618dc3ffd..38a8eaa79e 100644 --- a/src/include/port/beos.h +++ b/src/include/port/beos.h @@ -5,7 +5,13 @@ typedef unsigned char slock_t; -#define AF_UNIX 1 /* no domain sockets on BeOS */ +#define AF_UNIX 10 /* no domain sockets on BeOS */ + +/* Beos doesn't have sysnerr but strerror should works on every error */ +extern int sys_nerr; + +/* Beos doesn't have all the required getrusage fields */ +#undef HAVE_GETRUSAGE /* SYS V emulation */ @@ -16,6 +22,7 @@ typedef unsigned char slock_t; #define IPC_CREAT 512 #define IPC_EXCL 1024 #define IPC_PRIVATE 234564 +#define IPC_NOWAIT 2048 #define EACCESS 2048 #define EIDRM 4096 @@ -24,6 +31,7 @@ typedef unsigned char slock_t; #define GETNCNT 16384 #define GETVAL 65536 #define SETVAL 131072 +#define GETPID 262144 union semun { |
