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

Last change on this file since 640 was 637, checked in by alain, 5 years ago

Introduce the non-standard pthread_parallel_create() system call
and re-write the <fft> and <sort> applications to improve the
intrinsic paralelism in applications.

File size: 2.8 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{
[526]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
[610]44    SYS_RENAME         = 10,
[444]45    SYS_MUNMAP         = 11,
[526]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
[526]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
[526]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
77    SYS_GET_CONFIG     = 40,
[637]78    SYS_GET_CORE_ID    = 41,
[444]79    SYS_GET_CYCLE      = 42,
80    SYS_DISPLAY        = 43,
[584]81    SYS_PLACE_FORK     = 44, 
[526]82    SYS_THREAD_SLEEP   = 45,
83    SYS_THREAD_WAKEUP  = 46,
[444]84    SYS_TRACE          = 47,
85    SYS_FG             = 48,
[457]86    SYS_IS_FG          = 49,
[566]87
[610]88    SYS_EXIT           = 50,
[626]89    SYS_SYNC           = 51,
90    SYS_FSYNC          = 52,
[637]91    SYS_GET_BEST_CORE  = 53,
92    SYS_GET_NB_CORES   = 54,
[610]93
[637]94    SYSCALLS_NR        = 55,
[610]95
[526]96} syscalls_t;
[444]97
[526]98#endif // _SYSCALLS_NUMBERS_H_
Note: See TracBrowser for help on using the repository browser.