summaryrefslogtreecommitdiff
path: root/src/fcntl/open.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2024-01-31 16:06:48 -0500
committerJakob Kaivo <jkk@ung.org>2024-01-31 16:06:48 -0500
commit34386fe72b733e12f5ab45bf1d4f5b59621c3a96 (patch)
treecd3e90f47f9c46f234df635d91c133b2e8a8f94d /src/fcntl/open.c
parent57fd57ab4005e37bfab4bf7c637eecc1eb5445b5 (diff)
remove more cruft
Diffstat (limited to 'src/fcntl/open.c')
-rw-r--r--src/fcntl/open.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/fcntl/open.c b/src/fcntl/open.c
deleted file mode 100644
index 0317a888..00000000
--- a/src/fcntl/open.c
+++ /dev/null
@@ -1,35 +0,0 @@
-#if 0
-
-#include <sys/types.h>
-#include <fcntl.h>
-#include <sys/stat.h> /* OH */
-#include <errno.h>
-#include <stdarg.h>
-#include "_syscall.h"
-
-int open(const char *path, int oflag, ...)
-{
- SYSCALL_NUMBER(scno, open, -1);
-
- mode_t mode = 0;
- if (oflag & O_CREAT) {
- va_list ap;
- va_start(ap, oflag);
- mode = va_arg(ap, mode_t);
- va_end(ap);
- }
-
- int r = __syscall(scno, path, oflag, mode);
- if (r < 0) {
- errno = -r;
- return -1;
- }
-
- return r;
-}
-/*
-POSIX(1)
-*/
-
-
-#endif