2013-03-06 20:56:32 +01:00
|
|
|
/****************************************************************************
|
2020-05-07 08:42:52 +02:00
|
|
|
* include/sys/syscall_lookup.h
|
2013-03-06 20:56:32 +01:00
|
|
|
*
|
2020-03-21 18:02:42 +01:00
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed with
|
|
|
|
* this work for additional information regarding copyright ownership. The
|
|
|
|
* ASF licenses this file to you under the Apache License, Version 2.0 (the
|
|
|
|
* "License"); you may not use this file except in compliance with the
|
|
|
|
* License. You may obtain a copy of the License at
|
2013-03-06 20:56:32 +01:00
|
|
|
*
|
2020-03-21 18:02:42 +01:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2013-03-06 20:56:32 +01:00
|
|
|
*
|
2020-03-21 18:02:42 +01:00
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
* License for the specific language governing permissions and limitations
|
|
|
|
* under the License.
|
2013-03-06 20:56:32 +01:00
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
/* SYSCALL_LOOKUP must be defined before including this file.
|
|
|
|
*
|
|
|
|
* These first system calls are supported regardless of the NuttX
|
|
|
|
* configuration
|
|
|
|
*/
|
|
|
|
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP1(_exit, 1)
|
2023-04-10 15:19:12 +02:00
|
|
|
SYSCALL_LOOKUP(_assert, 4)
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(getpid, 0)
|
2020-12-07 12:42:58 +01:00
|
|
|
SYSCALL_LOOKUP(gettid, 0)
|
2022-11-08 15:57:28 +01:00
|
|
|
SYSCALL_LOOKUP(prctl, 2)
|
2020-05-06 06:20:26 +02:00
|
|
|
|
2020-12-14 13:07:42 +01:00
|
|
|
#ifdef CONFIG_SCHED_HAVE_PARENT
|
|
|
|
SYSCALL_LOOKUP(getppid, 0)
|
|
|
|
#endif
|
|
|
|
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(sched_getparam, 2)
|
|
|
|
SYSCALL_LOOKUP(sched_getscheduler, 1)
|
|
|
|
SYSCALL_LOOKUP(sched_lock, 0)
|
|
|
|
SYSCALL_LOOKUP(sched_lockcount, 0)
|
|
|
|
SYSCALL_LOOKUP(sched_rr_get_interval, 2)
|
|
|
|
SYSCALL_LOOKUP(sched_setparam, 2)
|
|
|
|
SYSCALL_LOOKUP(sched_setscheduler, 3)
|
|
|
|
SYSCALL_LOOKUP(sched_unlock, 0)
|
|
|
|
SYSCALL_LOOKUP(sched_yield, 0)
|
2020-05-09 22:08:44 +02:00
|
|
|
SYSCALL_LOOKUP(nxsched_get_stackinfo, 2)
|
2020-02-09 08:38:50 +01:00
|
|
|
|
2021-07-30 06:15:43 +02:00
|
|
|
#ifdef CONFIG_SCHED_BACKTRACE
|
2021-12-24 08:38:14 +01:00
|
|
|
SYSCALL_LOOKUP(sched_backtrace, 4)
|
2021-07-30 06:15:43 +02:00
|
|
|
#endif
|
|
|
|
|
2020-01-31 21:25:15 +01:00
|
|
|
#ifdef CONFIG_SMP
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(sched_getaffinity, 3)
|
|
|
|
SYSCALL_LOOKUP(sched_getcpu, 0)
|
|
|
|
SYSCALL_LOOKUP(sched_setaffinity, 3)
|
2020-01-31 21:25:15 +01:00
|
|
|
#endif
|
|
|
|
|
2022-02-05 13:05:29 +01:00
|
|
|
SYSCALL_LOOKUP(sysinfo, 1)
|
|
|
|
|
2020-07-28 11:52:17 +02:00
|
|
|
SYSCALL_LOOKUP(gethostname, 2)
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(sethostname, 2)
|
2014-09-28 20:19:01 +02:00
|
|
|
|
2019-08-06 22:13:43 +02:00
|
|
|
/* User identity */
|
|
|
|
|
|
|
|
#ifdef CONFIG_SCHED_USER_IDENTITY
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(setuid, 1)
|
|
|
|
SYSCALL_LOOKUP(getuid, 0)
|
|
|
|
SYSCALL_LOOKUP(setgid, 1)
|
|
|
|
SYSCALL_LOOKUP(getgid, 0)
|
2023-04-15 08:47:19 +02:00
|
|
|
SYSCALL_LOOKUP(seteuid, 1)
|
|
|
|
SYSCALL_LOOKUP(geteuid, 0)
|
|
|
|
SYSCALL_LOOKUP(setegid, 1)
|
|
|
|
SYSCALL_LOOKUP(getegid, 0)
|
2019-08-06 22:13:43 +02:00
|
|
|
#endif
|
|
|
|
|
2014-09-28 20:19:01 +02:00
|
|
|
/* Semaphores */
|
|
|
|
|
2023-07-06 16:15:18 +02:00
|
|
|
SYSCALL_LOOKUP(nxsem_wait, 1)
|
|
|
|
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(sem_destroy, 1)
|
|
|
|
SYSCALL_LOOKUP(sem_post, 1)
|
2020-07-27 07:46:03 +02:00
|
|
|
SYSCALL_LOOKUP(sem_clockwait, 3)
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(sem_timedwait, 2)
|
|
|
|
SYSCALL_LOOKUP(sem_trywait, 1)
|
|
|
|
SYSCALL_LOOKUP(sem_wait, 1)
|
2014-09-28 20:19:01 +02:00
|
|
|
|
2016-11-02 16:05:18 +01:00
|
|
|
#ifdef CONFIG_PRIORITY_INHERITANCE
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(sem_setprotocol, 2)
|
2016-11-02 16:05:18 +01:00
|
|
|
#endif
|
|
|
|
|
2014-09-28 20:19:01 +02:00
|
|
|
/* Named semaphores */
|
|
|
|
|
2014-09-29 15:54:45 +02:00
|
|
|
#ifdef CONFIG_FS_NAMED_SEMAPHORES
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(sem_open, 4)
|
|
|
|
SYSCALL_LOOKUP(sem_close, 1)
|
|
|
|
SYSCALL_LOOKUP(sem_unlink, 1)
|
2014-09-28 20:19:01 +02:00
|
|
|
#endif
|
|
|
|
|
2014-09-16 23:37:05 +02:00
|
|
|
#ifndef CONFIG_BUILD_KERNEL
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(task_create, 5)
|
2021-05-12 05:34:50 +02:00
|
|
|
SYSCALL_LOOKUP(task_spawn, 6)
|
2022-05-11 08:03:04 +02:00
|
|
|
SYSCALL_LOOKUP(task_delete, 1)
|
2022-05-12 08:49:44 +02:00
|
|
|
SYSCALL_LOOKUP(task_restart, 1)
|
2014-09-16 23:37:05 +02:00
|
|
|
#else
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(pgalloc, 2)
|
2014-08-27 22:19:41 +02:00
|
|
|
#endif
|
2022-05-11 08:03:04 +02:00
|
|
|
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(task_setcancelstate, 2)
|
2013-03-06 20:56:32 +01:00
|
|
|
|
2020-05-07 08:42:52 +02:00
|
|
|
#ifdef CONFIG_CANCELLATION_POINTS
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(task_setcanceltype, 2)
|
|
|
|
SYSCALL_LOOKUP(task_testcancel, 0)
|
2020-05-07 08:42:52 +02:00
|
|
|
#endif
|
2016-12-10 23:06:14 +01:00
|
|
|
|
2013-03-06 20:56:32 +01:00
|
|
|
/* The following can be individually enabled */
|
|
|
|
|
2023-07-05 15:43:50 +02:00
|
|
|
#ifdef CONFIG_ARCH_HAVE_FORK
|
2023-07-16 05:34:17 +02:00
|
|
|
SYSCALL_LOOKUP(up_fork, 0)
|
2013-03-06 20:56:32 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_SCHED_WAITPID
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(waitpid, 3)
|
2020-05-07 08:42:52 +02:00
|
|
|
#ifdef CONFIG_SCHED_HAVE_PARENT
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(wait, 1)
|
|
|
|
SYSCALL_LOOKUP(waitid, 4)
|
2020-05-07 08:42:52 +02:00
|
|
|
#endif
|
2013-03-06 20:56:32 +01:00
|
|
|
#endif
|
|
|
|
|
2015-12-12 18:11:09 +01:00
|
|
|
/* The following can only be defined if we are configured to load
|
|
|
|
* OS modules from a file system.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef CONFIG_MODULE
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(insmod, 2)
|
|
|
|
SYSCALL_LOOKUP(rmmod, 1)
|
|
|
|
SYSCALL_LOOKUP(modhandle, 1)
|
2015-12-12 18:11:09 +01:00
|
|
|
#endif
|
|
|
|
|
2013-03-06 20:56:32 +01:00
|
|
|
/* The following can only be defined if we are configured to execute
|
|
|
|
* programs from a file system.
|
|
|
|
*/
|
|
|
|
|
2017-10-03 15:09:35 +02:00
|
|
|
#ifndef CONFIG_BINFMT_DISABLE
|
|
|
|
#ifndef CONFIG_BUILD_KERNEL
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(exec, 4)
|
2017-10-03 15:09:35 +02:00
|
|
|
#endif
|
|
|
|
#ifdef CONFIG_LIBC_EXECFUNCS
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(posix_spawn, 6)
|
2022-04-20 14:53:05 +02:00
|
|
|
SYSCALL_LOOKUP(execve, 3)
|
2013-03-06 20:56:32 +01:00
|
|
|
#endif
|
2017-10-03 15:09:35 +02:00
|
|
|
#endif
|
2013-03-06 20:56:32 +01:00
|
|
|
|
|
|
|
/* The following are only defined is signals are supported in the NuttX
|
|
|
|
* configuration.
|
|
|
|
*/
|
|
|
|
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(kill, 2)
|
2023-01-23 23:52:51 +01:00
|
|
|
SYSCALL_LOOKUP(tgkill, 3)
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(sigaction, 3)
|
|
|
|
SYSCALL_LOOKUP(sigpending, 1)
|
|
|
|
SYSCALL_LOOKUP(sigprocmask, 3)
|
|
|
|
SYSCALL_LOOKUP(sigqueue, 3)
|
|
|
|
SYSCALL_LOOKUP(sigsuspend, 1)
|
|
|
|
SYSCALL_LOOKUP(sigtimedwait, 3)
|
|
|
|
SYSCALL_LOOKUP(sigwaitinfo, 2)
|
|
|
|
SYSCALL_LOOKUP(clock_nanosleep, 4)
|
2013-03-06 20:56:32 +01:00
|
|
|
|
|
|
|
/* The following are only defined if the system clock is enabled in the
|
|
|
|
* NuttX configuration.
|
|
|
|
*/
|
|
|
|
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(clock, 0)
|
|
|
|
SYSCALL_LOOKUP(clock_gettime, 2)
|
|
|
|
SYSCALL_LOOKUP(clock_settime, 2)
|
2016-07-11 14:54:02 +02:00
|
|
|
#ifdef CONFIG_CLOCK_TIMEKEEPING
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(adjtime, 2)
|
2016-07-11 00:55:32 +02:00
|
|
|
#endif
|
2013-03-06 20:56:32 +01:00
|
|
|
|
|
|
|
/* The following are defined only if POSIX timers are supported */
|
|
|
|
|
|
|
|
#ifndef CONFIG_DISABLE_POSIX_TIMERS
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(timer_create, 3)
|
|
|
|
SYSCALL_LOOKUP(timer_delete, 1)
|
|
|
|
SYSCALL_LOOKUP(timer_getoverrun, 1)
|
|
|
|
SYSCALL_LOOKUP(timer_gettime, 2)
|
|
|
|
SYSCALL_LOOKUP(timer_settime, 4)
|
|
|
|
SYSCALL_LOOKUP(getitimer, 2)
|
|
|
|
SYSCALL_LOOKUP(setitimer, 3)
|
2013-03-06 20:56:32 +01:00
|
|
|
#endif
|
|
|
|
|
2016-06-19 15:03:44 +02:00
|
|
|
/* System logging */
|
|
|
|
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(nx_vsyslog, 3)
|
2016-06-19 15:03:44 +02:00
|
|
|
|
2013-03-06 20:56:32 +01:00
|
|
|
/* The following are defined if either file or socket descriptor are
|
|
|
|
* enabled.
|
|
|
|
*/
|
|
|
|
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(close, 1)
|
|
|
|
SYSCALL_LOOKUP(ioctl, 3)
|
|
|
|
SYSCALL_LOOKUP(read, 3)
|
|
|
|
SYSCALL_LOOKUP(write, 3)
|
|
|
|
SYSCALL_LOOKUP(pread, 4)
|
|
|
|
SYSCALL_LOOKUP(pwrite, 4)
|
2019-02-11 19:09:26 +01:00
|
|
|
#ifdef CONFIG_FS_AIO
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(aio_read, 1)
|
|
|
|
SYSCALL_LOOKUP(aio_write, 1)
|
|
|
|
SYSCALL_LOOKUP(aio_fsync, 2)
|
|
|
|
SYSCALL_LOOKUP(aio_cancel, 2)
|
|
|
|
#endif
|
|
|
|
SYSCALL_LOOKUP(poll, 3)
|
|
|
|
SYSCALL_LOOKUP(select, 5)
|
|
|
|
SYSCALL_LOOKUP(ppoll, 4)
|
|
|
|
SYSCALL_LOOKUP(pselect, 6)
|
2020-07-28 13:08:48 +02:00
|
|
|
#ifdef CONFIG_EVENT_FD
|
|
|
|
SYSCALL_LOOKUP(eventfd, 2)
|
|
|
|
#endif
|
2021-12-17 01:20:26 +01:00
|
|
|
#ifdef CONFIG_TIMER_FD
|
|
|
|
SYSCALL_LOOKUP(timerfd_create, 2)
|
|
|
|
SYSCALL_LOOKUP(timerfd_settime, 4)
|
|
|
|
SYSCALL_LOOKUP(timerfd_gettime, 2)
|
|
|
|
#endif
|
2023-03-21 07:36:42 +01:00
|
|
|
#ifdef CONFIG_SIGNAL_FD
|
|
|
|
SYSCALL_LOOKUP(signalfd, 3)
|
|
|
|
#endif
|
2013-03-06 20:56:32 +01:00
|
|
|
|
2015-03-31 19:25:52 +02:00
|
|
|
/* Board support */
|
|
|
|
|
2021-08-01 09:00:54 +02:00
|
|
|
#ifdef CONFIG_BOARDCTL
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(boardctl, 2)
|
2015-03-31 19:25:52 +02:00
|
|
|
#endif
|
|
|
|
|
2013-03-06 20:56:32 +01:00
|
|
|
/* The following are defined if file descriptors are enabled */
|
|
|
|
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(dup, 1)
|
|
|
|
SYSCALL_LOOKUP(dup2, 2)
|
|
|
|
SYSCALL_LOOKUP(fcntl, 3)
|
2023-02-10 08:20:43 +01:00
|
|
|
SYSCALL_LOOKUP(ftruncate, 2)
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(lseek, 3)
|
|
|
|
SYSCALL_LOOKUP(mmap, 6)
|
|
|
|
SYSCALL_LOOKUP(open, 3)
|
2023-02-10 08:27:38 +01:00
|
|
|
SYSCALL_LOOKUP(rename, 2)
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(stat, 2)
|
2020-06-22 10:44:32 +02:00
|
|
|
SYSCALL_LOOKUP(lstat, 2)
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(fstat, 2)
|
|
|
|
SYSCALL_LOOKUP(statfs, 2)
|
|
|
|
SYSCALL_LOOKUP(fstatfs, 2)
|
2021-07-10 17:52:17 +02:00
|
|
|
SYSCALL_LOOKUP(sendfile, 4)
|
2023-02-10 07:54:23 +01:00
|
|
|
SYSCALL_LOOKUP(sync, 0)
|
|
|
|
SYSCALL_LOOKUP(fsync, 1)
|
2021-07-09 07:43:26 +02:00
|
|
|
SYSCALL_LOOKUP(chmod, 2)
|
|
|
|
SYSCALL_LOOKUP(lchmod, 2)
|
|
|
|
SYSCALL_LOOKUP(fchmod, 2)
|
|
|
|
SYSCALL_LOOKUP(chown, 3)
|
|
|
|
SYSCALL_LOOKUP(lchown, 3)
|
|
|
|
SYSCALL_LOOKUP(fchown, 3)
|
2021-08-09 10:08:20 +02:00
|
|
|
SYSCALL_LOOKUP(utimens, 2)
|
|
|
|
SYSCALL_LOOKUP(lutimens, 2)
|
2021-07-09 07:43:26 +02:00
|
|
|
SYSCALL_LOOKUP(futimens, 2)
|
2023-01-10 11:39:38 +01:00
|
|
|
SYSCALL_LOOKUP(munmap, 2)
|
2019-04-05 04:37:32 +02:00
|
|
|
|
2020-05-06 06:20:26 +02:00
|
|
|
#if defined(CONFIG_PSEUDOFS_SOFTLINKS)
|
2023-01-22 23:14:48 +01:00
|
|
|
SYSCALL_LOOKUP(link, 2)
|
2020-07-01 07:37:39 +02:00
|
|
|
SYSCALL_LOOKUP(symlink, 2)
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(readlink, 3)
|
2019-02-11 19:09:26 +01:00
|
|
|
#endif
|
2017-02-03 00:11:08 +01:00
|
|
|
|
2019-02-11 19:09:26 +01:00
|
|
|
#if defined(CONFIG_PIPES) && CONFIG_DEV_PIPE_SIZE > 0
|
2022-10-26 20:02:09 +02:00
|
|
|
SYSCALL_LOOKUP(pipe2, 2)
|
2020-12-30 15:07:19 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(CONFIG_PIPES) && CONFIG_DEV_FIFO_SIZE > 0
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(nx_mkfifo, 3)
|
2019-02-11 19:09:26 +01:00
|
|
|
#endif
|
2016-07-20 23:26:54 +02:00
|
|
|
|
2020-05-07 08:42:52 +02:00
|
|
|
#ifndef CONFIG_DISABLE_MOUNTPOINT
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(mount, 5)
|
|
|
|
SYSCALL_LOOKUP(mkdir, 2)
|
|
|
|
SYSCALL_LOOKUP(rmdir, 1)
|
|
|
|
SYSCALL_LOOKUP(umount2, 2)
|
|
|
|
SYSCALL_LOOKUP(unlink, 1)
|
2013-03-06 20:56:32 +01:00
|
|
|
#endif
|
|
|
|
|
2014-09-22 23:24:09 +02:00
|
|
|
/* Shared memory interfaces */
|
|
|
|
|
|
|
|
#ifdef CONFIG_MM_SHM
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(shmget, 3)
|
|
|
|
SYSCALL_LOOKUP(shmat, 3)
|
|
|
|
SYSCALL_LOOKUP(shmctl, 3)
|
|
|
|
SYSCALL_LOOKUP(shmdt, 1)
|
2014-09-22 23:24:09 +02:00
|
|
|
#endif
|
|
|
|
|
2022-04-05 09:42:08 +02:00
|
|
|
#ifdef CONFIG_FS_SHMFS
|
|
|
|
SYSCALL_LOOKUP(shm_open, 3)
|
|
|
|
SYSCALL_LOOKUP(shm_unlink, 1)
|
|
|
|
#endif
|
|
|
|
|
2013-03-06 20:56:32 +01:00
|
|
|
/* The following are defined if pthreads are enabled */
|
|
|
|
|
|
|
|
#ifndef CONFIG_DISABLE_PTHREAD
|
2023-04-23 08:45:14 +02:00
|
|
|
SYSCALL_LOOKUP(pthread_barrier_wait, 1)
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(pthread_cancel, 1)
|
|
|
|
SYSCALL_LOOKUP(pthread_cond_broadcast, 1)
|
|
|
|
SYSCALL_LOOKUP(pthread_cond_signal, 1)
|
|
|
|
SYSCALL_LOOKUP(pthread_cond_wait, 2)
|
2022-01-25 10:22:17 +01:00
|
|
|
SYSCALL_LOOKUP(nx_pthread_create, 5)
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(pthread_detach, 1)
|
2021-04-29 11:56:28 +02:00
|
|
|
SYSCALL_LOOKUP(nx_pthread_exit, 1)
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(pthread_getschedparam, 3)
|
|
|
|
SYSCALL_LOOKUP(pthread_join, 2)
|
|
|
|
SYSCALL_LOOKUP(pthread_mutex_destroy, 1)
|
|
|
|
SYSCALL_LOOKUP(pthread_mutex_init, 2)
|
|
|
|
SYSCALL_LOOKUP(pthread_mutex_timedlock, 2)
|
|
|
|
SYSCALL_LOOKUP(pthread_mutex_trylock, 1)
|
|
|
|
SYSCALL_LOOKUP(pthread_mutex_unlock, 1)
|
2017-03-27 17:36:03 +02:00
|
|
|
#ifndef CONFIG_PTHREAD_MUTEX_UNSAFE
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(pthread_mutex_consistent, 1)
|
2017-03-27 17:36:03 +02:00
|
|
|
#endif
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(pthread_setschedparam, 3)
|
|
|
|
SYSCALL_LOOKUP(pthread_setschedprio, 2)
|
2019-04-29 22:52:05 +02:00
|
|
|
#ifdef CONFIG_SMP
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(pthread_setaffinity_np, 3)
|
|
|
|
SYSCALL_LOOKUP(pthread_getaffinity_np, 3)
|
2019-04-29 22:52:05 +02:00
|
|
|
#endif
|
2020-07-27 07:46:03 +02:00
|
|
|
SYSCALL_LOOKUP(pthread_cond_clockwait, 4)
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(pthread_sigmask, 3)
|
2013-03-06 20:56:32 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/* The following are defined only if message queues are enabled */
|
|
|
|
|
|
|
|
#ifndef CONFIG_DISABLE_MQUEUE
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(mq_close, 1)
|
|
|
|
SYSCALL_LOOKUP(mq_getattr, 2)
|
|
|
|
SYSCALL_LOOKUP(mq_notify, 2)
|
|
|
|
SYSCALL_LOOKUP(mq_open, 4)
|
|
|
|
SYSCALL_LOOKUP(mq_receive, 4)
|
|
|
|
SYSCALL_LOOKUP(mq_send, 4)
|
|
|
|
SYSCALL_LOOKUP(mq_setattr, 3)
|
|
|
|
SYSCALL_LOOKUP(mq_timedreceive, 5)
|
|
|
|
SYSCALL_LOOKUP(mq_timedsend, 5)
|
|
|
|
SYSCALL_LOOKUP(mq_unlink, 1)
|
2013-03-06 20:56:32 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/* The following are defined only if environment variables are supported */
|
|
|
|
|
|
|
|
#ifndef CONFIG_DISABLE_ENVIRON
|
2022-04-20 12:41:26 +02:00
|
|
|
SYSCALL_LOOKUP(get_environ_ptr, 0)
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(clearenv, 0)
|
|
|
|
SYSCALL_LOOKUP(getenv, 1)
|
|
|
|
SYSCALL_LOOKUP(putenv, 1)
|
|
|
|
SYSCALL_LOOKUP(setenv, 3)
|
|
|
|
SYSCALL_LOOKUP(unsetenv, 1)
|
2013-03-06 20:56:32 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/* The following are defined only if networking AND sockets are supported */
|
|
|
|
|
2019-02-12 01:08:49 +01:00
|
|
|
#ifdef CONFIG_NET
|
2022-11-18 11:16:19 +01:00
|
|
|
SYSCALL_LOOKUP(accept4, 4)
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(bind, 3)
|
|
|
|
SYSCALL_LOOKUP(connect, 3)
|
|
|
|
SYSCALL_LOOKUP(getpeername, 3)
|
|
|
|
SYSCALL_LOOKUP(getsockname, 3)
|
|
|
|
SYSCALL_LOOKUP(getsockopt, 5)
|
|
|
|
SYSCALL_LOOKUP(listen, 2)
|
|
|
|
SYSCALL_LOOKUP(recv, 4)
|
|
|
|
SYSCALL_LOOKUP(recvfrom, 6)
|
2021-03-11 09:01:56 +01:00
|
|
|
SYSCALL_LOOKUP(recvmsg, 3)
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(send, 4)
|
|
|
|
SYSCALL_LOOKUP(sendto, 6)
|
2021-03-11 09:01:56 +01:00
|
|
|
SYSCALL_LOOKUP(sendmsg, 3)
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(setsockopt, 5)
|
2023-01-18 11:28:32 +01:00
|
|
|
SYSCALL_LOOKUP(shutdown, 2)
|
2020-05-06 06:20:26 +02:00
|
|
|
SYSCALL_LOOKUP(socket, 3)
|
2022-06-13 11:10:06 +02:00
|
|
|
SYSCALL_LOOKUP(socketpair, 4)
|
2013-03-06 20:56:32 +01:00
|
|
|
#endif
|
|
|
|
|
2017-03-30 15:38:37 +02:00
|
|
|
/* The following is defined only if entropy pool random number generator
|
2020-02-09 14:32:52 +01:00
|
|
|
* is enabled.
|
|
|
|
*/
|
2017-03-30 15:38:37 +02:00
|
|
|
|
|
|
|
#ifdef CONFIG_CRYPTO_RANDOM_POOL
|
2020-12-12 07:16:07 +01:00
|
|
|
SYSCALL_LOOKUP(arc4random_buf, 2)
|
2017-03-30 15:38:37 +02:00
|
|
|
#endif
|
2023-03-21 07:36:42 +01:00
|
|
|
|
|
|
|
SYSCALL_LOOKUP(getrandom, 3)
|
|
|
|
SYSCALL_LOOKUP(nanosleep, 2)
|
|
|
|
|
|
|
|
/* I/O event notification facility */
|
|
|
|
|
|
|
|
SYSCALL_LOOKUP(epoll_create1, 1)
|
|
|
|
SYSCALL_LOOKUP(epoll_ctl, 4)
|
|
|
|
SYSCALL_LOOKUP(epoll_wait, 4)
|
|
|
|
|
|
|
|
/* POSIX timers */
|
|
|
|
|
|
|
|
SYSCALL_LOOKUP(time, 1)
|
|
|
|
SYSCALL_LOOKUP(gettimeofday, 2)
|
|
|
|
SYSCALL_LOOKUP(settimeofday, 2)
|
|
|
|
|
|
|
|
/* ANSI C signal handling */
|
|
|
|
|
|
|
|
SYSCALL_LOOKUP(signal, 2)
|