MOS Source Code
Loading...
Searching...
No Matches
table.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-3.0-or-later
2// Syscall name table (const char *[])
3// This file was generated by scripts/gen_syscall.py
4
5#pragma once
6
8#include <mos/io/io_types.h>
9#include <mos/mos_global.h>
11#include <mos/types.h>
12#include <sys/poll.h>
13#include <sys/select.h>
14#include <sys/uio.h>
15
16// syscall name table
17#include <mos/syscall/decl.h>
18#include <mos/syscall/number.h>
19
20static const char *syscall_names[] = {
21 [SYSCALL_vfs_openat] = "vfs_openat",
22 [SYSCALL_vfs_fstatat] = "vfs_fstatat",
23 [SYSCALL_io_read] = "io_read",
24 [SYSCALL_io_write] = "io_write",
25 [SYSCALL_io_close] = "io_close",
26 [SYSCALL_exit] = "exit",
27 [SYSCALL_yield_cpu] = "yield_cpu",
28 [SYSCALL_fork] = "fork",
29 [SYSCALL_get_pid] = "get_pid",
30 [SYSCALL_get_parent_pid] = "get_parent_pid",
31 [SYSCALL_spawn] = "spawn",
32 [SYSCALL_create_thread] = "create_thread",
33 [SYSCALL_get_tid] = "get_tid",
34 [SYSCALL_thread_exit] = "thread_exit",
35 [SYSCALL_wait_for_thread] = "wait_for_thread",
36 [SYSCALL_futex_wait] = "futex_wait",
37 [SYSCALL_futex_wake] = "futex_wake",
38 [SYSCALL_ipc_create] = "ipc_create",
39 [SYSCALL_ipc_accept] = "ipc_accept",
40 [SYSCALL_ipc_connect] = "ipc_connect",
41 [SYSCALL_arch_syscall] = "arch_syscall",
42 [SYSCALL_vfs_mount] = "vfs_mount",
43 [SYSCALL_vfs_readlinkat] = "vfs_readlinkat",
44 [SYSCALL_vfs_unlinkat] = "vfs_unlinkat",
45 [SYSCALL_vfs_symlink] = "vfs_symlink",
46 [SYSCALL_vfs_mkdir] = "vfs_mkdir",
47 [SYSCALL_vfs_list_dir] = "vfs_list_dir",
48 [SYSCALL_fd_manipulate] = "fd_manipulate",
49 [SYSCALL_mmap_anonymous] = "mmap_anonymous",
50 [SYSCALL_mmap_file] = "mmap_file",
51 [SYSCALL_wait_for_process] = "wait_for_process",
52 [SYSCALL_munmap] = "munmap",
53 [SYSCALL_vfs_chdirat] = "vfs_chdirat",
54 [SYSCALL_vfs_getcwd] = "vfs_getcwd",
55 [SYSCALL_io_seek] = "io_seek",
56 [SYSCALL_io_tell] = "io_tell",
57 [SYSCALL_signal_register] = "signal_register",
58 [SYSCALL_signal_process] = "signal_process",
59 [SYSCALL_signal_thread] = "signal_thread",
60 [SYSCALL_poweroff] = "poweroff",
61 [SYSCALL_signal_return] = "signal_return",
62 [SYSCALL_vm_protect] = "vm_protect",
63 [SYSCALL_io_poll] = "io_poll",
64 [SYSCALL_io_pselect] = "io_pselect",
65 [SYSCALL_execveat] = "execveat",
66 [SYSCALL_clock_msleep] = "clock_msleep",
67 [SYSCALL_io_dup] = "io_dup",
68 [SYSCALL_io_dup2] = "io_dup2",
69 [SYSCALL_dmabuf_alloc] = "dmabuf_alloc",
70 [SYSCALL_dmabuf_free] = "dmabuf_free",
71 [SYSCALL_dmabuf_share] = "dmabuf_share",
72 [SYSCALL_dmabuf_unshare] = "dmabuf_unshare",
73 [SYSCALL_pipe] = "pipe",
74 [SYSCALL_io_readv] = "io_readv",
75 [SYSCALL_vfs_unmount] = "vfs_unmount",
76 [SYSCALL_clock_gettimeofday] = "clock_gettimeofday",
77 [SYSCALL_thread_setname] = "thread_setname",
78 [SYSCALL_thread_getname] = "thread_getname",
79 [SYSCALL_vfs_fchmodat] = "vfs_fchmodat",
80 [SYSCALL_io_pread] = "io_pread",
81 [SYSCALL_memfd_create] = "memfd_create",
82 [SYSCALL_signal_mask_op] = "signal_mask_op",
83 [SYSCALL_vfs_fsync] = "vfs_fsync",
84};
#define SYSCALL_dmabuf_alloc
Definition number.h:154
#define SYSCALL_poweroff
Definition number.h:127
#define SYSCALL_vfs_mount
Definition number.h:73
#define SYSCALL_mmap_file
Definition number.h:97
#define SYSCALL_dmabuf_share
Definition number.h:160
#define SYSCALL_io_readv
Definition number.h:169
#define SYSCALL_get_pid
Definition number.h:34
#define SYSCALL_vfs_fsync
Definition number.h:196
#define SYSCALL_exit
Definition number.h:25
#define SYSCALL_fd_manipulate
Definition number.h:91
#define SYSCALL_yield_cpu
Definition number.h:28
#define SYSCALL_vm_protect
Definition number.h:133
#define SYSCALL_signal_register
Definition number.h:118
#define SYSCALL_vfs_unlinkat
Definition number.h:79
#define SYSCALL_io_dup
Definition number.h:148
#define SYSCALL_ipc_accept
Definition number.h:64
#define SYSCALL_execveat
Definition number.h:142
#define SYSCALL_io_poll
Definition number.h:136
#define SYSCALL_io_close
Definition number.h:22
#define SYSCALL_get_tid
Definition number.h:46
#define SYSCALL_wait_for_thread
Definition number.h:52
#define SYSCALL_wait_for_process
Definition number.h:100
#define SYSCALL_io_tell
Definition number.h:115
#define SYSCALL_fork
Definition number.h:31
#define SYSCALL_vfs_readlinkat
Definition number.h:76
#define SYSCALL_thread_getname
Definition number.h:181
#define SYSCALL_memfd_create
Definition number.h:190
#define SYSCALL_futex_wake
Definition number.h:58
#define SYSCALL_arch_syscall
Definition number.h:70
#define SYSCALL_signal_thread
Definition number.h:124
#define SYSCALL_clock_msleep
Definition number.h:145
#define SYSCALL_dmabuf_unshare
Definition number.h:163
#define SYSCALL_vfs_unmount
Definition number.h:172
#define SYSCALL_io_dup2
Definition number.h:151
#define SYSCALL_io_write
Definition number.h:19
#define SYSCALL_ipc_connect
Definition number.h:67
#define SYSCALL_vfs_fstatat
Definition number.h:13
#define SYSCALL_thread_exit
Definition number.h:49
#define SYSCALL_thread_setname
Definition number.h:178
#define SYSCALL_mmap_anonymous
Definition number.h:94
#define SYSCALL_signal_mask_op
Definition number.h:193
#define SYSCALL_io_seek
Definition number.h:112
#define SYSCALL_signal_process
Definition number.h:121
#define SYSCALL_vfs_list_dir
Definition number.h:88
#define SYSCALL_futex_wait
Definition number.h:55
#define SYSCALL_clock_gettimeofday
Definition number.h:175
#define SYSCALL_vfs_fchmodat
Definition number.h:184
#define SYSCALL_io_pread
Definition number.h:187
#define SYSCALL_io_pselect
Definition number.h:139
#define SYSCALL_spawn
Definition number.h:40
#define SYSCALL_dmabuf_free
Definition number.h:157
#define SYSCALL_create_thread
Definition number.h:43
#define SYSCALL_vfs_openat
Definition number.h:10
#define SYSCALL_vfs_mkdir
Definition number.h:85
#define SYSCALL_ipc_create
Definition number.h:61
#define SYSCALL_vfs_getcwd
Definition number.h:109
#define SYSCALL_vfs_chdirat
Definition number.h:106
#define SYSCALL_munmap
Definition number.h:103
#define SYSCALL_get_parent_pid
Definition number.h:37
#define SYSCALL_signal_return
Definition number.h:130
#define SYSCALL_io_read
Definition number.h:16
#define SYSCALL_vfs_symlink
Definition number.h:82
#define SYSCALL_pipe
Definition number.h:166
static const char * syscall_names[]
Definition table.h:20