summaryrefslogtreecommitdiff
path: root/os/src/open.c
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2011-02-05 04:35:27 +0100
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2011-02-05 04:35:27 +0100
commit61ba39a23786a7ae9694705af1d146c00a319144 (patch)
treef9ad51bee751f7e878ac3e7ad4d45f993605c37d /os/src/open.c
parente2d292afdb43cd7d9391128563384e1edd53c52e (diff)
Getting rid of newlib, starting to implement a libc. Highly experimental, highly untested.
Diffstat (limited to 'os/src/open.c')
-rw-r--r--os/src/open.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/os/src/open.c b/os/src/open.c
deleted file mode 100644
index 5298fd8..0000000
--- a/os/src/open.c
+++ /dev/null
@@ -1,17 +0,0 @@
-#include <stdio.h>
-#include <reent.h>
-#include <errno.h>
-#include "fio.h"
-#include "filesystem.h"
-#include "osdebug.h"
-
-int _open_r(struct _reent * reent, const char * path, int flags, int mode) {
-// DBGOUT("_open_r(%p, \"%s\", flags, mode)\r\n", reent, path, flags, mode);
- int r = fs_open(path, flags, mode);
-
- if (r >= 0)
- return r;
-
- reent->_errno = EACCES;
- return -1;
-}