From 0f30d227497418c6d3bef7d52244407e30454504 Mon Sep 17 00:00:00 2001 From: Kacper Date: Mon, 22 Dec 2025 23:27:56 +0100 Subject: Added c11 threads, fixed some locks and add *_unlocked functions --- lib/libc/sys/mqueue/mq_notify.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 lib/libc/sys/mqueue/mq_notify.c (limited to 'lib/libc/sys/mqueue/mq_notify.c') diff --git a/lib/libc/sys/mqueue/mq_notify.c b/lib/libc/sys/mqueue/mq_notify.c new file mode 100644 index 00000000..6011f567 --- /dev/null +++ b/lib/libc/sys/mqueue/mq_notify.c @@ -0,0 +1,15 @@ +#include +#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