blob: 04909d57e61b6a50d82a33114ba8b6c6aaaf93f4 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _UAPI_LINUX_SEM_H
20#define _UAPI_LINUX_SEM_H
21#include <linux/ipc.h>
22#define SEM_UNDO 0x1000
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define GETPID 11
25#define GETVAL 12
26#define GETALL 13
27#define GETNCNT 14
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define GETZCNT 15
30#define SETVAL 16
31#define SETALL 17
32#define SEM_STAT 18
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define SEM_INFO 19
35struct semid_ds {
Tao Baod7db5942015-01-28 10:07:51 -080036 struct ipc_perm sem_perm;
37 __kernel_time_t sem_otime;
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 __kernel_time_t sem_ctime;
40 struct sem * sem_base;
41 struct sem_queue * sem_pending;
42 struct sem_queue * * sem_pending_last;
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 struct sem_undo * undo;
45 unsigned short sem_nsems;
Ben Cheng655a7c02013-10-16 16:09:24 -070046};
47#include <asm/sembuf.h>
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49struct sembuf {
Tao Baod7db5942015-01-28 10:07:51 -080050 unsigned short sem_num;
51 short sem_op;
52 short sem_flg;
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54};
55union semun {
Tao Baod7db5942015-01-28 10:07:51 -080056 int val;
57 struct semid_ds __user * buf;
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 unsigned short __user * array;
60 struct seminfo __user * __buf;
61 void __user * __pad;
Ben Cheng655a7c02013-10-16 16:09:24 -070062};
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64struct seminfo {
Tao Baod7db5942015-01-28 10:07:51 -080065 int semmap;
66 int semmni;
67 int semmns;
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080069 int semmnu;
70 int semmsl;
71 int semopm;
72 int semume;
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080074 int semusz;
75 int semvmx;
76 int semaem;
Ben Cheng655a7c02013-10-16 16:09:24 -070077};
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79#define SEMMNI 128
80#define SEMMSL 250
Tao Baod7db5942015-01-28 10:07:51 -080081#define SEMMNS (SEMMNI * SEMMSL)
Ben Cheng655a7c02013-10-16 16:09:24 -070082#define SEMOPM 32
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84#define SEMVMX 32767
85#define SEMAEM SEMVMX
86#define SEMUME SEMOPM
87#define SEMMNU SEMMNS
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89#define SEMMAP SEMMNS
90#define SEMUSZ 20
91#endif