From 7cd3b7caee10d62f7be674afb86a136bf30485d6 Mon Sep 17 00:00:00 2001 From: Kacper Date: Mon, 15 Dec 2025 14:42:29 +0100 Subject: Add mqueue rt api, add header tests --- lib/libc/mqueue/mq_notify.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 lib/libc/mqueue/mq_notify.c (limited to 'lib/libc/mqueue/mq_notify.c') diff --git a/lib/libc/mqueue/mq_notify.c b/lib/libc/mqueue/mq_notify.c new file mode 100644 index 00000000..a7617375 --- /dev/null +++ b/lib/libc/mqueue/mq_notify.c @@ -0,0 +1,15 @@ +#include +#include +#include + +int mq_notify(mqd_t mqdes, const struct sigevent *notification) +{ + if (notification == NULL || + notification->sigev_notify != SIGEV_THREAD) { + return syscall(mq_notify, mqdes, notification); + } + + // TODO: implement SIGEV_THREAD notification + errno = ENOSYS; + return -1; +} -- cgit v1.2.3