diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-02-16 01:07:24 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-02-16 01:07:24 +0000 |
commit | 95db6b748fc86297827fbd9c9ef174d491c9ad89 (patch) | |
tree | 27a92a942821cde1edda9a1b088718d436b3efe4 /include/linux/ipc.h | |
parent | 45b27b0a0652331d104c953a5b192d843fff88f8 (diff) |
Merge with Linux 2.3.40.
Diffstat (limited to 'include/linux/ipc.h')
-rw-r--r-- | include/linux/ipc.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/linux/ipc.h b/include/linux/ipc.h index 0aec0d93c..4366dfad0 100644 --- a/include/linux/ipc.h +++ b/include/linux/ipc.h @@ -5,6 +5,7 @@ #define IPC_PRIVATE ((__kernel_key_t) 0) +/* Obsolete, used only for backwards compatibility and libc5 compiles */ struct ipc_perm { __kernel_key_t key; @@ -16,6 +17,9 @@ struct ipc_perm unsigned short seq; }; +/* Include the definition of ipc64_perm */ +#include <asm/ipcbuf.h> + /* resource get request flags */ #define IPC_CREAT 00001000 /* create if key is nonexistent */ #define IPC_EXCL 00002000 /* fail if key exists */ @@ -36,10 +40,31 @@ struct ipc_perm #define IPC_STAT 2 /* get ipc_perm options */ #define IPC_INFO 3 /* see ipcs */ +/* + * Version flags for semctl, msgctl, and shmctl commands + * These are passed as bitflags or-ed with the actual command + */ +#define IPC_OLD 0 /* Old version (no 32-bit UID support on many + architectures) */ +#define IPC_64 0x0100 /* New version (support 32-bit UIDs, bigger + message sizes, etc. */ + #ifdef __KERNEL__ #define IPCMNI 32768 /* <= MAX_INT limit for ipc arrays (including sysctl changes) */ +/* used by in-kernel data structures */ +struct kern_ipc_perm +{ + key_t key; + uid_t uid; + gid_t gid; + uid_t cuid; + gid_t cgid; + mode_t mode; + unsigned long seq; +}; + #endif /* __KERNEL__ */ #endif /* _LINUX_IPC_H */ |