msgbuf.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _S390_MSGBUF_H
  3. #define _S390_MSGBUF_H
  4. /*
  5. * The msqid64_ds structure for S/390 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. * - 64-bit time_t to solve y2038 problem
  11. * - 2 miscellaneous 32-bit values
  12. */
  13. struct msqid64_ds {
  14. struct ipc64_perm msg_perm;
  15. __kernel_time_t msg_stime; /* last msgsnd time */
  16. #ifndef __s390x__
  17. unsigned long __unused1;
  18. #endif /* ! __s390x__ */
  19. __kernel_time_t msg_rtime; /* last msgrcv time */
  20. #ifndef __s390x__
  21. unsigned long __unused2;
  22. #endif /* ! __s390x__ */
  23. __kernel_time_t msg_ctime; /* last change time */
  24. #ifndef __s390x__
  25. unsigned long __unused3;
  26. #endif /* ! __s390x__ */
  27. unsigned long msg_cbytes; /* current number of bytes on queue */
  28. unsigned long msg_qnum; /* number of messages in queue */
  29. unsigned long msg_qbytes; /* max number of bytes on queue */
  30. __kernel_pid_t msg_lspid; /* pid of last msgsnd */
  31. __kernel_pid_t msg_lrpid; /* last receive pid */
  32. unsigned long __unused4;
  33. unsigned long __unused5;
  34. };
  35. #endif /* _S390_MSGBUF_H */