162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
262306a36Sopenharmony_ci#ifndef __PARISC_IPCBUF_H__
362306a36Sopenharmony_ci#define __PARISC_IPCBUF_H__
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci#include <asm/bitsperlong.h>
662306a36Sopenharmony_ci#include <linux/posix_types.h>
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci/*
962306a36Sopenharmony_ci * The ipc64_perm structure for PA-RISC is almost identical to
1062306a36Sopenharmony_ci * kern_ipc_perm as we have always had 32-bit UIDs and GIDs in the kernel.
1162306a36Sopenharmony_ci * 'seq' has been changed from long to int so that it's the same size
1262306a36Sopenharmony_ci * on 64-bit kernels as on 32-bit ones.
1362306a36Sopenharmony_ci */
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_cistruct ipc64_perm
1662306a36Sopenharmony_ci{
1762306a36Sopenharmony_ci	__kernel_key_t		key;
1862306a36Sopenharmony_ci	__kernel_uid_t		uid;
1962306a36Sopenharmony_ci	__kernel_gid_t		gid;
2062306a36Sopenharmony_ci	__kernel_uid_t		cuid;
2162306a36Sopenharmony_ci	__kernel_gid_t		cgid;
2262306a36Sopenharmony_ci#if __BITS_PER_LONG != 64
2362306a36Sopenharmony_ci	unsigned short int	__pad1;
2462306a36Sopenharmony_ci#endif
2562306a36Sopenharmony_ci	__kernel_mode_t		mode;
2662306a36Sopenharmony_ci	unsigned short int	__pad2;
2762306a36Sopenharmony_ci	unsigned short int	seq;
2862306a36Sopenharmony_ci	unsigned int		__pad3;
2962306a36Sopenharmony_ci	unsigned long long int __unused1;
3062306a36Sopenharmony_ci	unsigned long long int __unused2;
3162306a36Sopenharmony_ci};
3262306a36Sopenharmony_ci
3362306a36Sopenharmony_ci#endif /* __PARISC_IPCBUF_H__ */
34