summaryrefslogtreecommitdiff
path: root/lib/libc/mqueue/mq_open.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/mqueue/mq_open.c')
-rw-r--r--lib/libc/mqueue/mq_open.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/libc/mqueue/mq_open.c b/lib/libc/mqueue/mq_open.c
deleted file mode 100644
index 15ae9e18..00000000
--- a/lib/libc/mqueue/mq_open.c
+++ /dev/null
@@ -1,26 +0,0 @@
-#include <fcntl.h>
-#include <mqueue.h>
-#include <stdarg.h>
-#include <syscall.h>
-
-mqd_t mq_open(const char *name, int oflag, ...)
-{
- mode_t mode;
- struct mq_attr *attr;
-
- if (*name == '/')
- name++;
-
- if (oflag & O_CREAT) {
- va_list ap;
- va_start(ap, oflag);
- mode = va_arg(ap, mode_t);
- attr = va_arg(ap, struct mq_attr *);
- va_end(ap);
- } else {
- mode = 0;
- attr = 0;
- }
-
- return syscall(mq_open, name, oflag, mode, attr);
-}