msgbuf.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef __ASM_SH64_MSGBUF_H
  2. #define __ASM_SH64_MSGBUF_H
  3. /*
  4. * This file is subject to the terms and conditions of the GNU General Public
  5. * License. See the file "COPYING" in the main directory of this archive
  6. * for more details.
  7. *
  8. * include/asm-sh64/msgbuf.h
  9. *
  10. * Copyright (C) 2000, 2001 Paolo Alberelli
  11. *
  12. */
  13. /*
  14. * The msqid64_ds structure for i386 architecture.
  15. * Note extra padding because this structure is passed back and forth
  16. * between kernel and user space.
  17. *
  18. * Pad space is left for:
  19. * - 64-bit time_t to solve y2038 problem
  20. * - 2 miscellaneous 32-bit values
  21. */
  22. struct msqid64_ds {
  23. struct ipc64_perm msg_perm;
  24. __kernel_time_t msg_stime; /* last msgsnd time */
  25. unsigned long __unused1;
  26. __kernel_time_t msg_rtime; /* last msgrcv time */
  27. unsigned long __unused2;
  28. __kernel_time_t msg_ctime; /* last change time */
  29. unsigned long __unused3;
  30. unsigned long msg_cbytes; /* current number of bytes on queue */
  31. unsigned long msg_qnum; /* number of messages in queue */
  32. unsigned long msg_qbytes; /* max number of bytes on queue */
  33. __kernel_pid_t msg_lspid; /* pid of last msgsnd */
  34. __kernel_pid_t msg_lrpid; /* last receive pid */
  35. unsigned long __unused4;
  36. unsigned long __unused5;
  37. };
  38. #endif /* __ASM_SH64_MSGBUF_H */