msgbuf.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef _ASM_MSGBUF_H
  2. #define _ASM_MSGBUF_H
  3. /*
  4. * The msqid64_ds structure for the MIPS 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. * - extension of time_t to 64-bit on 32-bitsystem to solve the y2038 problem
  10. * - 2 miscellaneous unsigned long values
  11. */
  12. struct msqid64_ds {
  13. struct ipc64_perm msg_perm;
  14. #if !defined(__mips64) && defined(__MIPSEB__)
  15. unsigned long __unused1;
  16. #endif
  17. __kernel_time_t msg_stime; /* last msgsnd time */
  18. #if !defined(__mips64) && defined(__MIPSEL__)
  19. unsigned long __unused1;
  20. #endif
  21. #if !defined(__mips64) && defined(__MIPSEB__)
  22. unsigned long __unused2;
  23. #endif
  24. __kernel_time_t msg_rtime; /* last msgrcv time */
  25. #if !defined(__mips64) && defined(__MIPSEL__)
  26. unsigned long __unused2;
  27. #endif
  28. #if !defined(__mips64) && defined(__MIPSEB__)
  29. unsigned long __unused3;
  30. #endif
  31. __kernel_time_t msg_ctime; /* last change time */
  32. #if !defined(__mips64) && defined(__MIPSEL__)
  33. unsigned long __unused3;
  34. #endif
  35. unsigned long msg_cbytes; /* current number of bytes on queue */
  36. unsigned long msg_qnum; /* number of messages in queue */
  37. unsigned long msg_qbytes; /* max number of bytes on queue */
  38. __kernel_pid_t msg_lspid; /* pid of last msgsnd */
  39. __kernel_pid_t msg_lrpid; /* last receive pid */
  40. unsigned long __unused4;
  41. unsigned long __unused5;
  42. };
  43. #endif /* _ASM_MSGBUF_H */