1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 #ifndef __SPARC_IPCBUF_H 2 #ifndef __SPARC_IPCBUF_H 3 #define __SPARC_IPCBUF_H 3 #define __SPARC_IPCBUF_H 4 4 5 #include <linux/posix_types.h> 5 #include <linux/posix_types.h> 6 6 7 /* 7 /* 8 * The ipc64_perm structure for sparc/sparc64 8 * The ipc64_perm structure for sparc/sparc64 architecture. 9 * Note extra padding because this structure i 9 * Note extra padding because this structure is passed back and forth 10 * between kernel and user space. 10 * between kernel and user space. 11 * 11 * 12 * Pad space is left for: 12 * Pad space is left for: 13 * - 32-bit seq 13 * - 32-bit seq 14 * - on sparc for 32 bit mode (it is 32 bit on 14 * - on sparc for 32 bit mode (it is 32 bit on sparc64) 15 * - 2 miscellaneous 64-bit values 15 * - 2 miscellaneous 64-bit values 16 */ 16 */ 17 17 18 struct ipc64_perm 18 struct ipc64_perm 19 { 19 { 20 __kernel_key_t key; 20 __kernel_key_t key; 21 __kernel_uid32_t uid; 21 __kernel_uid32_t uid; 22 __kernel_gid32_t gid; 22 __kernel_gid32_t gid; 23 __kernel_uid32_t cuid; 23 __kernel_uid32_t cuid; 24 __kernel_gid32_t cgid; 24 __kernel_gid32_t cgid; 25 #ifndef __arch64__ 25 #ifndef __arch64__ 26 unsigned short __pad0; 26 unsigned short __pad0; 27 #endif 27 #endif 28 __kernel_mode_t mode; 28 __kernel_mode_t mode; 29 unsigned short __pad1; 29 unsigned short __pad1; 30 unsigned short seq; 30 unsigned short seq; 31 unsigned long long __unused1; 31 unsigned long long __unused1; 32 unsigned long long __unused2; 32 unsigned long long __unused2; 33 }; 33 }; 34 34 35 #endif /* __SPARC_IPCBUF_H */ 35 #endif /* __SPARC_IPCBUF_H */ 36 36
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.