mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-19 07:00:08 +00:00
Define IPC_INFO only if __USE_GNU.
Define IPCOP_* constants only if __USE_GNU.
This commit is contained in:
parent
7d90639de2
commit
976529264c
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1995, 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@ -20,7 +20,7 @@
|
||||
# error "Never use <bits/ipc.h> directly; include <sys/ipc.h> instead."
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <bits/types.h>
|
||||
|
||||
/* Mode bits for `msgget', `semget', and `shmget'. */
|
||||
#define IPC_CREAT 01000 /* Create key if key does not exist. */
|
||||
@ -31,7 +31,9 @@
|
||||
#define IPC_RMID 0 /* Remove identifier. */
|
||||
#define IPC_SET 1 /* Set `ipc_perm' options. */
|
||||
#define IPC_STAT 2 /* Get `ipc_perm' options. */
|
||||
#ifdef __USE_GNU
|
||||
# define IPC_INFO 3 /* See ipcs. */
|
||||
#endif
|
||||
|
||||
/* Special key values. */
|
||||
#define IPC_PRIVATE ((__key_t) 0) /* Private key. */
|
||||
@ -59,6 +61,7 @@ extern int __ipc __P ((int __call, int __first, int __second, int __third,
|
||||
|
||||
__END_DECLS
|
||||
|
||||
#ifdef __USE_GNU
|
||||
/* The codes for the functions to use the multiplexer `__ipc'. */
|
||||
# define IPCOP_semop 1
|
||||
# define IPCOP_semget 2
|
||||
@ -71,3 +74,4 @@ __END_DECLS
|
||||
# define IPCOP_shmdt 22
|
||||
# define IPCOP_shmget 23
|
||||
# define IPCOP_shmctl 24
|
||||
#endif
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1995, 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@ -20,7 +20,7 @@
|
||||
# error "Never use <bits/ipc.h> directly; include <sys/ipc.h> instead."
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <bits/types.h>
|
||||
|
||||
/* Mode bits for `msgget', `semget', and `shmget'. */
|
||||
#define IPC_CREAT 01000 /* Create key if key does not exist. */
|
||||
@ -31,7 +31,9 @@
|
||||
#define IPC_RMID 0 /* Remove identifier. */
|
||||
#define IPC_SET 1 /* Set `ipc_perm' options. */
|
||||
#define IPC_STAT 2 /* Get `ipc_perm' options. */
|
||||
#ifdef __USE_GNU
|
||||
# define IPC_INFO 3 /* See ipcs. */
|
||||
#endif
|
||||
|
||||
/* Special key values. */
|
||||
#define IPC_PRIVATE ((__key_t) 0) /* Private key. */
|
||||
@ -58,6 +60,7 @@ extern int __ipc __P ((int __call, int __first, int __second, int __third,
|
||||
|
||||
__END_DECLS
|
||||
|
||||
#ifdef __USE_GNU
|
||||
/* The codes for the functions to use the multiplexer `__ipc'. */
|
||||
# define IPCOP_semop 1
|
||||
# define IPCOP_semget 2
|
||||
@ -70,3 +73,4 @@ __END_DECLS
|
||||
# define IPCOP_shmdt 22
|
||||
# define IPCOP_shmget 23
|
||||
# define IPCOP_shmctl 24
|
||||
#endif
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1995, 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@ -20,7 +20,7 @@
|
||||
# error "Never use <bits/ipc.h> directly; include <sys/ipc.h> instead."
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <bits/types.h>
|
||||
|
||||
/* Mode bits for `msgget', `semget', and `shmget'. */
|
||||
#define IPC_CREAT 01000 /* Create key if key does not exist. */
|
||||
@ -31,7 +31,9 @@
|
||||
#define IPC_RMID 0 /* Remove identifier. */
|
||||
#define IPC_SET 1 /* Set `ipc_perm' options. */
|
||||
#define IPC_STAT 2 /* Get `ipc_perm' options. */
|
||||
#ifdef __USE_GNU
|
||||
# define IPC_INFO 3 /* See ipcs. */
|
||||
#endif
|
||||
|
||||
/* Special key values. */
|
||||
#define IPC_PRIVATE ((__key_t) 0) /* Private key. */
|
||||
@ -58,6 +60,7 @@ extern int __ipc __P ((int __call, int __first, int __second, int __third,
|
||||
|
||||
__END_DECLS
|
||||
|
||||
#ifdef __USE_GNU
|
||||
/* The codes for the functions to use the multiplexer `__ipc'. */
|
||||
# define IPCOP_semop 1
|
||||
# define IPCOP_semget 2
|
||||
@ -70,3 +73,4 @@ __END_DECLS
|
||||
# define IPCOP_shmdt 22
|
||||
# define IPCOP_shmget 23
|
||||
# define IPCOP_shmctl 24
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user