msgbuf.h 1.5 KB

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