1
2 #ifndef _UAPI_LINUX_IPC_H
3 #define _UAPI_LINUX_IPC_H
4
5 #include <linux/types.h>
6
7 #define IPC_PRIVATE ((__kernel_key_t) 0)
8
9
10 struct ipc_perm
11 {
12 __kernel_key_t key;
13 __kernel_uid_t uid;
14 __kernel_gid_t gid;
15 __kernel_uid_t cuid;
16 __kernel_gid_t cgid;
17 __kernel_mode_t mode;
18 unsigned short seq;
19 };
20
21
22 #include <asm/ipcbuf.h>
23
24
25 #define IPC_CREAT 00001000
26 #define IPC_EXCL 00002000
27 #define IPC_NOWAIT 00004000
28
29
30
31
32 #define IPC_DIPC 00010000
33 #define IPC_OWN 00020000
34
35
36
37
38
39 #define IPC_RMID 0
40 #define IPC_SET 1
41 #define IPC_STAT 2
42 #define IPC_INFO 3
43
44
45
46
47
48 #define IPC_OLD 0
49
50 #define IPC_64 0x0100
51
52
53
54
55
56
57
58 struct ipc_kludge {
59 struct msgbuf __user *msgp;
60 long msgtyp;
61 };
62
63 #define SEMOP 1
64 #define SEMGET 2
65 #define SEMCTL 3
66 #define SEMTIMEDOP 4
67 #define MSGSND 11
68 #define MSGRCV 12
69 #define MSGGET 13
70 #define MSGCTL 14
71 #define SHMAT 21
72 #define SHMDT 22
73 #define SHMGET 23
74 #define SHMCTL 24
75
76
77 #define DIPC 25
78
79 #define IPCCALL(version,op) ((version)<<16 | (op))
80
81
82 #endif