TCP_* is in the reserved namespace for tcp.h; make use of that
[musl] / include / mqueue.h
1 #ifndef _MQUEUE_H
2 #define _MQUEUE_H
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
6
7 #if __STDC_VERSION__ >= 199901L
8 #define __restrict restrict
9 #elif !defined(__GNUC__)
10 #define __restrict
11 #endif
12
13 #define __NEED_size_t
14 #define __NEED_ssize_t
15 #define __NEED_pthread_attr_t
16 #define __NEED_time_t
17 #define __NEED_struct_timespec
18 #include <bits/alltypes.h>
19
20 typedef int mqd_t;
21 struct mq_attr {
22         long mq_flags, mq_maxmsg, mq_msgsize, mq_curmsgs, __unused[4];
23 };
24 struct sigevent;
25
26 int mq_close(mqd_t);
27 int mq_getattr(mqd_t, struct mq_attr *);
28 int mq_notify(mqd_t, const struct sigevent *);
29 mqd_t mq_open(const char *, int, ...);
30 ssize_t mq_receive(mqd_t, char *, size_t, unsigned *);
31 int mq_send(mqd_t, const char *, size_t, unsigned);
32 int mq_setattr(mqd_t, const struct mq_attr *__restrict, struct mq_attr *__restrict);
33 ssize_t mq_timedreceive(mqd_t, char *__restrict, size_t, unsigned *__restrict, const struct timespec *__restrict);
34 int mq_timedsend(mqd_t, const char *, size_t, unsigned, const struct timespec *);
35 int mq_unlink(const char *);
36
37 #ifdef __cplusplus
38 }
39 #endif
40 #endif