blob: a15b4991e8c0b132fc11e94771ac7f1c6b9144b6 [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_MSG_H
20#define _UAPI_LINUX_MSG_H
21#include <linux/ipc.h>
22#define MSG_STAT 11
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define MSG_INFO 12
25#define MSG_NOERROR 010000
26#define MSG_EXCEPT 020000
27#define MSG_COPY 040000
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Elliott Hughes7c59f3f2016-08-16 18:14:26 -070029struct __kernel_legacy_msqid_ds {
30 struct __kernel_legacy_ipc_perm msg_perm;
Tao Baod7db5942015-01-28 10:07:51 -080031 struct msg * msg_first;
32 struct msg * msg_last;
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 __kernel_time_t msg_stime;
35 __kernel_time_t msg_rtime;
36 __kernel_time_t msg_ctime;
37 unsigned long msg_lcbytes;
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 unsigned long msg_lqbytes;
40 unsigned short msg_cbytes;
41 unsigned short msg_qnum;
42 unsigned short msg_qbytes;
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 __kernel_ipc_pid_t msg_lspid;
45 __kernel_ipc_pid_t msg_lrpid;
Ben Cheng655a7c02013-10-16 16:09:24 -070046};
47#include <asm/msgbuf.h>
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49struct msgbuf {
Tao Baod7db5942015-01-28 10:07:51 -080050 __kernel_long_t mtype;
51 char mtext[1];
Ben Cheng655a7c02013-10-16 16:09:24 -070052};
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54struct msginfo {
Tao Baod7db5942015-01-28 10:07:51 -080055 int msgpool;
56 int msgmap;
57 int msgmax;
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 int msgmnb;
60 int msgmni;
61 int msgssz;
62 int msgtql;
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080064 unsigned short msgseg;
Ben Cheng655a7c02013-10-16 16:09:24 -070065};
Christopher Ferris05d08e92016-02-04 13:16:38 -080066#define MSGMNI 32000
Ben Cheng655a7c02013-10-16 16:09:24 -070067#define MSGMAX 8192
Christopher Ferris05d08e92016-02-04 13:16:38 -080068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070069#define MSGMNB 16384
70#define MSGPOOL (MSGMNI * MSGMNB / 1024)
71#define MSGTQL MSGMNB
Ben Cheng655a7c02013-10-16 16:09:24 -070072#define MSGMAP MSGMNB
Christopher Ferris05d08e92016-02-04 13:16:38 -080073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070074#define MSGSSZ 16
75#define __MSGSEG ((MSGPOOL * 1024) / MSGSSZ)
76#define MSGSEG (__MSGSEG <= 0xffff ? __MSGSEG : 0xffff)
Ben Cheng655a7c02013-10-16 16:09:24 -070077#endif
Christopher Ferris05d08e92016-02-04 13:16:38 -080078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */