diff options
| author | Miguel <m.i@gmx.at> | 2018-09-13 14:32:28 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-09-13 14:32:28 +0200 |
| commit | f844fafd324fbf4c7a986df2f0814f2e2d93bcd8 (patch) | |
| tree | 30253b4757630124b23b29e8f09c3c77da07b423 /kernel/syscalls.h | |
| parent | b9f10c8a65a24db1c6a52d9df67230b75fa38d1a (diff) | |
thinking about syscalls and pipes
Diffstat (limited to 'kernel/syscalls.h')
| -rw-r--r-- | kernel/syscalls.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/kernel/syscalls.h b/kernel/syscalls.h index 8b88e6a..b31d32c 100644 --- a/kernel/syscalls.h +++ b/kernel/syscalls.h @@ -6,11 +6,11 @@ #define SYSCALL_OPEN 65 #define SYSCALL_GETPID 78 -#define SYSCALL_ISATTY 68 +#define SYSCALL_ISATTY 68 // linux?? #define SYSCALL_LINK 82 #define SYSCALL_LSEEK 69 #define SYSCALL_READ 62 -#define SYSCALL_SBRK 70 +#define SYSCALL_SBRK 70 // linux?? #define SYSCALL_STAT 74 #define SYSCALL_FSTAT 67 #define SYSCALL_LSTAT 79 @@ -19,14 +19,15 @@ #define SYSCALL_WAIT 77 #define SYSCALL_WRITE 61 #define SYSCALL_GETTIMEOFDAY 71 -#define SYSCALL_READDIR 63 +#define SYSCALL_READDIR 63 // getdents? #define SYSCALL_KILL 73 #define SYSCALL_POLL 80 //shit!? #define SYSCALL_CLONE 83 +#define SYSCALL_PIPE 84 // TODO! unnamed and named pipes (fifos) SYSCALL_MKNOD char* syscall_get_name(uint32_t num); uint32_t syscall_generic(uint32_t nr,uint32_t p1, uint32_t p2, uint32_t p3, uint32_t pid); -int chk_syscall_read(int file, char *buf, int len); + int syscall_open(char *name, int flags, int mode); int syscall_write(int file, char *buf, int len); |
