diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2011-02-05 04:35:27 +0100 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2011-02-05 04:35:27 +0100 |
commit | 61ba39a23786a7ae9694705af1d146c00a319144 (patch) | |
tree | f9ad51bee751f7e878ac3e7ad4d45f993605c37d /os/src/open.c | |
parent | e2d292afdb43cd7d9391128563384e1edd53c52e (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.c | 17 |
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; -} |