blob: 9c42ceeb3e4c6147a6a37be9e5e3141d61b5736c [file] [log] [blame]
Elliott Hughesabd62612013-11-08 11:45:48 -08001/****************************************************************************
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 _ASM_SHMBUF_H
20#define _ASM_SHMBUF_H
Christopher Ferris9ce28842018-10-25 12:11:39 -070021#ifdef __mips64
Elliott Hughesabd62612013-11-08 11:45:48 -080022struct shmid64_ds {
Tao Baod7db5942015-01-28 10:07:51 -080023 struct ipc64_perm shm_perm;
Tao Baod7db5942015-01-28 10:07:51 -080024 size_t shm_segsz;
25 __kernel_time_t shm_atime;
26 __kernel_time_t shm_dtime;
27 __kernel_time_t shm_ctime;
Tao Baod7db5942015-01-28 10:07:51 -080028 __kernel_pid_t shm_cpid;
29 __kernel_pid_t shm_lpid;
30 unsigned long shm_nattch;
31 unsigned long __unused1;
Tao Baod7db5942015-01-28 10:07:51 -080032 unsigned long __unused2;
Elliott Hughesabd62612013-11-08 11:45:48 -080033};
Christopher Ferris9ce28842018-10-25 12:11:39 -070034#else
35struct shmid64_ds {
36 struct ipc64_perm shm_perm;
37 size_t shm_segsz;
38 unsigned long shm_atime;
39 unsigned long shm_dtime;
40 unsigned long shm_ctime;
41 __kernel_pid_t shm_cpid;
42 __kernel_pid_t shm_lpid;
43 unsigned long shm_nattch;
44 unsigned short shm_atime_high;
45 unsigned short shm_dtime_high;
46 unsigned short shm_ctime_high;
47 unsigned short __unused1;
48};
49#endif
Elliott Hughesabd62612013-11-08 11:45:48 -080050struct shminfo64 {
Tao Baod7db5942015-01-28 10:07:51 -080051 unsigned long shmmax;
Tao Baod7db5942015-01-28 10:07:51 -080052 unsigned long shmmin;
53 unsigned long shmmni;
54 unsigned long shmseg;
55 unsigned long shmall;
Tao Baod7db5942015-01-28 10:07:51 -080056 unsigned long __unused1;
57 unsigned long __unused2;
58 unsigned long __unused3;
59 unsigned long __unused4;
Elliott Hughesabd62612013-11-08 11:45:48 -080060};
61#endif