]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Define IPC_INFO only if __USE_GNU.
authorUlrich Drepper <drepper@redhat.com>
Fri, 17 Mar 2000 03:36:07 +0000 (03:36 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 17 Mar 2000 03:36:07 +0000 (03:36 +0000)
Define IPCOP_* constants only if __USE_GNU.

sysdeps/unix/sysv/linux/alpha/bits/ipc.h
sysdeps/unix/sysv/linux/mips/bits/ipc.h
sysdeps/unix/sysv/linux/powerpc/bits/ipc.h

index 7b644e8b7a27f78fd4bf362a0eaaafe809960bc7..fcd8e8078efeb03da353ea02e565d3ddfb597a55 100644 (file)
@@ -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.  */
-#define IPC_INFO       3               /* See ipcs.  */
+#ifdef __USE_GNU
+# define IPC_INFO      3               /* See ipcs.  */
+#endif
 
 /* Special key values.  */
 #define IPC_PRIVATE    ((__key_t) 0)   /* Private key.  */
@@ -59,15 +61,17 @@ 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
-#define IPCOP_semctl    3
-#define IPCOP_msgsnd   11
-#define IPCOP_msgrcv   12
-#define IPCOP_msgget   13
-#define IPCOP_msgctl   14
-#define IPCOP_shmat    21
-#define IPCOP_shmdt    22
-#define IPCOP_shmget   23
-#define IPCOP_shmctl   24
+# define IPCOP_semop    1
+# define IPCOP_semget   2
+# define IPCOP_semctl   3
+# define IPCOP_msgsnd  11
+# define IPCOP_msgrcv  12
+# define IPCOP_msgget  13
+# define IPCOP_msgctl  14
+# define IPCOP_shmat   21
+# define IPCOP_shmdt   22
+# define IPCOP_shmget  23
+# define IPCOP_shmctl  24
+#endif
index 04bd3f0ce225d718310686f7637cfa1890e6115c..03445918d4fefa3336c025c6f19349faf2d4fe0f 100644 (file)
@@ -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.  */
-#define IPC_INFO       3               /* See ipcs.  */
+#ifdef __USE_GNU
+# define IPC_INFO      3               /* See ipcs.  */
+#endif
 
 /* Special key values.  */
 #define IPC_PRIVATE    ((__key_t) 0)   /* Private key.  */
@@ -58,15 +60,17 @@ 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
-#define IPCOP_semctl    3
-#define IPCOP_msgsnd   11
-#define IPCOP_msgrcv   12
-#define IPCOP_msgget   13
-#define IPCOP_msgctl   14
-#define IPCOP_shmat    21
-#define IPCOP_shmdt    22
-#define IPCOP_shmget   23
-#define IPCOP_shmctl   24
+# define IPCOP_semop    1
+# define IPCOP_semget   2
+# define IPCOP_semctl   3
+# define IPCOP_msgsnd  11
+# define IPCOP_msgrcv  12
+# define IPCOP_msgget  13
+# define IPCOP_msgctl  14
+# define IPCOP_shmat   21
+# define IPCOP_shmdt   22
+# define IPCOP_shmget  23
+# define IPCOP_shmctl  24
+#endif
index 1c1ae80273af50ee5719ba6a7787667535df3c60..1ae5051cbffe71bb1591ccb278596ddb70975465 100644 (file)
@@ -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.  */
-#define IPC_INFO       3               /* See ipcs.  */
+#ifdef __USE_GNU
+# define IPC_INFO      3               /* See ipcs.  */
+#endif
 
 /* Special key values.  */
 #define IPC_PRIVATE    ((__key_t) 0)   /* Private key.  */
@@ -58,15 +60,17 @@ 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
-#define IPCOP_semctl    3
-#define IPCOP_msgsnd   11
-#define IPCOP_msgrcv   12
-#define IPCOP_msgget   13
-#define IPCOP_msgctl   14
-#define IPCOP_shmat    21
-#define IPCOP_shmdt    22
-#define IPCOP_shmget   23
-#define IPCOP_shmctl   24
+# define IPCOP_semop    1
+# define IPCOP_semget   2
+# define IPCOP_semctl   3
+# define IPCOP_msgsnd  11
+# define IPCOP_msgrcv  12
+# define IPCOP_msgget  13
+# define IPCOP_msgctl  14
+# define IPCOP_shmat   21
+# define IPCOP_shmdt   22
+# define IPCOP_shmget  23
+# define IPCOP_shmctl  24
+#endif