patch-2.3.39 linux/include/linux/ipc.h

Next file: linux/include/linux/isapnp.h
Previous file: linux/include/linux/i2o.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.38/linux/include/linux/ipc.h linux/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 @@
 	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,9 +40,30 @@
 #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__ */
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)