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

Last change on this file since 657 was 657, checked in by alain, 4 years ago

Introduce remote_buf.c/.h & socket.c/.h files.
Update dev_nic.c/.h files.

File size: 3.0 KB
RevLine 
[526]1/*
2 * syscalls_numbers.c - Contains enum of the syscalls.
3 *
[626]4 * Author    Alain Greiner (2016,2017,2018,2019)
[526]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 */
[444]23
[526]24#ifndef _SYSCALLS_NUMBERS_H_
25#define _SYSCALLS_NUMBERS_H_
26
[444]27/******************************************************************************************
28 * This enum defines the mnemonics for the syscall indexes.
29 * It must be kept consistent with the array defined in do_syscalls.c
30 *****************************************************************************************/
[637]31typedef enum 
32{
[641]33    SYS_THREAD_EXIT     = 0,
34    SYS_THREAD_YIELD    = 1,
35    SYS_THREAD_CREATE   = 2,
36    SYS_THREAD_JOIN     = 3,
37    SYS_THREAD_DETACH   = 4,
38    SYS_THREAD_CANCEL   = 5,
39    SYS_SEM             = 6,
40    SYS_CONDVAR         = 7,
41    SYS_BARRIER         = 8,
42    SYS_MUTEX           = 9,
[444]43
[641]44    SYS_RENAME          = 10,
45    SYS_MUNMAP          = 11,
46    SYS_OPEN            = 12,
47    SYS_MMAP            = 13,
48    SYS_READ            = 14,
49    SYS_WRITE           = 15,
50    SYS_LSEEK           = 16,
51    SYS_CLOSE           = 17,
52    SYS_UNLINK          = 18,
53    SYS_PIPE            = 19,
[444]54
[641]55    SYS_CHDIR           = 20,
56    SYS_MKDIR           = 21,
57    SYS_MKFIFO          = 22,
58    SYS_OPENDIR         = 23,
59    SYS_READDIR         = 24,
60    SYS_CLOSEDIR        = 25,
61    SYS_GETCWD          = 26,
62    SYS_ISATTY          = 27,
63    SYS_ALARM           = 28,
64    SYS_RMDIR           = 29,
[444]65
[641]66    SYS_UTLS            = 30,
67    SYS_CHMOD           = 31,
68    SYS_SIGNAL          = 32,
69    SYS_TIMEOFDAY       = 33,
70    SYS_KILL            = 34,
71    SYS_GETPID          = 35,
72    SYS_FORK            = 36,
73    SYS_EXEC            = 37,
74    SYS_STAT            = 38,
75    SYS_WAIT            = 39,
[444]76
[641]77    SYS_GET_CONFIG      = 40,
78    SYS_GET_CORE_ID     = 41,
79    SYS_GET_CYCLE       = 42,
80    SYS_DISPLAY         = 43,
81    SYS_PLACE_FORK      = 44, 
82    SYS_THREAD_SLEEP    = 45,
83    SYS_THREAD_WAKEUP   = 46,
84    SYS_TRACE           = 47,
85    SYS_FG              = 48,
86    SYS_IS_FG           = 49,
[566]87
[641]88    SYS_EXIT            = 50,
89    SYS_SYNC            = 51,
90    SYS_FSYNC           = 52,
91    SYS_GET_BEST_CORE   = 53,
92    SYS_GET_NB_CORES    = 54,
93    SYS_GET_THREAD_INFO = 55,
[642]94    SYS_FBF             = 56,
[657]95    SYS_SOCKET          = 57,
[610]96
[657]97    SYSCALLS_NR         = 58,
[610]98
[526]99} syscalls_t;
[444]100
[526]101#endif // _SYSCALLS_NUMBERS_H_
Note: See TracBrowser for help on using the repository browser.