toaruos/base/usr/include/syscall_nums.h

68 lines
1.4 KiB
C
Raw Normal View History

2018-10-12 05:15:40 +03:00
#pragma once
2018-02-25 08:13:54 +03:00
#define SYS_EXT 0
#define SYS_GETEUID 1
2018-02-25 08:13:54 +03:00
#define SYS_OPEN 2
#define SYS_READ 3
#define SYS_WRITE 4
#define SYS_CLOSE 5
#define SYS_GETTIMEOFDAY 6
#define SYS_EXECVE 7
#define SYS_FORK 8
#define SYS_GETPID 9
#define SYS_SBRK 10
2021-05-31 04:47:02 +03:00
#define SYS_SOCKET 11
2018-02-25 08:13:54 +03:00
#define SYS_UNAME 12
#define SYS_OPENPTY 13
#define SYS_SEEK 14
#define SYS_STAT 15
2021-05-31 04:47:02 +03:00
#define SYS_SETSOCKOPT 16
#define SYS_BIND 17
#define SYS_ACCEPT 18
#define SYS_LISTEN 19
#define SYS_CONNECT 20
2018-02-25 08:13:54 +03:00
#define SYS_MKPIPE 21
#define SYS_DUP2 22
#define SYS_GETUID 23
#define SYS_SETUID 24
2021-05-31 04:47:02 +03:00
#define SYS_GETSOCKOPT 25
2018-02-25 08:13:54 +03:00
#define SYS_REBOOT 26
#define SYS_READDIR 27
#define SYS_CHDIR 28
#define SYS_GETCWD 29
#define SYS_CLONE 30
#define SYS_SETHOSTNAME 31
#define SYS_GETHOSTNAME 32
#define SYS_MKDIR 34
#define SYS_SHM_OBTAIN 35
#define SYS_SHM_RELEASE 36
#define SYS_KILL 37
#define SYS_SIGNAL 38
2021-05-31 04:47:02 +03:00
#define SYS_RECV 39
#define SYS_SEND 40
2018-02-25 08:13:54 +03:00
#define SYS_GETTID 41
#define SYS_YIELD 42
#define SYS_SYSFUNC 43
2021-05-31 04:47:02 +03:00
#define SYS_SHUTDOWN 44
2018-02-25 08:13:54 +03:00
#define SYS_SLEEPABS 45
#define SYS_SLEEP 46
#define SYS_IOCTL 47
#define SYS_ACCESS 48
#define SYS_STATF 49
#define SYS_CHMOD 50
#define SYS_UMASK 51
#define SYS_UNLINK 52
#define SYS_WAITPID 53
#define SYS_PIPE 54
#define SYS_MOUNT 55
#define SYS_SYMLINK 56
#define SYS_READLINK 57
#define SYS_LSTAT 58
#define SYS_FSWAIT 59
#define SYS_FSWAIT2 60
#define SYS_CHOWN 61
2018-10-26 14:34:15 +03:00
#define SYS_SETSID 62
#define SYS_SETPGID 63
2018-10-30 07:28:11 +03:00
#define SYS_GETPGID 64
#define SYS_FSWAIT3 65