blob: 66013b4fe10d5a7e5b25736e3ed1c1068bad5e5d [file] [log] [blame]
Sam Ravnborg83c86982009-01-04 15:44:22 -08001#ifndef __SPARC_IPCBUF_H
2#define __SPARC_IPCBUF_H
3
4/*
5 * The ipc64_perm structure for sparc/sparc64 architecture.
6 * Note extra padding because this structure is passed back and forth
7 * between kernel and user space.
8 *
9 * Pad space is left for:
10 * - 32-bit seq
11 * - on sparc for 32 bit mode (it is 32 bit on sparc64)
12 * - 2 miscellaneous 64-bit values
13 */
14
15struct ipc64_perm
16{
17 __kernel_key_t key;
18 __kernel_uid_t uid;
19 __kernel_gid_t gid;
20 __kernel_uid_t cuid;
21 __kernel_gid_t cgid;
22#ifndef __arch64__
23 unsigned short __pad0;
Sam Ravnborga439fe52008-07-27 23:00:59 +020024#endif
Sam Ravnborg83c86982009-01-04 15:44:22 -080025 __kernel_mode_t mode;
26 unsigned short __pad1;
27 unsigned short seq;
28 unsigned long long __unused1;
29 unsigned long long __unused2;
30};
31
32#endif /* __SPARC_IPCBUF_H */