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.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/user/lib/fcntl.c b/src/user/lib/fcntl.c
index fcec545..89412a5 100644
--- a/src/user/lib/fcntl.c
+++ b/src/user/lib/fcntl.c
@@ -1,12 +1,17 @@
#include <bits/panic.h>
+#include <errno.h>
#include <fcntl.h>
+#include <stdio.h>
+
int open(const char *path, int flags, ...) {
(void)path; (void)flags;
- __libc_panic("unimplemented");
+ _klogf("failing open(\"%s\")", path);
+ return errno = ENOSYS, -1;
}
int fcntl(int fd, int cmd, ...) {
(void)fd; (void)cmd;
- __libc_panic("unimplemented");
+ _klogf("failing fcntl(%d)", cmd);
+ return errno = ENOSYS, -1;
}