• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
3  * Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without modification,
6  * are permitted provided that the following conditions are met:
7  *
8  * 1. Redistributions of source code must retain the above copyright notice, this list of
9  *    conditions and the following disclaimer.
10  *
11  * 2. Redistributions in binary form must reproduce the above copyright notice, this list
12  *    of conditions and the following disclaimer in the documentation and/or other materials
13  *    provided with the distribution.
14  *
15  * 3. Neither the name of the copyright holder nor the names of its contributors may be used
16  *    to endorse or promote products derived from this software without specific prior written
17  *    permission.
18  *
19  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
21  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
23  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
24  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
26  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
27  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
28  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
29  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30  */
31 
32 /* SYSCALL_HAND_DEF must be defined before including this file. */
33 /* SYSCALL_HAND_DEF(id, fun, rtype, narg); note if we have 64bit arg, narg should be ARG_NUM_7 */
34 #ifdef LOSCFG_FS_VFS
35 SYSCALL_HAND_DEF(__NR_read, SysRead, ssize_t, ARG_NUM_3)
36 SYSCALL_HAND_DEF(__NR_write, SysWrite, ssize_t, ARG_NUM_3)
37 SYSCALL_HAND_DEF(__NR_open, SysOpen, int, ARG_NUM_7)
38 SYSCALL_HAND_DEF(__NR_close, SysClose, int, ARG_NUM_1)
39 SYSCALL_HAND_DEF(__NR_creat, SysCreat, int, ARG_NUM_2)
40 SYSCALL_HAND_DEF(__NR_link, SysLink, int, ARG_NUM_2)
41 SYSCALL_HAND_DEF(__NR_readlink, SysReadlink, ssize_t, ARG_NUM_3)
42 SYSCALL_HAND_DEF(__NR_symlink, SysSymlink, int, ARG_NUM_2)
43 SYSCALL_HAND_DEF(__NR_unlink, SysUnlink, int, ARG_NUM_1)
44 
45 #ifdef LOSCFG_KERNEL_DYNLOAD
46 SYSCALL_HAND_DEF(__NR_execve, SysExecve, int, ARG_NUM_3)
47 #endif
48 
49 SYSCALL_HAND_DEF(__NR_sysinfo, SysInfo, int, ARG_NUM_1)
50 SYSCALL_HAND_DEF(__NR_fchdir, SysFchdir, int, ARG_NUM_1)
51 SYSCALL_HAND_DEF(__NR_chdir, SysChdir, int, ARG_NUM_1)
52 SYSCALL_HAND_DEF(__NR_utimensat, SysUtimensat, int, ARG_NUM_4)
53 SYSCALL_HAND_DEF(__NR_fchmodat, SysFchmodat, int, ARG_NUM_4)
54 SYSCALL_HAND_DEF(__NR_fchmod, SysFchmod, int, ARG_NUM_2)
55 SYSCALL_HAND_DEF(__NR_utimensat, SysUtimensat, int, ARG_NUM_4)
56 SYSCALL_HAND_DEF(__NR_chmod, SysChmod, int, ARG_NUM_2)
57 SYSCALL_HAND_DEF(__NR_lseek, SysLseek, off_t, ARG_NUM_7) /* current only support 32bit max 4G file */
58 SYSCALL_HAND_DEF(__NR_mount, SysMount, int, ARG_NUM_5)
59 SYSCALL_HAND_DEF(__NR_umount, SysUmount, int, ARG_NUM_1)
60 SYSCALL_HAND_DEF(__NR_access, SysAccess, int, ARG_NUM_2)
61 SYSCALL_HAND_DEF(__NR_faccessat, SysFaccessat, int, ARG_NUM_4)
62 SYSCALL_HAND_DEF(__NR_sync, SysSync, void, ARG_NUM_0)
63 SYSCALL_HAND_DEF(__NR_rename, SysRename, int, ARG_NUM_2)
64 SYSCALL_HAND_DEF(__NR_mkdir, SysMkdir, int, ARG_NUM_2)
65 SYSCALL_HAND_DEF(__NR_rmdir, SysRmdir, int, ARG_NUM_1)
66 SYSCALL_HAND_DEF(__NR_dup, SysDup, int, ARG_NUM_1)
67 #ifdef LOSCFG_KERNEL_PIPE
68 SYSCALL_HAND_DEF(__NR_pipe, SysPipe, int, ARG_NUM_1)
69 #endif
70 SYSCALL_HAND_DEF(__NR_umount2, SysUmount2, int, ARG_NUM_2)
71 SYSCALL_HAND_DEF(__NR_ioctl, SysIoctl, int, ARG_NUM_3)
72 SYSCALL_HAND_DEF(__NR_fcntl, SysFcntl, int, ARG_NUM_3)
73 SYSCALL_HAND_DEF(__NR_dup2, SysDup2, int, ARG_NUM_2)
74 SYSCALL_HAND_DEF(__NR_truncate, SysTruncate, int, ARG_NUM_7)
75 SYSCALL_HAND_DEF(__NR_ftruncate, SysFtruncate, int, ARG_NUM_7)
76 SYSCALL_HAND_DEF(__NR_statfs, SysStatfs, int, ARG_NUM_2)
77 SYSCALL_HAND_DEF(__NR_fstatfs, SysFstatfs, int, ARG_NUM_2)
78 SYSCALL_HAND_DEF(__NR_fstatfs64, SysFstatfs64, int, ARG_NUM_3)
79 SYSCALL_HAND_DEF(__NR_stat, SysStat, int, ARG_NUM_2)
80 SYSCALL_HAND_DEF(__NR_lstat, SysLstat, int, ARG_NUM_2)
81 SYSCALL_HAND_DEF(__NR_fstat, SysFstat, int, ARG_NUM_2)
82 SYSCALL_HAND_DEF(__NR_fstatat64, SysFstatat64, int, ARG_NUM_4)
83 SYSCALL_HAND_DEF(__NR_fsync, SysFsync, int, ARG_NUM_1)
84 SYSCALL_HAND_DEF(__NR__llseek, SysLseek64, off64_t, ARG_NUM_5) /* current only support 32bit max 4G file */
85 SYSCALL_HAND_DEF(__NR__newselect, SysSelect, int, ARG_NUM_5)
86 SYSCALL_HAND_DEF(__NR_pselect6, SysPselect6, int, ARG_NUM_6)
87 SYSCALL_HAND_DEF(__NR_readv, SysReadv, ssize_t, ARG_NUM_3)
88 SYSCALL_HAND_DEF(__NR_writev, SysWritev, ssize_t, ARG_NUM_3)
89 SYSCALL_HAND_DEF(__NR_poll, SysPoll, int, ARG_NUM_3)
90 SYSCALL_HAND_DEF(__NR_ppoll, SysPpoll, int, ARG_NUM_5)
91 SYSCALL_HAND_DEF(__NR_prctl, SysPrctl, int, ARG_NUM_7)
92 SYSCALL_HAND_DEF(__NR_pread64, SysPread64, ssize_t, ARG_NUM_7)
93 SYSCALL_HAND_DEF(__NR_pwrite64, SysPwrite64, ssize_t, ARG_NUM_7)
94 SYSCALL_HAND_DEF(__NR_epoll_create, SysEpollCreate, int, ARG_NUM_1)
95 SYSCALL_HAND_DEF(__NR_epoll_create1, SysEpollCreate1, int, ARG_NUM_1)
96 SYSCALL_HAND_DEF(__NR_epoll_ctl, SysEpollCtl, int, ARG_NUM_4)
97 SYSCALL_HAND_DEF(__NR_epoll_wait, SysEpollWait, int, ARG_NUM_4)
98 SYSCALL_HAND_DEF(__NR_epoll_pwait, SysEpollPwait, int, ARG_NUM_5)
99 SYSCALL_HAND_DEF(__NR_getcwd, SysGetcwd, char *, ARG_NUM_2)
100 SYSCALL_HAND_DEF(__NR_sendfile, SysSendFile, ssize_t, ARG_NUM_4)
101 SYSCALL_HAND_DEF(__NR_truncate64, SysTruncate64, int, ARG_NUM_7)
102 SYSCALL_HAND_DEF(__NR_ftruncate64, SysFtruncate64, int, ARG_NUM_7)
103 SYSCALL_HAND_DEF(__NR_stat64, SysStat, int, ARG_NUM_2)
104 SYSCALL_HAND_DEF(__NR_lstat64, SysLstat, int, ARG_NUM_2)
105 SYSCALL_HAND_DEF(__NR_fstat64, SysFstat64, int, ARG_NUM_2)
106 SYSCALL_HAND_DEF(__NR_fcntl64, SysFcntl64, int, ARG_NUM_3)
107 SYSCALL_HAND_DEF(__NR_sendfile64, SysSendFile, ssize_t, ARG_NUM_4)
108 SYSCALL_HAND_DEF(__NR_preadv, SysPreadv, ssize_t, ARG_NUM_7)
109 SYSCALL_HAND_DEF(__NR_pwritev, SysPwritev, ssize_t, ARG_NUM_7)
110 SYSCALL_HAND_DEF(__NR_fallocate, SysFallocate64, int, ARG_NUM_7)
111 SYSCALL_HAND_DEF(__NR_getdents64, SysGetdents64, int, ARG_NUM_3)
112 
113 #ifdef LOSCFG_FS_FAT
114 SYSCALL_HAND_DEF(__NR_format, SysFormat, int, ARG_NUM_3)
115 #endif
116 
117 SYSCALL_HAND_DEF(__NR_linkat, SysLinkat, int, ARG_NUM_5)
118 SYSCALL_HAND_DEF(__NR_symlinkat, SysSymlinkat, int, ARG_NUM_3)
119 SYSCALL_HAND_DEF(__NR_readlinkat, SysReadlinkat, ssize_t, ARG_NUM_4)
120 SYSCALL_HAND_DEF(__NR_unlinkat, SysUnlinkat, int, ARG_NUM_3)
121 SYSCALL_HAND_DEF(__NR_renameat, SysRenameat, int, ARG_NUM_4)
122 SYSCALL_HAND_DEF(__NR_openat, SysOpenat, int, ARG_NUM_7)
123 SYSCALL_HAND_DEF(__NR_mkdirat, SysMkdirat, int, ARG_NUM_3)
124 SYSCALL_HAND_DEF(__NR_statfs64, SysStatfs64, int, ARG_NUM_3)
125 #ifdef LOSCFG_DEBUG_VERSION
126 SYSCALL_HAND_DEF(__NR_dumpmemory, LOS_DumpMemRegion, void, ARG_NUM_1)
127 #endif
128 #ifdef LOSCFG_KERNEL_PIPE
129 SYSCALL_HAND_DEF(__NR_mkfifo, SysMkFifo, int, ARG_NUM_2)
130 #endif
131 SYSCALL_HAND_DEF(__NR_mqclose, SysMqClose, int, ARG_NUM_1)
132 SYSCALL_HAND_DEF(__NR_realpath, SysRealpath, char *, ARG_NUM_2)
133 
134 #ifdef LOSCFG_SHELL
135 SYSCALL_HAND_DEF(__NR_shellexec, SysShellExec, UINT32, ARG_NUM_2)
136 #endif
137 #endif
138 
139 SYSCALL_HAND_DEF(__NR_exit, SysThreadExit, void, ARG_NUM_1)
140 SYSCALL_HAND_DEF(__NR_fork, SysFork, int, ARG_NUM_0)
141 SYSCALL_HAND_DEF(__NR_vfork, SysVfork, int, ARG_NUM_0)
142 SYSCALL_HAND_DEF(__NR_getpid, SysGetPID, unsigned int, ARG_NUM_0)
143 SYSCALL_HAND_DEF(__NR_pause, SysPause, int, ARG_NUM_0)
144 
145 SYSCALL_HAND_DEF(__NR_kill, SysKill, int, ARG_NUM_2)
146 
147 SYSCALL_HAND_DEF(__NR_reboot, SysReboot, int, ARG_NUM_3)
148 SYSCALL_HAND_DEF(__NR_times, SysTimes, clock_t, ARG_NUM_1)
149 SYSCALL_HAND_DEF(__NR_brk, SysBrk, void *, ARG_NUM_1)
150 SYSCALL_HAND_DEF(__NR_setgid, SysSetGroupID, int, ARG_NUM_1)
151 SYSCALL_HAND_DEF(__NR_getgid, SysGetGroupID, int, ARG_NUM_0)
152 SYSCALL_HAND_DEF(__NR_setpgid, SysSetProcessGroupID, int, ARG_NUM_2)
153 SYSCALL_HAND_DEF(__NR_getppid, SysGetPPID, unsigned int, ARG_NUM_0)
154 SYSCALL_HAND_DEF(__NR_getpgrp, SysGetProcessGroupID, int, ARG_NUM_1)
155 SYSCALL_HAND_DEF(__NR_munmap, SysMunmap, int, ARG_NUM_2)
156 SYSCALL_HAND_DEF(__NR_getpriority, SysGetProcessPriority, int, ARG_NUM_2)
157 SYSCALL_HAND_DEF(__NR_setpriority, SysSetProcessPriority, int, ARG_NUM_3)
158 SYSCALL_HAND_DEF(__NR_setitimer, SysSetiTimer, int, ARG_NUM_3)
159 SYSCALL_HAND_DEF(__NR_getitimer, SysGetiTimer, int, ARG_NUM_2)
160 SYSCALL_HAND_DEF(__NR_wait4, SysWait, int, ARG_NUM_4)
161 SYSCALL_HAND_DEF(__NR_waitid, SysWaitid, int, ARG_NUM_5)
162 SYSCALL_HAND_DEF(__NR_uname, SysUname, int, ARG_NUM_1)
163 SYSCALL_HAND_DEF(__NR_mprotect, SysMprotect, int, ARG_NUM_3)
164 SYSCALL_HAND_DEF(__NR_getpgid, SysGetProcessGroupID, int, ARG_NUM_1)
165 SYSCALL_HAND_DEF(__NR_sched_setparam, SysSchedSetParam, int, ARG_NUM_3)
166 SYSCALL_HAND_DEF(__NR_sched_getparam, SysSchedGetParam, int, ARG_NUM_2)
167 SYSCALL_HAND_DEF(__NR_sched_setscheduler, SysSchedSetScheduler, int, ARG_NUM_4)
168 SYSCALL_HAND_DEF(__NR_sched_getscheduler, SysSchedGetScheduler, int, ARG_NUM_2)
169 SYSCALL_HAND_DEF(__NR_sched_yield, SysSchedYield, void, ARG_NUM_1)
170 SYSCALL_HAND_DEF(__NR_sched_get_priority_max, SysSchedGetPriorityMax, int, ARG_NUM_1)
171 SYSCALL_HAND_DEF(__NR_sched_get_priority_min, SysSchedGetPriorityMin, int, ARG_NUM_1)
172 SYSCALL_HAND_DEF(__NR_sched_setaffinity, SysSchedSetAffinity, int, ARG_NUM_3)
173 SYSCALL_HAND_DEF(__NR_sched_getaffinity, SysSchedGetAffinity, int, ARG_NUM_3)
174 SYSCALL_HAND_DEF(__NR_sched_rr_get_interval, SysSchedRRGetInterval, int, ARG_NUM_2)
175 SYSCALL_HAND_DEF(__NR_nanosleep, SysNanoSleep, int, ARG_NUM_2)
176 SYSCALL_HAND_DEF(__NR_mremap, SysMremap, void *, ARG_NUM_5)
177 SYSCALL_HAND_DEF(__NR_umask, SysUmask, mode_t, ARG_NUM_1)
178 
179 SYSCALL_HAND_DEF(__NR_rt_sigaction, SysSigAction, int, ARG_NUM_4)
180 SYSCALL_HAND_DEF(__NR_rt_sigprocmask, SysSigprocMask, int, ARG_NUM_4)
181 SYSCALL_HAND_DEF(__NR_rt_sigpending, SysSigPending, int, ARG_NUM_1)
182 SYSCALL_HAND_DEF(__NR_rt_sigtimedwait, SysSigTimedWait, int, ARG_NUM_4)
183 SYSCALL_HAND_DEF(__NR_rt_sigsuspend, SysSigSuspend, int, ARG_NUM_1)
184 
185 SYSCALL_HAND_DEF(__NR_fchownat, SysFchownat, int, ARG_NUM_5)
186 SYSCALL_HAND_DEF(__NR_fchown32, SysFchown, int, ARG_NUM_3)
187 SYSCALL_HAND_DEF(__NR_chown, SysChown, int, ARG_NUM_3)
188 SYSCALL_HAND_DEF(__NR_chown32, SysChown, int, ARG_NUM_3)
189 #ifdef LOSCFG_SECURITY_CAPABILITY
190 SYSCALL_HAND_DEF(__NR_ohoscapget, SysCapGet, UINT32, ARG_NUM_2)
191 SYSCALL_HAND_DEF(__NR_ohoscapset, SysCapSet, UINT32, ARG_NUM_1)
192 #endif
193 
194 SYSCALL_HAND_DEF(__NR_mmap2, SysMmap, void*, ARG_NUM_6)
195 SYSCALL_HAND_DEF(__NR_getuid32, SysGetUserID, int, ARG_NUM_0)
196 SYSCALL_HAND_DEF(__NR_getgid32, SysGetGroupID, unsigned int, ARG_NUM_0)
197 SYSCALL_HAND_DEF(__NR_geteuid32, SysGetEffUserID, int, ARG_NUM_0)
198 SYSCALL_HAND_DEF(__NR_getegid32, SysGetEffGID, unsigned int, ARG_NUM_0)
199 SYSCALL_HAND_DEF(__NR_getresuid32, SysGetRealEffSaveUserID, int, ARG_NUM_3)
200 SYSCALL_HAND_DEF(__NR_getresgid32, SysGetRealEffSaveGroupID, int, ARG_NUM_3)
201 SYSCALL_HAND_DEF(__NR_setresuid32, SysSetRealEffSaveUserID, int, ARG_NUM_3)
202 SYSCALL_HAND_DEF(__NR_setresgid32, SysSetRealEffSaveGroupID, int, ARG_NUM_3)
203 SYSCALL_HAND_DEF(__NR_setreuid32, SysSetRealEffUserID, int, ARG_NUM_2)
204 SYSCALL_HAND_DEF(__NR_setregid32, SysSetRealEffGroupID, int, ARG_NUM_2)
205 SYSCALL_HAND_DEF(__NR_setgroups32, SysSetGroups, int, ARG_NUM_2)
206 SYSCALL_HAND_DEF(__NR_getgroups32, SysGetGroups, int, ARG_NUM_2)
207 SYSCALL_HAND_DEF(__NR_setuid32, SysSetUserID, int, ARG_NUM_1)
208 SYSCALL_HAND_DEF(__NR_setgid32, SysSetGroupID, int, ARG_NUM_1)
209 
210 SYSCALL_HAND_DEF(__NR_gettid, SysGetTid, unsigned int, ARG_NUM_0)
211 
212 SYSCALL_HAND_DEF(__NR_tkill, SysPthreadKill, int, ARG_NUM_2)
213 
214 SYSCALL_HAND_DEF(__NR_futex, SysFutex, int, ARG_NUM_4)
215 SYSCALL_HAND_DEF(__NR_exit_group, SysUserExitGroup, void, ARG_NUM_1)
216 SYSCALL_HAND_DEF(__NR_set_thread_area, SysSetThreadArea, int, ARG_NUM_1)
217 SYSCALL_HAND_DEF(__NR_get_thread_area, SysGetThreadArea, char *, ARG_NUM_0)
218 SYSCALL_HAND_DEF(__NR_timer_create, SysTimerCreate, int, ARG_NUM_3)
219 SYSCALL_HAND_DEF(__NR_timer_settime32, SysTimerSettime, int, ARG_NUM_4)
220 SYSCALL_HAND_DEF(__NR_timer_gettime32, SysTimerGettime, int, ARG_NUM_2)
221 SYSCALL_HAND_DEF(__NR_timer_getoverrun, SysTimerGetoverrun, int, ARG_NUM_1)
222 SYSCALL_HAND_DEF(__NR_timer_delete, SysTimerDelete, int, ARG_NUM_1)
223 SYSCALL_HAND_DEF(__NR_clock_settime32, SysClockSettime, int, ARG_NUM_2)
224 SYSCALL_HAND_DEF(__NR_clock_gettime32, SysClockGettime, int, ARG_NUM_2)
225 SYSCALL_HAND_DEF(__NR_clock_getres_time32, SysClockGetres, int, ARG_NUM_2)
226 SYSCALL_HAND_DEF(__NR_clock_nanosleep_time32, SysClockNanoSleep, int, ARG_NUM_4)
227 SYSCALL_HAND_DEF(__NR_mq_open, SysMqOpen, mqd_t, ARG_NUM_4)
228 SYSCALL_HAND_DEF(__NR_mq_unlink, SysMqUnlink, int, ARG_NUM_1)
229 SYSCALL_HAND_DEF(__NR_mq_timedsend, SysMqTimedSend, int, ARG_NUM_5)
230 SYSCALL_HAND_DEF(__NR_mq_timedreceive, SysMqTimedReceive, ssize_t, ARG_NUM_5)
231 SYSCALL_HAND_DEF(__NR_mq_notify, SysMqNotify, int, ARG_NUM_2)
232 SYSCALL_HAND_DEF(__NR_mq_getsetattr, SysMqGetSetAttr, int, ARG_NUM_3)
233 
234 #ifdef LOSCFG_NET_LWIP_SACK
235 SYSCALL_HAND_DEF(__NR_socket, SysSocket, int, ARG_NUM_3)
236 SYSCALL_HAND_DEF(__NR_bind, SysBind, int, ARG_NUM_3)
237 SYSCALL_HAND_DEF(__NR_connect, SysConnect, int, ARG_NUM_3)
238 SYSCALL_HAND_DEF(__NR_listen, SysListen, int, ARG_NUM_2)
239 SYSCALL_HAND_DEF(__NR_accept, SysAccept, int, ARG_NUM_3)
240 SYSCALL_HAND_DEF(__NR_getsockname, SysGetSockName, int, ARG_NUM_3)
241 SYSCALL_HAND_DEF(__NR_getpeername, SysGetPeerName, int, ARG_NUM_3)
242 SYSCALL_HAND_DEF(__NR_send, SysSend, ssize_t, ARG_NUM_4)
243 SYSCALL_HAND_DEF(__NR_sendto, SysSendTo, ssize_t, ARG_NUM_6)
244 SYSCALL_HAND_DEF(__NR_recv, SysRecv, ssize_t, ARG_NUM_4)
245 SYSCALL_HAND_DEF(__NR_recvfrom, SysRecvFrom, ssize_t, ARG_NUM_6)
246 SYSCALL_HAND_DEF(__NR_shutdown, SysShutdown, int, ARG_NUM_2)
247 SYSCALL_HAND_DEF(__NR_setsockopt, SysSetSockOpt, int, ARG_NUM_5)
248 SYSCALL_HAND_DEF(__NR_getsockopt, SysGetSockOpt, int, ARG_NUM_5)
249 SYSCALL_HAND_DEF(__NR_sendmsg, SysSendMsg, ssize_t, ARG_NUM_3)
250 SYSCALL_HAND_DEF(__NR_recvmsg, SysRecvMsg, ssize_t, ARG_NUM_3)
251 #endif
252 
253 #ifdef LOSCFG_KERNEL_SHM
254 SYSCALL_HAND_DEF(__NR_shmat, SysShmAt, void *, ARG_NUM_3)
255 SYSCALL_HAND_DEF(__NR_shmdt, SysShmDt, int, ARG_NUM_1)
256 SYSCALL_HAND_DEF(__NR_shmget, SysShmGet, int, ARG_NUM_3)
257 SYSCALL_HAND_DEF(__NR_shmctl, SysShmCtl, int, ARG_NUM_3)
258 #endif
259 
260 SYSCALL_HAND_DEF(__NR_statx, SysStatx, int, ARG_NUM_5)
261 
262 /* LiteOS customized syscalls, not compatible with ARM EABI */
263 SYSCALL_HAND_DEF(__NR_pthread_set_detach, SysUserThreadSetDetach, int, ARG_NUM_1)
264 SYSCALL_HAND_DEF(__NR_pthread_join, SysThreadJoin, int, ARG_NUM_1)
265 SYSCALL_HAND_DEF(__NR_pthread_deatch, SysUserThreadDetach, int, ARG_NUM_1)
266 SYSCALL_HAND_DEF(__NR_create_user_thread, SysCreateUserThread, unsigned int, ARG_NUM_3)
267 SYSCALL_HAND_DEF(__NR_getrusage, SysGetrusage, int, ARG_NUM_2)
268 SYSCALL_HAND_DEF(__NR_sysconf, SysSysconf, long, ARG_NUM_1)
269 SYSCALL_HAND_DEF(__NR_ugetrlimit, SysUgetrlimit, int, ARG_NUM_2)
270 SYSCALL_HAND_DEF(__NR_setrlimit, SysSetrlimit, int, ARG_NUM_2)
271