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

Last change on this file since 683 was 683, checked in by alain, 3 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
RevLine 
[526]1/*
2 * syscalls_numbers.c - Contains enum of the syscalls.
3 *
[683]4 * Author    Alain Greiner (2016,2017,2018,2019,2020)
[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.
[683]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>
[444]31 *****************************************************************************************/
[637]32typedef enum 
33{
[641]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,
[444]44
[641]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,
[444]55
[641]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,
[444]66
[641]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,
[444]77
[683]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,
[566]88
[641]89    SYS_EXIT            = 50,
90    SYS_SYNC            = 51,
91    SYS_FSYNC           = 52,
[683]92    SYS_SOCKET          = 53,
[610]93
[683]94    SYSCALLS_NR         = 54,
[610]95
[526]96} syscalls_t;
[444]97
[526]98#endif // _SYSCALLS_NUMBERS_H_
Note: See TracBrowser for help on using the repository browser.