OrionLibC
Barry Importing existing Orion LibC 03048a9 (2 years, 2 months ago)diff --git a/include/sys/syscall.h b/include/sys/syscall.h new file mode 100644 index 0000000..d732c59 --- /dev/null +++ b/include/sys/syscall.h @@ -0,0 +1,60 @@ +#ifndef _SYS_SYSCALL_H +#define _SYS_SYSCALL_H + +enum SystemCall { + /* Tasking */ + SYSCALL_DBGPRINTF, + SYSCALL_CLONE, + SYSCALL_EXIT, + SYSCALL_GETPID, + SYSCALL_GETUID, + SYSCALL_SETUID, + SYSCALL_GETEUID, + SYSCALL_SETEUID, + SYSCALL_GETGID, + SYSCALL_SETGID, + SYSCALL_GETEGID, + SYSCALL_SETEGID, + SYSCALL_EXECVE, + SYSCALL_WAITPID, + SYSCALL_TGKILL, + SYSCALL_KILL, + SYSCALL_TIME, + SYSCALL_TIMES, + SYSCALL_SLEEP, + + /* Files */ + SYSCALL_OPEN, + SYSCALL_CLOSE, + SYSCALL_READ, + SYSCALL_WRITE, + SYSCALL_IOCTL, + SYSCALL_LSEEK, + SYSCALL_STAT, + SYSCALL_FSTAT, + SYSCALL_GETDENTS, + SYSCALL_MKDIR, + SYSCALL_RMDIR, + SYSCALL_MKNOD, + SYSCALL_RENAME, + SYSCALL_DUP, + SYSCALL_DUP2, + SYSCALL_ISATTY, + + /* File System */ + SYSCALL_MOUNT, + SYSCALL_CHDIR, + SYSCALL_CHROOT, + SYSCALL_GETCWD, + + /* Memory */ + SYSCALL_MMAP, + + /* Messaging */ + SYSCALL_NB_SEND_MSG, + SYSCALL_SEND_MSG, + SYSCALL_NB_RECV_MSG, + SYSCALL_RECV_MSG, +}; + +#endif