projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
align stack properly for calling global ctors/dtors on x86[_64]
[musl]
/
include
/
sys
/
msg.h
diff --git
a/include/sys/msg.h
b/include/sys/msg.h
index
9fc42bc
..
ceedd1c
100644
(file)
--- a/
include/sys/msg.h
+++ b/
include/sys/msg.h
@@
-1,6
+1,10
@@
#ifndef _SYS_MSG_H
#define _SYS_MSG_H
#ifndef _SYS_MSG_H
#define _SYS_MSG_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <sys/ipc.h>
#define __NEED_pid_t
#include <sys/ipc.h>
#define __NEED_pid_t
@@
-14,23
+18,34
@@
typedef unsigned long msgqnum_t;
typedef unsigned long msglen_t;
typedef unsigned long msgqnum_t;
typedef unsigned long msglen_t;
-struct msqid_ds
-{
- struct ipc_perm msg_perm;
- time_t msg_stime;
- time_t msg_rtime;
- time_t msg_ctime;
- msgqnum_t msg_qnum;
- msglen_t msg_qbytes;
- pid_t msg_lspid;
- pid_t msd_lrpid;
-};
+#include <bits/msg.h>
+
+#define __msg_cbytes msg_cbytes
#define MSG_NOERROR 010000
#define MSG_NOERROR 010000
+#define MSG_STAT 11
+#define MSG_INFO 12
+
+struct msginfo {
+ int msgpool, msgmap, msgmax, msgmnb, msgmni, msgssz, msgtql;
+ unsigned short msgseg;
+};
+
int msgctl (int, int, struct msqid_ds *);
int msgget (key_t, int);
int msgctl (int, int, struct msqid_ds *);
int msgget (key_t, int);
-
in
t msgrcv (int, void *, size_t, long, int);
+
ssize_
t msgrcv (int, void *, size_t, long, int);
int msgsnd (int, const void *, size_t, int);
int msgsnd (int, const void *, size_t, int);
+#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
+struct msgbuf {
+ long mtype;
+ char mtext[1];
+};
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
#endif
#endif