bmsqh.inc 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. const
  2. MSG_NOERROR = $1000;
  3. MSG_EXCEPT = $2000;
  4. type
  5. Pmsgqnum_t = ^msgqnum_t;
  6. msgqnum_t = dword;
  7. Pmsglen_t = ^msglen_t;
  8. msglen_t = dword;
  9. Pmsqid_ds = ^msqid_ds;
  10. msqid_ds = record
  11. msg_perm : ipc_perm;
  12. msg_stime : __time_t;
  13. __unused1 : dword;
  14. msg_rtime : __time_t;
  15. __unused2 : dword;
  16. msg_ctime : __time_t;
  17. __unused3 : dword;
  18. __msg_cbytes : dword;
  19. msg_qnum : msgqnum_t;
  20. msg_qbytes : msglen_t;
  21. msg_lspid : __pid_t;
  22. msg_lrpid : __pid_t;
  23. __unused4 : dword;
  24. __unused5 : dword;
  25. end;
  26. const
  27. MSG_STAT = 11;
  28. MSG_INFO = 12;
  29. type
  30. Pmsginfo = ^msginfo;
  31. msginfo = record
  32. msgpool : longint;
  33. msgmap : longint;
  34. msgmax : longint;
  35. msgmnb : longint;
  36. msgmni : longint;
  37. msgssz : longint;
  38. msgtql : longint;
  39. msgseg : word;
  40. end;
  41. { ---------------------------------------------------------------------
  42. Borland compatibility types
  43. ---------------------------------------------------------------------}
  44. Type
  45. TMsgQueueIdDesc = msqid_ds;
  46. PMsgQueueIdDesc = ^TMsgQueueIdDesc;