1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#ifndef __MQUEUE_H
#define __MQUEUE_H
#include <stddef.h>
#include <sys/cdefs.h>
#include <time.h>
__BEGIN_DECLS
#undef O_RDONLY
#define O_RDONLY 000000000
#undef O_WRONLY
#define O_WRONLY 000000001
#undef O_RDWR
#define O_RDWR 00000002
#undef O_CREAT
#define O_CREAT 00000100
#undef O_EXCL
#define O_EXCL 00000200
#undef O_NONBLOCK
#define O_NONBLOCK 00004000
typedef int mqd_t;
typedef __SIZE_TYPE__ size_t;
typedef __INT64_TYPE__ ssize_t;
struct sigevent;
struct timespec;
struct mq_attr {
long mq_flags;
long mq_maxmsg;
long mq_msgsize;
long mq_curmsgs;
};
int mq_close(mqd_t);
int mq_getattr(mqd_t, struct mq_attr *);
int mq_notify(mqd_t, const struct sigevent *);
mqd_t mq_open(const char *, int, ...);
ssize_t mq_receive(mqd_t, char *, size_t, unsigned *);
int mq_send(mqd_t, const char *, size_t, unsigned);
int mq_setattr(mqd_t, const struct mq_attr *restrict, struct mq_attr *restrict);
ssize_t mq_timedreceive(mqd_t, char *restrict, size_t, unsigned *restrict, const struct timespec *restrict);
int mq_timedsend(mqd_t, const char *, size_t, unsigned, const struct timespec *);
int mq_unlink(const char *);
__END_DECLS
#endif
|