Last change
on this file since 519 was
457,
checked in by alain, 6 years ago
|
This version modifies the exec syscall and fixes a large number of small bugs.
The version number has been updated (0.1)
|
File size:
1.7 KB
|
Line | |
---|
1 | #ifndef _SHARED_SYSCALLS_NUMBERS_H_ |
---|
2 | #define _SHARED_SYSCALLS_NUMBERS_H_ |
---|
3 | |
---|
4 | /****************************************************************************************** |
---|
5 | * This enum defines the mnemonics for the syscall indexes. |
---|
6 | * It must be kept consistent with the array defined in do_syscalls.c |
---|
7 | *****************************************************************************************/ |
---|
8 | |
---|
9 | enum |
---|
10 | { |
---|
11 | SYS_THREAD_EXIT = 0, |
---|
12 | SYS_THREAD_YIELD = 1, |
---|
13 | SYS_THREAD_CREATE = 2, |
---|
14 | SYS_THREAD_JOIN = 3, |
---|
15 | SYS_THREAD_DETACH = 4, |
---|
16 | SYS_THREAD_CANCEL = 5, |
---|
17 | SYS_SEM = 6, |
---|
18 | SYS_CONDVAR = 7, |
---|
19 | SYS_BARRIER = 8, |
---|
20 | SYS_MUTEX = 9, |
---|
21 | |
---|
22 | SYS_EXIT = 10, |
---|
23 | SYS_MUNMAP = 11, |
---|
24 | SYS_OPEN = 12, |
---|
25 | SYS_MMAP = 13, |
---|
26 | SYS_READ = 14, |
---|
27 | SYS_WRITE = 15, |
---|
28 | SYS_LSEEK = 16, |
---|
29 | SYS_CLOSE = 17, |
---|
30 | SYS_UNLINK = 18, |
---|
31 | SYS_PIPE = 19, |
---|
32 | |
---|
33 | SYS_CHDIR = 20, |
---|
34 | SYS_MKDIR = 21, |
---|
35 | SYS_MKFIFO = 22, |
---|
36 | SYS_OPENDIR = 23, |
---|
37 | SYS_READDIR = 24, |
---|
38 | SYS_CLOSEDIR = 25, |
---|
39 | SYS_GETCWD = 26, |
---|
40 | SYS_ISATTY = 27, |
---|
41 | SYS_ALARM = 28, |
---|
42 | SYS_RMDIR = 29, |
---|
43 | |
---|
44 | SYS_UTLS = 30, |
---|
45 | SYS_CHMOD = 31, |
---|
46 | SYS_SIGNAL = 32, |
---|
47 | SYS_TIMEOFDAY = 33, |
---|
48 | SYS_KILL = 34, |
---|
49 | SYS_GETPID = 35, |
---|
50 | SYS_FORK = 36, |
---|
51 | SYS_EXEC = 37, |
---|
52 | SYS_STAT = 38, |
---|
53 | SYS_WAIT = 39, |
---|
54 | |
---|
55 | SYS_GET_CONFIG = 40, |
---|
56 | SYS_GET_CORE = 41, |
---|
57 | SYS_GET_CYCLE = 42, |
---|
58 | SYS_DISPLAY = 43, |
---|
59 | SYS_UNDEFINED_44 = 44, /// |
---|
60 | SYS_THREAD_SLEEP = 45, |
---|
61 | SYS_THREAD_WAKEUP = 46, |
---|
62 | SYS_TRACE = 47, |
---|
63 | SYS_FG = 48, |
---|
64 | SYS_IS_FG = 49, |
---|
65 | |
---|
66 | SYSCALLS_NR = 50, |
---|
67 | }; |
---|
68 | |
---|
69 | |
---|
70 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.