summaryrefslogtreecommitdiff
path: root/src/user/lib/fcntl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/lib/fcntl.c')
-rw-r--r--src/user/lib/fcntl.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/user/lib/fcntl.c b/src/user/lib/fcntl.c
deleted file mode 100644
index b2d8685..0000000
--- a/src/user/lib/fcntl.c
+++ /dev/null
@@ -1,28 +0,0 @@
-#include <bits/panic.h>
-#include <camellia.h>
-#include <camellia/syscalls.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <stdarg.h>
-
-#include <stdio.h>
-
-int open(const char *path, int flags, ...) {
- (void)path; (void)flags;
- _klogf("failing open(\"%s\")", path);
- return errno = ENOSYS, -1;
-}
-
-int fcntl(int fd, int cmd, ...) {
- va_list argp;
- va_start(argp, cmd);
- if (cmd == F_DUPFD) {
- int to = va_arg(argp, int);
- va_end(argp);
- return _sys_dup(fd, to, DUP_SEARCH);
- } else {
- va_end(argp);
- _klogf("failing fcntl(%d)", cmd);
- return errno = ENOSYS, -1;
- }
-}