diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-11-20 23:40:58 +0100 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-11-20 23:40:58 +0100 |
| commit | dbd1d6f13d7f47b24335c4b7039efe99fc06efed (patch) | |
| tree | b62e83f60a7dcf727268f437c0455b76ad716030 /kernel/syscalls.h | |
| parent | a822afc278e7855dea55bcd0de2e402d5bf43508 (diff) | |
minor cosmetic changes in syscalls
Diffstat (limited to 'kernel/syscalls.h')
| -rw-r--r-- | kernel/syscalls.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/kernel/syscalls.h b/kernel/syscalls.h index 5fb62db..eb9f854 100644 --- a/kernel/syscalls.h +++ b/kernel/syscalls.h @@ -1,9 +1,12 @@ #include "fs/fs.h" +//fool-os syscalls +#define SYSCALL_READDIR 63 + +//syscalls required by newlib #define SYSCALL_EXIT 60 #define SYSCALL_WRITE 61 #define SYSCALL_READ 62 -#define SYSCALL_READDIR 63 #define SYSCALL_EXECVE 64 #define SYSCALL_OPEN 65 #define SYSCALL_CLOSE 66 @@ -12,17 +15,17 @@ #define SYSCALL_LSEEK 69 #define SYSCALL_SBRK 70 +int syscall_readdir(const char *name,fs_dirent *dirs,int max); +int syscall_exit(int ret, int none1, int none2); int syscall_open(char *name, int flags, int len); int syscall_write(int file, char *buf, int len); int syscall_read(int file, char *buf, int len); -int syscall_readdir(const char *name,fs_dirent *dirs,int max); int syscall_execve(char *name, char **argv, char **env); - int syscall_close(int file,int none1,int none2); int syscall_fstat(int file, struct stat *st,int none); int syscall_isatty(int file,int none1,int none2); int syscall_lseek(int file,int ptr,int dir); int syscall_sbrk(int incr, int none1, int none2); -// missing: _exit, environ, fork, getpid, kill, link, stat, times, unlink, wait; +//fork, getpid, kill, link, stat, times, unlink, wait; |
