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
7#include <mos/filesystem/fs_types.h>
8#include <mos/io/io_types.h>
9#include <mos/mos_global.h>
10#include <mos/tasks/signal_types.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};
85