add struct msgbuf to sys/msg.h
This commit is contained in:
parent
6bf0fdbdfc
commit
0182c287ca
1 changed files with 7 additions and 0 deletions
|
|
@ -37,6 +37,13 @@ int msgget (key_t, int);
|
||||||
ssize_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
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue