msgbuf.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef _SPARC_MSGBUF_H
  2. #define _SPARC_MSGBUF_H
  3. /*
  4. * The msqid64_ds structure for sparc64 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. #if defined(__sparc__) && defined(__arch64__)
  13. # define PADDING(x)
  14. #else
  15. # define PADDING(x) unsigned int x;
  16. #endif
  17. struct msqid64_ds {
  18. struct ipc64_perm msg_perm;
  19. PADDING(__pad1)
  20. __kernel_time_t msg_stime; /* last msgsnd time */
  21. PADDING(__pad2)
  22. __kernel_time_t msg_rtime; /* last msgrcv time */
  23. PADDING(__pad3)
  24. __kernel_time_t msg_ctime; /* last change time */
  25. unsigned long msg_cbytes; /* current number of bytes on queue */
  26. unsigned long msg_qnum; /* number of messages in queue */
  27. unsigned long msg_qbytes; /* max number of bytes on queue */
  28. __kernel_pid_t msg_lspid; /* pid of last msgsnd */
  29. __kernel_pid_t msg_lrpid; /* last receive pid */
  30. unsigned long __unused1;
  31. unsigned long __unused2;
  32. };
  33. #undef PADDING
  34. #endif /* _SPARC_MSGBUF_H */