source: trunk/kernel/syscalls/shared_include/syscalls_numbers.h

Last change on this file was 683, checked in by alain, 6 years ago

All modifications required to support the <tcp_chat> application
including error recovery in case of packet loss.A

File size: 2.9 KB
Line 
1/*
2 * syscalls_numbers.c - Contains enum of the syscalls.
3 *
4 * Author Alain Greiner (2016,2017,2018,2019,2020)
5 *
6 * Copyright (c) UPMC Sorbonne Universites
7 *
8 * This file is part of ALMOS-MKH.
9 *
10 * ALMOS-MKH is free software; you can redistribute it and/or modify it
11 * under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; version 2.0 of the License.
13 *
14 * ALMOS-MKH is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with ALMOS-MKH; if not, write to the Free Software Foundation,
21 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 */
23
24#ifndef _SYSCALLS_NUMBERS_H_
25#define _SYSCALLS_NUMBERS_H_
26
27/******************************************************************************************
28 * This enum defines the mnemonics for the syscall indexes.
29 * It must be kept consistent with the array defined in the <do_syscalls.c> file
30 * and with the SYS_OBJs defined in the kernel <Makefile>
31 *****************************************************************************************/
32typedef enum
33{
34 SYS_THREAD_EXIT = 0,
35 SYS_THREAD_YIELD = 1,
36 SYS_THREAD_CREATE = 2,
37 SYS_THREAD_JOIN = 3,
38 SYS_THREAD_DETACH = 4,
39 SYS_THREAD_CANCEL = 5,
40 SYS_SEM = 6,
41 SYS_CONDVAR = 7,
42 SYS_BARRIER = 8,
43 SYS_MUTEX = 9,
44
45 SYS_RENAME = 10,
46 SYS_MUNMAP = 11,
47 SYS_OPEN = 12,
48 SYS_MMAP = 13,
49 SYS_READ = 14,
50 SYS_WRITE = 15,
51 SYS_LSEEK = 16,
52 SYS_CLOSE = 17,
53 SYS_UNLINK = 18,
54 SYS_PIPE = 19,
55
56 SYS_CHDIR = 20,
57 SYS_MKDIR = 21,
58 SYS_MKFIFO = 22,
59 SYS_OPENDIR = 23,
60 SYS_READDIR = 24,
61 SYS_CLOSEDIR = 25,
62 SYS_GETCWD = 26,
63 SYS_ISATTY = 27,
64 SYS_ALARM = 28,
65 SYS_RMDIR = 29,
66
67 SYS_UTLS = 30,
68 SYS_CHMOD = 31,
69 SYS_SIGNAL = 32,
70 SYS_TIMEOFDAY = 33,
71 SYS_KILL = 34,
72 SYS_GETPID = 35,
73 SYS_FORK = 36,
74 SYS_EXEC = 37,
75 SYS_STAT = 38,
76 SYS_WAIT = 39,
77
78 SYS_GET = 40,
79 SYS_DISPLAY = 41,
80 SYS_PLACE_FORK = 42,
81 SYS_THREAD_SLEEP = 43,
82 SYS_THREAD_WAKEUP = 44,
83 SYS_TRACE = 45,
84 SYS_FG = 46,
85 SYS_IS_FG = 47,
86 SYS_FBF = 48,
87 SYS_UNDEFINED_49 = 49,
88
89 SYS_EXIT = 50,
90 SYS_SYNC = 51,
91 SYS_FSYNC = 52,
92 SYS_SOCKET = 53,
93
94 SYSCALLS_NR = 54,
95
96} syscalls_t;
97
98#endif // _SYSCALLS_NUMBERS_H_
Note: See TracBrowser for help on using the repository browser.