diff options
Diffstat (limited to 'userspace/newcalls.h')
| -rw-r--r-- | userspace/newcalls.h | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/userspace/newcalls.h b/userspace/newcalls.h deleted file mode 100644 index e22bc78..0000000 --- a/userspace/newcalls.h +++ /dev/null @@ -1,30 +0,0 @@ -////////////////////////////////////////////////// - -// this syscall will be moved to newlib later! TODO! -#define SYSCALL_CLONE 83 -#define SYSCALL_PIPE 84 -#define SYSCALL_DUP2 86 -#define SYSCALL_GUI_RECT 87 -#define SYSCALL_GUI_WIN 88 - -int _clone(void) -{ - return syscall(SYSCALL_CLONE,0,0,0); -} -int _pipe(uint32_t fds[2]) -{ - return syscall(SYSCALL_PIPE,fds,0,0); -} -int _dup2(uint32_t oldfd,uint32_t newfd) -{ - return syscall(SYSCALL_DUP2,oldfd,newfd,0); -} -int _gui_rect() -{ - return syscall(SYSCALL_GUI_RECT,0,0,0); -} -int _gui_win() -{ - return syscall(SYSCALL_GUI_WIN,0,0,0); -} -// |
