Skip to content

Commit 75d7113

Browse files
committed
options/posix: stub mq_receive
1 parent 6f19c0d commit 75d7113

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

options/posix/generic/mqueue.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,8 @@ mqd_t mq_open(const char *, int, ...) {
2020
__ensure(!"Not implemented");
2121
__builtin_unreachable();
2222
}
23+
24+
ssize_t mq_receive(mqd_t, char *, size_t, unsigned int *) {
25+
__ensure(!"Not implemented");
26+
__builtin_unreachable();
27+
}

options/posix/include/mqueue.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#define _MQUEUE_H
33

44
#include <abi-bits/mqueue.h>
5+
#include <bits/size_t.h>
6+
#include <bits/ssize_t.h>
57

68
#ifdef __cplusplus
79
extern "C" {
@@ -15,6 +17,7 @@ int mq_getattr(mqd_t __mqdes, struct mq_attr *__attr);
1517
int mq_setattr(mqd_t __mqdes, const struct mq_attr *__restrict__ __newattr, struct mq_attr *__restrict__ __oldattr);
1618
int mq_unlink(const char *__name);
1719
mqd_t mq_open(const char *__name, int __flags, ...);
20+
ssize_t mq_receive(mqd_t __mqdes, char *__msg_ptr, size_t __msg_len, unsigned int *__msg_prio);
1821

1922
#endif /* !__MLIBC_ABI_ONLY */
2023

0 commit comments

Comments
 (0)