shm.h (3eb66e91a25497065c5322b1268cbc3953642227) shm.h (2a785996cc5e2fc1d1d29d196f530905f68d2dc2)
1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2#ifndef _UAPI_LINUX_SHM_H_
3#define _UAPI_LINUX_SHM_H_
4
5#include <linux/ipc.h>
6#include <linux/errno.h>
7#include <asm-generic/hugetlb_encode.h>
8#ifndef __KERNEL__

--- 14 unchanged lines hidden (view full) ---

23#define SHMMAX (ULONG_MAX - (1UL << 24)) /* max shared seg size (bytes) */
24#define SHMALL (ULONG_MAX - (1UL << 24)) /* max shm system wide (pages) */
25#define SHMSEG SHMMNI /* max shared segs per process */
26
27/* Obsolete, used only for backwards compatibility and libc5 compiles */
28struct shmid_ds {
29 struct ipc_perm shm_perm; /* operation perms */
30 int shm_segsz; /* size of segment (bytes) */
1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2#ifndef _UAPI_LINUX_SHM_H_
3#define _UAPI_LINUX_SHM_H_
4
5#include <linux/ipc.h>
6#include <linux/errno.h>
7#include <asm-generic/hugetlb_encode.h>
8#ifndef __KERNEL__

--- 14 unchanged lines hidden (view full) ---

23#define SHMMAX (ULONG_MAX - (1UL << 24)) /* max shared seg size (bytes) */
24#define SHMALL (ULONG_MAX - (1UL << 24)) /* max shm system wide (pages) */
25#define SHMSEG SHMMNI /* max shared segs per process */
26
27/* Obsolete, used only for backwards compatibility and libc5 compiles */
28struct shmid_ds {
29 struct ipc_perm shm_perm; /* operation perms */
30 int shm_segsz; /* size of segment (bytes) */
31 __kernel_time_t shm_atime; /* last attach time */
32 __kernel_time_t shm_dtime; /* last detach time */
33 __kernel_time_t shm_ctime; /* last change time */
31 __kernel_old_time_t shm_atime; /* last attach time */
32 __kernel_old_time_t shm_dtime; /* last detach time */
33 __kernel_old_time_t shm_ctime; /* last change time */
34 __kernel_ipc_pid_t shm_cpid; /* pid of creator */
35 __kernel_ipc_pid_t shm_lpid; /* pid of last operator */
36 unsigned short shm_nattch; /* no. of current attaches */
37 unsigned short shm_unused; /* compatibility */
38 void *shm_unused2; /* ditto - used by DIPC */
39 void *shm_unused3; /* unused */
40};
41

--- 70 unchanged lines hidden ---
34 __kernel_ipc_pid_t shm_cpid; /* pid of creator */
35 __kernel_ipc_pid_t shm_lpid; /* pid of last operator */
36 unsigned short shm_nattch; /* no. of current attaches */
37 unsigned short shm_unused; /* compatibility */
38 void *shm_unused2; /* ditto - used by DIPC */
39 void *shm_unused3; /* unused */
40};
41

--- 70 unchanged lines hidden ---