summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/bits/ipc.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-08-25 00:08:23 +0000
committerEric Andersen <andersen@codepoet.org>2002-08-25 00:08:23 +0000
commitd7aaa51dffc2d29192b64b382590d6752c82c3a3 (patch)
tree83e9f0f38956f65cddae2e23c6e552224aad7b44 /libc/sysdeps/linux/common/bits/ipc.h
parente590469b10c9823ac8eabcbe73152c3a4c570421 (diff)
Make shm stuff work properly.
-Erik
Diffstat (limited to 'libc/sysdeps/linux/common/bits/ipc.h')
-rw-r--r--libc/sysdeps/linux/common/bits/ipc.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/libc/sysdeps/linux/common/bits/ipc.h b/libc/sysdeps/linux/common/bits/ipc.h
index f1a043fe5..54412ff32 100644
--- a/libc/sysdeps/linux/common/bits/ipc.h
+++ b/libc/sysdeps/linux/common/bits/ipc.h
@@ -35,22 +35,22 @@
# define IPC_INFO 3 /* See ipcs. */
#endif
+/* Type of a SYSV IPC key. */
+typedef int __kernel_key_t;
+
/* Special key values. */
#define IPC_PRIVATE ((__key_t) 0) /* Private key. */
/* Data structure used to pass permission information to IPC operations. */
struct ipc_perm
- {
- __key_t __key; /* Key. */
- __uid_t uid; /* Owner's user ID. */
- __gid_t gid; /* Owner's group ID. */
- __uid_t cuid; /* Creator's user ID. */
- __gid_t cgid; /* Creator's group ID. */
- unsigned short int mode; /* Read/write permission. */
- unsigned short int __pad1;
- unsigned short int __seq; /* Sequence number. */
- unsigned short int __pad2;
- unsigned long int __unused1;
- unsigned long int __unused2;
- };
+{
+ __kernel_key_t key;
+ __kernel_uid_t uid;
+ __kernel_gid_t gid;
+ __kernel_uid_t cuid;
+ __kernel_gid_t cgid;
+ __kernel_mode_t mode;
+ unsigned short seq;
+};
+