diff options
Diffstat (limited to 'kernel/syscalls.h')
| -rw-r--r-- | kernel/syscalls.h | 82 |
1 files changed, 21 insertions, 61 deletions
diff --git a/kernel/syscalls.h b/kernel/syscalls.h index 9a08cba..c8bc807 100644 --- a/kernel/syscalls.h +++ b/kernel/syscalls.h @@ -1,62 +1,22 @@ -#include <sys/time.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <stdint.h> -#include "fs/fs.h" - -//fool-os syscalls -#define SYSCALL_READDIR 63 -#define SYSCALL_HAS_DATA 80 -#define SYSCALL_TUNE 81 - -//syscalls required by newlib -#define SYSCALL_EXIT 60 -#define SYSCALL_WRITE 61 -#define SYSCALL_READ 62 -#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 -#define SYSCALL_STAT 74 -#define SYSCALL_LSTAT 79 - -// stubs only so far! +#define SYSCALL_EXIT 60 +#define SYSCALL_CLOSE 66 +#define SYSCALL_EXECVE 64 +#define SYSCALL_FORK 72 +#define SYSCALL_GETPID 78 +#define SYSCALL_ISATTY 68 +#define SYSCALL_LINK 82 +#define SYSCALL_LSEEK 69 +#define SYSCALL_OPEN 65 +#define SYSCALL_READ 62 +#define SYSCALL_SBRK 70 +#define SYSCALL_STAT 74 +#define SYSCALL_FSTAT 67 +#define SYSCALL_LSTAT 79 +#define SYSCALL_TIMES 75 +#define SYSCALL_UNLINK 76 +#define SYSCALL_WAIT 77 +#define SYSCALL_WRITE 61 #define SYSCALL_GETTIMEOFDAY 71 -#define SYSCALL_FORK 72 -#define SYSCALL_KILL 73 -#define SYSCALL_LINK 73 -#define SYSCALL_TIMES 75 -#define SYSCALL_UNLINK 76 -#define SYSCALL_WAIT 77 -#define SYSCALL_GETPID 78 - -/* -int syscall_execve(char *name, char **argv, char **env); -int syscall_write(int file, char *buf, int len); - -int syscall_readdir(const char *name,struct 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_read(int file, char *buf, int len); -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_stat(char *file, struct stat *st); -int syscall_sbrk(int incr, int none1, int none2); -// -int syscall_gettimeofday(struct timeval *tv, struct timezone *tz); -int syscall_fork(void); -int syscall_getpid(void); -int syscall_kill(int pid, int sig); -int syscall_link(char *old, char *ne); -int syscall_times(struct tms *buf); -int syscall_unlink(char *name); -int syscall_wait(int *status); -// -int syscall_unhandled(int nr); -*/ +#define SYSCALL_READDIR 63 +#define SYSCALL_KILL 73 +#define SYSCALL_POLL 80 |
