18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
28c2ecf20Sopenharmony_ci#ifndef __PARISC_IPCBUF_H__
38c2ecf20Sopenharmony_ci#define __PARISC_IPCBUF_H__
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#include <asm/bitsperlong.h>
68c2ecf20Sopenharmony_ci#include <linux/posix_types.h>
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci/*
98c2ecf20Sopenharmony_ci * The ipc64_perm structure for PA-RISC is almost identical to
108c2ecf20Sopenharmony_ci * kern_ipc_perm as we have always had 32-bit UIDs and GIDs in the kernel.
118c2ecf20Sopenharmony_ci * 'seq' has been changed from long to int so that it's the same size
128c2ecf20Sopenharmony_ci * on 64-bit kernels as on 32-bit ones.
138c2ecf20Sopenharmony_ci */
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_cistruct ipc64_perm
168c2ecf20Sopenharmony_ci{
178c2ecf20Sopenharmony_ci	__kernel_key_t		key;
188c2ecf20Sopenharmony_ci	__kernel_uid_t		uid;
198c2ecf20Sopenharmony_ci	__kernel_gid_t		gid;
208c2ecf20Sopenharmony_ci	__kernel_uid_t		cuid;
218c2ecf20Sopenharmony_ci	__kernel_gid_t		cgid;
228c2ecf20Sopenharmony_ci#if __BITS_PER_LONG != 64
238c2ecf20Sopenharmony_ci	unsigned short int	__pad1;
248c2ecf20Sopenharmony_ci#endif
258c2ecf20Sopenharmony_ci	__kernel_mode_t		mode;
268c2ecf20Sopenharmony_ci	unsigned short int	__pad2;
278c2ecf20Sopenharmony_ci	unsigned short int	seq;
288c2ecf20Sopenharmony_ci	unsigned int		__pad3;
298c2ecf20Sopenharmony_ci	unsigned long long int __unused1;
308c2ecf20Sopenharmony_ci	unsigned long long int __unused2;
318c2ecf20Sopenharmony_ci};
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ci#endif /* __PARISC_IPCBUF_H__ */
34