aboutsummaryrefslogtreecommitdiff
path: root/sdk-modifications/libsrc/fs/ds2_unistd.h
diff options
context:
space:
mode:
Diffstat (limited to 'sdk-modifications/libsrc/fs/ds2_unistd.h')
-rw-r--r--sdk-modifications/libsrc/fs/ds2_unistd.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/sdk-modifications/libsrc/fs/ds2_unistd.h b/sdk-modifications/libsrc/fs/ds2_unistd.h
new file mode 100644
index 0000000..f5efdb1
--- /dev/null
+++ b/sdk-modifications/libsrc/fs/ds2_unistd.h
@@ -0,0 +1,22 @@
+#ifndef __libc_unistd_h__
+#define __libc_unistd_h__
+
+#include "fs_common.h"
+#include "fatfile.h"
+#include "fs_api.h"
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+extern int close(int fildes);
+extern int lseek(int fildes, int offset, int whence);
+extern int read(int fildes, void* buf, size_t len);
+extern int write(int fildes, const void* buf, size_t len);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif