summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-09-13 14:40:09 +0200
committerMiguel <m.i@gmx.at>2018-09-13 14:40:09 +0200
commit3bba2df34be1680777ff85ad4fbc43717609ec75 (patch)
tree983e3c2b5667e3aa150502f59453ecebeeeba63a
parentf844fafd324fbf4c7a986df2f0814f2e2d93bcd8 (diff)
thinking about syscalls and newlib ...
-rw-r--r--interface/crt0.h (renamed from newlib/crt0.h)0
-rw-r--r--interface/crt0.s (renamed from newlib/crt0.s)0
-rw-r--r--interface/newlib.diff (renamed from newlib/newlib.diff)0
-rw-r--r--interface/syscall.h (renamed from newlib/syscall.h)2
-rw-r--r--interface/syscall.s (renamed from newlib/syscall.s)0
-rw-r--r--interface/syscalls.c (renamed from newlib/syscalls.c)1
-rw-r--r--interface/syscalls.h (renamed from newlib/syscalls.h)0
-rw-r--r--lib/string/string.c3
8 files changed, 3 insertions, 3 deletions
diff --git a/newlib/crt0.h b/interface/crt0.h
index 40a8c17..40a8c17 100644
--- a/newlib/crt0.h
+++ b/interface/crt0.h
diff --git a/newlib/crt0.s b/interface/crt0.s
index ad9884f..ad9884f 100644
--- a/newlib/crt0.s
+++ b/interface/crt0.s
diff --git a/newlib/newlib.diff b/interface/newlib.diff
index c435d04..c435d04 100644
--- a/newlib/newlib.diff
+++ b/interface/newlib.diff
diff --git a/newlib/syscall.h b/interface/syscall.h
index 2cadce4..43a06fd 100644
--- a/newlib/syscall.h
+++ b/interface/syscall.h
@@ -1,7 +1,7 @@
/*
* Issue a System Call from Ring 3 / User Space
*
- * Accepts up to 3 parameters.
+ * Syscalls Have up to 3 parameters. Unused Parameters are just ignored.
* Check syscalls.h for details.
*/
diff --git a/newlib/syscall.s b/interface/syscall.s
index abce63a..abce63a 100644
--- a/newlib/syscall.s
+++ b/interface/syscall.s
diff --git a/newlib/syscalls.c b/interface/syscalls.c
index 532f8b5..11304a8 100644
--- a/newlib/syscalls.c
+++ b/interface/syscalls.c
@@ -8,6 +8,7 @@
#include "syscalls.h"
extern char **environ;
+// TODO: errno!
int _readdir(const char *name,fs_dirent *dirs,int max)
{
diff --git a/newlib/syscalls.h b/interface/syscalls.h
index 40a8c17..40a8c17 100644
--- a/newlib/syscalls.h
+++ b/interface/syscalls.h
diff --git a/lib/string/string.c b/lib/string/string.c
index 2405483..08348d3 100644
--- a/lib/string/string.c
+++ b/lib/string/string.c
@@ -10,9 +10,8 @@ void* memcpy(void* restrict dstptr, const void* restrict srcptr, int size)
return dstptr;
}
-
// extra function for non-null terminated
-//length 0 for null terminated strings;
+// length 0 for null terminated strings;
int strcmp_l(char *str1, char *str2, int length)
{
int i=0;