diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-11-20 04:51:23 +0100 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-11-20 04:51:23 +0100 |
| commit | 1acde03a7c0f85aca9919e374e3df6cee6f0bd08 (patch) | |
| tree | 10ae84ce2693bad62e5c7376cd0c3c40a80c93df /kernel/syscalls.h | |
| parent | bcab3c0be8ff5fe1db1fac9e01973531cc29f554 (diff) | |
workin on syscall interface etc..
Diffstat (limited to 'kernel/syscalls.h')
| -rw-r--r-- | kernel/syscalls.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/kernel/syscalls.h b/kernel/syscalls.h index 6569aa6..63aafc4 100644 --- a/kernel/syscalls.h +++ b/kernel/syscalls.h @@ -1,6 +1,27 @@ #include "fs/fs.h" +#define SYSCALL_WRITE 61 +#define SYSCALL_READ 62 +#define SYSCALL_READDIR 63 +#define SYSCALL_EXECVE 64 +#define SYSCALL_OPEN 65 +#define SYSCALL_CLOSE 66 +#define SYSCALL_FSTAT 67 +#define SYSCALL_ISATTY 68 +#define SYSCALL_LSEEK 69 +#define SYSCALL_SBRK 70 + + +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; |
