halt getspnam[_r] search on error accessing TCB shadow
[musl.git] / include / sys / msg.h
blobbe6afc34fb7ff66f2a5a4af623605ddccca9d84b
1 #ifndef _SYS_MSG_H
2 #define _SYS_MSG_H
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
8 #include <sys/ipc.h>
10 #define __NEED_pid_t
11 #define __NEED_key_t
12 #define __NEED_time_t
13 #define __NEED_size_t
14 #define __NEED_ssize_t
16 #include <bits/alltypes.h>
18 typedef unsigned long msgqnum_t;
19 typedef unsigned long msglen_t;
21 #include <bits/msg.h>
23 #define __msg_cbytes msg_cbytes
25 #define MSG_NOERROR 010000
26 #define MSG_EXCEPT 020000
28 #define MSG_STAT 11
29 #define MSG_INFO 12
30 #define MSG_STAT_ANY 13
32 struct msginfo {
33 int msgpool, msgmap, msgmax, msgmnb, msgmni, msgssz, msgtql;
34 unsigned short msgseg;
37 int msgctl (int, int, struct msqid_ds *);
38 int msgget (key_t, int);
39 ssize_t msgrcv (int, void *, size_t, long, int);
40 int msgsnd (int, const void *, size_t, int);
42 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
43 struct msgbuf {
44 long mtype;
45 char mtext[1];
47 #endif
49 #ifdef __cplusplus
51 #endif
53 #endif