summaryrefslogtreecommitdiff
path: root/packages/libc/src/bmsqh.inc
diff options
context:
space:
mode:
Diffstat (limited to 'packages/libc/src/bmsqh.inc')
-rw-r--r--packages/libc/src/bmsqh.inc54
1 files changed, 54 insertions, 0 deletions
diff --git a/packages/libc/src/bmsqh.inc b/packages/libc/src/bmsqh.inc
new file mode 100644
index 0000000000..cf76dd0d7a
--- /dev/null
+++ b/packages/libc/src/bmsqh.inc
@@ -0,0 +1,54 @@
+
+const
+ MSG_NOERROR = $1000;
+ MSG_EXCEPT = $2000;
+
+type
+ Pmsgqnum_t = ^msgqnum_t;
+ msgqnum_t = dword;
+
+ Pmsglen_t = ^msglen_t;
+ msglen_t = dword;
+ Pmsqid_ds = ^msqid_ds;
+ msqid_ds = record
+ msg_perm : ipc_perm;
+ msg_stime : __time_t;
+ __unused1 : dword;
+ msg_rtime : __time_t;
+ __unused2 : dword;
+ msg_ctime : __time_t;
+ __unused3 : dword;
+ __msg_cbytes : dword;
+ msg_qnum : msgqnum_t;
+ msg_qbytes : msglen_t;
+ msg_lspid : __pid_t;
+ msg_lrpid : __pid_t;
+ __unused4 : dword;
+ __unused5 : dword;
+ end;
+
+
+const
+ MSG_STAT = 11;
+ MSG_INFO = 12;
+
+type
+ Pmsginfo = ^msginfo;
+ msginfo = record
+ msgpool : longint;
+ msgmap : longint;
+ msgmax : longint;
+ msgmnb : longint;
+ msgmni : longint;
+ msgssz : longint;
+ msgtql : longint;
+ msgseg : word;
+ end;
+
+{ ---------------------------------------------------------------------
+ Borland compatibility types
+ ---------------------------------------------------------------------}
+
+Type
+ TMsgQueueIdDesc = msqid_ds;
+ PMsgQueueIdDesc = ^TMsgQueueIdDesc;