summaryrefslogtreecommitdiff
path: root/os/src/lseek.c
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-02-02 08:35:38 -0800
committerPixel <pixel@nobis-crew.org>2011-02-02 08:35:38 -0800
commit3ca9b28c5b04220565c206bd73d9ebb48b64db3b (patch)
tree86ffbb085f2c255de44321c858780c77dc7583d8 /os/src/lseek.c
parent29dc401e5ba2c3f5676d426c4c1b10f1fc475fcd (diff)
Making a sample code for the 'romfs' thingy.
Diffstat (limited to 'os/src/lseek.c')
-rw-r--r--os/src/lseek.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/os/src/lseek.c b/os/src/lseek.c
index 1cb0234..1e904a5 100644
--- a/os/src/lseek.c
+++ b/os/src/lseek.c
@@ -2,9 +2,11 @@
#include <osdebug.h>
#include <errno.h>
#include "fio.h"
+#include "osdebug.h"
_off_t _lseek_r(struct _reent * reent, int fd, _off_t seek, int wheel) {
off_t r;
+// DBGOUT("_lseek_r(%p, %i, %i, %i)\r\n", reent, fd, seek, wheel);
if ((wheel != SEEK_SET) && (wheel != SEEK_CUR) && (wheel != SEEK_END)) {
reent->_errno = EINVAL;