mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 00:43:02 +01:00
Cleanup semun stuff.
This commit is contained in:
parent
9de523814f
commit
bf314dba7a
@ -144,56 +144,18 @@ static UCHAR *next_shared_memory;
|
|||||||
#define SHMEM_DELTA (1 << 22)
|
#define SHMEM_DELTA (1 << 22)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef sun
|
|
||||||
#ifndef SOLARIS
|
|
||||||
#define SEMUN
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef FREEBSD
|
|
||||||
#define SEMUN
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef DARWIN
|
|
||||||
#define SEMUN
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef LINUX
|
|
||||||
/*
|
|
||||||
* NOTE: this definition is copied from linux/sem.h: if we do ...
|
|
||||||
* #include <linux/sem.h>
|
|
||||||
* we get redefinition error messages for other structures,
|
|
||||||
* so try it this (ugly) way.
|
|
||||||
*/
|
|
||||||
/* arg for semctl system calls. */
|
|
||||||
union semun {
|
|
||||||
int val; /* value for SETVAL */
|
|
||||||
struct semid_ds *buf; /* buffer for IPC_STAT & IPC_SET */
|
|
||||||
unsigned short *array; /* array for GETALL & SETALL */
|
|
||||||
struct seminfo *__buf; /* buffer for IPC_INFO */
|
|
||||||
void *__pad;
|
|
||||||
};
|
|
||||||
#define SEMUN
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef SIGURG
|
#ifndef SIGURG
|
||||||
#define SIGURG SIGINT
|
#define SIGURG SIGINT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef SEMUN
|
#ifndef HAVE_SEMUN
|
||||||
#undef SEMUN
|
|
||||||
#else
|
|
||||||
union semun {
|
union semun {
|
||||||
int val;
|
int val;
|
||||||
struct semid_ds *buf;
|
struct semid_ds *buf;
|
||||||
ushort *array;
|
ushort *array;
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
#endif /* UNIX */
|
||||||
#if !(defined hpux || defined SOLARIS || defined linux || defined FREEBSD || defined NETBSD || defined SINIXZ)
|
|
||||||
extern SLONG ftok();
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAVE_SYS_PARAM_H
|
#ifdef HAVE_SYS_PARAM_H
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
@ -4203,7 +4165,7 @@ static SLONG find_key(STATUS * status_vector, TEXT * filename)
|
|||||||
*
|
*
|
||||||
**************************************/
|
**************************************/
|
||||||
int fd;
|
int fd;
|
||||||
SLONG key;
|
key_t key;
|
||||||
|
|
||||||
/* Produce shared memory key for file */
|
/* Produce shared memory key for file */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user