diff options
| author | Kacper <kacper@mail.openlinux.dev> | 2025-12-15 14:42:29 +0100 |
|---|---|---|
| committer | Kacper <kacper@mail.openlinux.dev> | 2025-12-15 14:42:29 +0100 |
| commit | 7cd3b7caee10d62f7be674afb86a136bf30485d6 (patch) | |
| tree | 121a8c79114174b765713387187d930b102f760f /include/mqueue.h | |
| parent | 3b3325f761b09ebbfef04c44eed546cc4fdeb329 (diff) | |
Add mqueue rt api, add header tests
Diffstat (limited to 'include/mqueue.h')
| -rw-r--r-- | include/mqueue.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/include/mqueue.h b/include/mqueue.h index c4582748..109123e4 100644 --- a/include/mqueue.h +++ b/include/mqueue.h @@ -1,11 +1,9 @@ #ifndef __MQUEUE_H #define __MQUEUE_H -#include <stddef.h> -#include <time.h> -#define __BITS_TIMESPEC_H_ -#include <bits/timespec.h> -#undef __BITS_TIMESPEC_H_ +#include <sys/cdefs.h> + +__BEGIN_DECLS #undef O_RDONLY #define O_RDONLY 000000000 @@ -26,6 +24,7 @@ typedef __SIZE_TYPE__ size_t; typedef __INT64_TYPE__ ssize_t; struct sigevent; +struct timespec; struct mq_attr { long mq_flags; long mq_maxmsg; @@ -46,4 +45,6 @@ int mq_timedsend(mqd_t, const char *, size_t, unsigned, const struct timespec *); int mq_unlink(const char *); +__END_DECLS + #endif |
