ipcbuf.h 837 B

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