msgbuf.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef _S390_MSGBUF_H
  2. #define _S390_MSGBUF_H
  3. /*
  4. * The msqid64_ds structure for S/390 architecture.
  5. * Note extra padding because this structure is passed back and forth
  6. * between kernel and user space.
  7. *
  8. * Pad space is left for:
  9. * - 64-bit time_t to solve y2038 problem
  10. * - 2 miscellaneous 32-bit values
  11. */
  12. struct msqid64_ds {
  13. struct ipc64_perm msg_perm;
  14. __kernel_time_t msg_stime; /* last msgsnd time */
  15. #ifndef __s390x__
  16. unsigned long __unused1;
  17. #endif /* ! __s390x__ */
  18. __kernel_time_t msg_rtime; /* last msgrcv time */
  19. #ifndef __s390x__
  20. unsigned long __unused2;
  21. #endif /* ! __s390x__ */
  22. __kernel_time_t msg_ctime; /* last change time */
  23. #ifndef __s390x__
  24. unsigned long __unused3;
  25. #endif /* ! __s390x__ */
  26. unsigned long msg_cbytes; /* current number of bytes on queue */
  27. unsigned long msg_qnum; /* number of messages in queue */
  28. unsigned long msg_qbytes; /* max number of bytes on queue */
  29. __kernel_pid_t msg_lspid; /* pid of last msgsnd */
  30. __kernel_pid_t msg_lrpid; /* last receive pid */
  31. unsigned long __unused4;
  32. unsigned long __unused5;
  33. };
  34. #endif /* _S390_MSGBUF_H */