• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * This file is auto-generated. Modifications will be lost.
3  *
4  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5  * for more information.
6  */
7 #ifndef _UAPI_LINUX_IPC_H
8 #define _UAPI_LINUX_IPC_H
9 #include <linux/types.h>
10 #define IPC_PRIVATE ((__kernel_key_t) 0)
11 struct __kernel_legacy_ipc_perm {
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 #include <asm/ipcbuf.h>
21 #define IPC_CREAT 00001000
22 #define IPC_EXCL 00002000
23 #define IPC_NOWAIT 00004000
24 #define IPC_DIPC 00010000
25 #define IPC_OWN 00020000
26 #define IPC_RMID 0
27 #define IPC_SET 1
28 #define IPC_STAT 2
29 #define IPC_INFO 3
30 #define IPC_OLD 0
31 #define IPC_64 0x0100
32 struct ipc_kludge {
33   struct msgbuf  * msgp;
34   long msgtyp;
35 };
36 #define SEMOP 1
37 #define SEMGET 2
38 #define SEMCTL 3
39 #define SEMTIMEDOP 4
40 #define MSGSND 11
41 #define MSGRCV 12
42 #define MSGGET 13
43 #define MSGCTL 14
44 #define SHMAT 21
45 #define SHMDT 22
46 #define SHMGET 23
47 #define SHMCTL 24
48 #define DIPC 25
49 #define IPCCALL(version,op) ((version) << 16 | (op))
50 #endif
51