xref: /openbmc/linux/arch/parisc/include/uapi/asm/ipcbuf.h (revision a8da474e)
1 #ifndef __PARISC_IPCBUF_H__
2 #define __PARISC_IPCBUF_H__
3 
4 #include <asm/bitsperlong.h>
5 #include <linux/posix_types.h>
6 
7 /*
8  * The ipc64_perm structure for PA-RISC is almost identical to
9  * kern_ipc_perm as we have always had 32-bit UIDs and GIDs in the kernel.
10  * 'seq' has been changed from long to int so that it's the same size
11  * on 64-bit kernels as on 32-bit ones.
12  */
13 
14 struct ipc64_perm
15 {
16 	__kernel_key_t		key;
17 	__kernel_uid_t		uid;
18 	__kernel_gid_t		gid;
19 	__kernel_uid_t		cuid;
20 	__kernel_gid_t		cgid;
21 #if __BITS_PER_LONG != 64
22 	unsigned short int	__pad1;
23 #endif
24 	__kernel_mode_t		mode;
25 	unsigned short int	__pad2;
26 	unsigned short int	seq;
27 	unsigned int		__pad3;
28 	unsigned long long int __unused1;
29 	unsigned long long int __unused2;
30 };
31 
32 #endif /* __PARISC_IPCBUF_H__ */
33