Files
nuttx/syscall/syscall.csv
Ville Juven d6ef4849a9 syscall: Add call gate for get_environ_ptr
Now that the environment strings are stored as an array of strings,
they can be passed from the application via char **environ, which
is really defined as a function call to get_environ_ptr().

This works as is for flat build, but protected mode and kernel mode
require a call gate, which is added here.
2022-04-21 18:38:37 +08:00

17 KiB

1_exitunistd.hnoreturnint
2acceptsys/socket.hdefined(CONFIG_NET)intintFAR struct sockaddr *FAR socklen_t *
3adjtimesys/time.hdefined(CONFIG_CLOCK_TIMEKEEPING)intFAR const struct timeval *FAR struct timeval *
4aio_cancelaio.hdefined(CONFIG_FS_AIO)intintFAR struct aiocb *
5aio_fsyncaio.hdefined(CONFIG_FS_AIO)intintFAR struct aiocb *
6aio_readaio.hdefined(CONFIG_FS_AIO)intFAR struct aiocb *
7aio_writeaio.hdefined(CONFIG_FS_AIO)intFAR struct aiocb *
8arc4random_bufstdlib.hdefined(CONFIG_CRYPTO_RANDOM_POOL)voidFAR void *size_t
9atexitstdlib.hdefined(CONFIG_SCHED_ATEXIT)intvoid (*)(void)
10bindsys/socket.hdefined(CONFIG_NET)intintFAR const struct sockaddr *socklen_t
11boardctlsys/boardctl.hdefined(CONFIG_BOARDCTL)intunsigned intuintptr_t
12chmodsys/stat.hintFAR const char *mode_t
13chownunistd.hintFAR const char *uid_tgid_t
14clearenvstdlib.h!defined(CONFIG_DISABLE_ENVIRON)int
15clocktime.hclock_t
16clock_getrestime.hintclockid_tFAR struct timespec *
17clock_gettimetime.hintclockid_tFAR struct timespec *
18clock_nanosleeptime.hintclockid_tintFAR const struct timespec *FAR struct timespec *
19clock_settimetime.hintclockid_tconst struct timespec*
20closeunistd.hintint
21closedirdirent.hintFAR DIR *
22connectsys/socket.hdefined(CONFIG_NET)intintFAR const struct sockaddr *socklen_t
23dupunistd.hintint
24dup2unistd.hintintint
25eventfdsys/eventfd.hdefined(CONFIG_EVENT_FD)intunsigned intint
26execnuttx/binfmt/binfmt.h!defined(CONFIG_BINFMT_DISABLE) && !defined(CONFIG_BUILD_KERNEL)intFAR const char *FAR char * const *FAR const struct symtab_s *int
27execvunistd.h!defined(CONFIG_BINFMT_DISABLE) && defined(CONFIG_LIBC_EXECFUNCS)intFAR const char *FAR char * const []|FAR char * const *
28exitstdlib.hnoreturnint
29fchmodsys/stat.hintintmode_t
30fchownunistd.hintintuid_tgid_t
31fcntlfcntl.hintintint...int
32fs_fdopennuttx/fs/fs.hdefined(CONFIG_FILE_STREAM)intintintFAR struct tcb_s *FAR struct file_struct **
33fstatsys/stat.hintintFAR struct stat *
34fstatfssys/statfs.hintintFAR struct statfs *
35fsyncunistd.h!defined(CONFIG_DISABLE_MOUNTPOINT)intint
36ftruncateunistd.h!defined(CONFIG_DISABLE_MOUNTPOINT)intintoff_t
37futimenssys/stat.hintintconst struct timespec [2]|FAR const struct timespec *
38get_environ_ptrstdlib.h!defined(CONFIG_DISABLE_ENVIRON)FAR char **
39getenvstdlib.h!defined(CONFIG_DISABLE_ENVIRON)FAR char *FAR const char *
40getgidunistd.hdefined(CONFIG_SCHED_USER_IDENTITY)gid_t
41gethostnameunistd.hintFAR char *size_t
42getitimersys/time.h!defined(CONFIG_DISABLE_POSIX_TIMERS)intintFAR struct itimerval *
43getpeernamesys/socket.hdefined(CONFIG_NET)intintFAR struct sockaddr *FAR socklen_t *
44getpidunistd.hpid_t
45getppidunistd.hdefined(CONFIG_SCHED_HAVE_PARENT)pid_t
46getsocknamesys/socket.hdefined(CONFIG_NET)intintFAR struct sockaddr *FAR socklen_t *
47getsockoptsys/socket.hdefined(CONFIG_NET)intintintintFAR void *FAR socklen_t *
48gettidunistd.hpid_t
49getuidunistd.hdefined(CONFIG_SCHED_USER_IDENTITY)uid_t
50insmodnuttx/module.hdefined(CONFIG_MODULE)FAR void *FAR const char *FAR const char *
51ioctlsys/ioctl.hintintint...unsigned long
52killsignal.hintpid_tint
53lchmodsys/stat.hintFAR const char *mode_t
54lchownunistd.hintFAR const char *uid_tgid_t
55listensys/socket.hdefined(CONFIG_NET)intintint
56lseekunistd.hoff_tintoff_tint
57lstatsys/stat.hintFAR const char *FAR struct stat *
58lutimenssys/stat.hintFAR const char *const struct timespec [2]|FAR const struct timespec *
59mkdirsys/stat.h!defined(CONFIG_DISABLE_MOUNTPOINT)intFAR const char *mode_t
60mmapsys/mman.hFAR void *FAR void *size_tintintintoff_t
61modhandlenuttx/module.hdefined(CONFIG_MODULE)FAR void *FAR const char *
62mountsys/mount.h!defined(CONFIG_DISABLE_MOUNTPOINT)intFAR const char *FAR const char *FAR const char *unsigned longFAR const void *
63mq_closemqueue.h!defined(CONFIG_DISABLE_MQUEUE)intmqd_t
64mq_getattrmqueue.h!defined(CONFIG_DISABLE_MQUEUE)intmqd_tFAR struct mq_attr *
65mq_notifymqueue.h!defined(CONFIG_DISABLE_MQUEUE)intmqd_tFAR const struct sigevent *
66mq_openmqueue.h!defined(CONFIG_DISABLE_MQUEUE)mqd_tFAR const char *int...mode_tFAR struct mq_attr *
67mq_receivemqueue.h!defined(CONFIG_DISABLE_MQUEUE)ssize_tmqd_tFAR char *size_tFAR unsigned int *
68mq_sendmqueue.h!defined(CONFIG_DISABLE_MQUEUE)intmqd_tFAR const char *size_tunsigned int
69mq_setattrmqueue.h!defined(CONFIG_DISABLE_MQUEUE)intmqd_tFAR const struct mq_attr *FAR struct mq_attr *
70mq_timedreceivemqueue.h!defined(CONFIG_DISABLE_MQUEUE)ssize_tmqd_tFAR char *size_tFAR unsigned int *FAR const struct timespec *
71mq_timedsendmqueue.h!defined(CONFIG_DISABLE_MQUEUE)intmqd_tFAR const char *size_tunsigned intFAR const struct timespec *
72mq_unlinkmqueue.h!defined(CONFIG_DISABLE_MQUEUE)intFAR const char *
73munmapsys/mman.hdefined(CONFIG_FS_RAMMAP)intFAR void *size_t
74nx_mkfifonuttx/fs/fs.hdefined(CONFIG_PIPES) && CONFIG_DEV_FIFO_SIZE > 0intFAR const char *mode_tsize_t
75nx_pipenuttx/fs/fs.hdefined(CONFIG_PIPES) && CONFIG_DEV_PIPE_SIZE > 0intint [2]|FAR int *size_tint
76nx_pthread_createnuttx/pthread.h!defined(CONFIG_DISABLE_PTHREAD)intpthread_trampoline_tFAR pthread_t *FAR const pthread_attr_t *pthread_startroutine_tpthread_addr_t
77nx_pthread_exitnuttx/pthread.h!defined(CONFIG_DISABLE_PTHREAD)noreturnpthread_addr_t
78nx_vsyslognuttx/syslog/syslog.hintintFAR const IPTR char *FAR va_list *
79nxsched_get_stackinfonuttx/sched.hintpid_tFAR struct stackinfo_s *
80nxsched_get_streamsnuttx/sched.hdefined(CONFIG_FILE_STREAM)FAR struct streamlist *
81on_exitstdlib.hdefined(CONFIG_SCHED_ONEXIT)intCODE void (*)(int, FAR void *)FAR void *
82openfcntl.hintFAR const char *int...mode_t
83opendirdirent.hFAR DIR *FAR const char *
84pgallocnuttx/arch.hdefined(CONFIG_BUILD_KERNEL)uintptr_tuintptr_tunsigned int
85pollpoll.hintFAR struct pollfd *nfds_tint
86posix_spawnspawn.h!defined(CONFIG_BINFMT_DISABLE) && defined(CONFIG_LIBC_EXECFUNCS)intFAR pid_t *FAR const char *FAR const posix_spawn_file_actions_t *FAR const posix_spawnattr_t *FAR char * const []|FAR char * const *FAR char * const []|FAR char * const *
87ppollpoll.hintFAR struct pollfd *nfds_tFAR const struct timespec *FAR const sigset_t *
88prctlsys/prctl.hCONFIG_TASK_NAME_SIZE > 0intint...uintptr_tuintptr_t
89preadunistd.hssize_tintFAR void *size_toff_t
90pselectsys/select.hintintFAR fd_set *FAR fd_set *FAR fd_set *FAR const struct timespec *FAR const sigset_t *
91pthread_cancelpthread.h!defined(CONFIG_DISABLE_PTHREAD)intpthread_t
92pthread_cond_broadcastpthread.h!defined(CONFIG_DISABLE_PTHREAD)intFAR pthread_cond_t *
93pthread_cond_clockwaitpthread.h!defined(CONFIG_DISABLE_PTHREAD)intFAR pthread_cond_t *FAR pthread_mutex_t *clockid_tFAR const struct timespec *
94pthread_cond_signalpthread.h!defined(CONFIG_DISABLE_PTHREAD)intFAR pthread_cond_t *
95pthread_cond_waitpthread.h!defined(CONFIG_DISABLE_PTHREAD)intFAR pthread_cond_t *FAR pthread_mutex_t *
96pthread_detachpthread.h!defined(CONFIG_DISABLE_PTHREAD)intpthread_t
97pthread_getaffinity_nppthread.h!defined(CONFIG_DISABLE_PTHREAD) && defined(CONFIG_SMP)intpthread_tsize_tFAR cpu_set_t*
98pthread_getschedparampthread.h!defined(CONFIG_DISABLE_PTHREAD)intpthread_tFAR int *FAR struct sched_param *
99pthread_joinpthread.h!defined(CONFIG_DISABLE_PTHREAD)intpthread_tFAR pthread_addr_t *
100pthread_killpthread.h!defined(CONFIG_DISABLE_PTHREAD)intpthread_tint
101pthread_mutex_consistentpthread.h!defined(CONFIG_DISABLE_PTHREAD) && !defined(CONFIG_PTHREAD_MUTEX_UNSAFE)intFAR pthread_mutex_t *
102pthread_mutex_destroypthread.h!defined(CONFIG_DISABLE_PTHREAD)intFAR pthread_mutex_t *
103pthread_mutex_initpthread.h!defined(CONFIG_DISABLE_PTHREAD)intFAR pthread_mutex_t *FAR const pthread_mutexattr_t *
104pthread_mutex_timedlockpthread.h!defined(CONFIG_DISABLE_PTHREAD)intFAR pthread_mutex_t *FAR const struct timespec *
105pthread_mutex_trylockpthread.h!defined(CONFIG_DISABLE_PTHREAD)intFAR pthread_mutex_t *
106pthread_mutex_unlockpthread.h!defined(CONFIG_DISABLE_PTHREAD)intFAR pthread_mutex_t *
107pthread_setaffinity_nppthread.h!defined(CONFIG_DISABLE_PTHREAD) && defined(CONFIG_SMP)intpthread_tsize_tFAR const cpu_set_t *
108pthread_setschedparampthread.h!defined(CONFIG_DISABLE_PTHREAD)intpthread_tintFAR const struct sched_param *
109pthread_setschedpriopthread.h!defined(CONFIG_DISABLE_PTHREAD)intpthread_tint
110pthread_sigmaskpthread.h!defined(CONFIG_DISABLE_PTHREAD)intintFAR const sigset_t *FAR sigset_t *
111putenvstdlib.h!defined(CONFIG_DISABLE_ENVIRON)intFAR const char *
112pwriteunistd.hssize_tintFAR const void *size_toff_t
113readunistd.hssize_tintFAR void *size_t
114readdirdirent.hFAR struct dirent *FAR DIR *
115readlinkunistd.hdefined(CONFIG_PSEUDOFS_SOFTLINKS)ssize_tFAR const char *FAR char *size_t
116recvsys/socket.hdefined(CONFIG_NET)ssize_tintFAR void *size_tint
117recvfromsys/socket.hdefined(CONFIG_NET)ssize_tintFAR void*size_tintFAR struct sockaddr*FAR socklen_t*
118recvmsgsys/socket.hdefined(CONFIG_NET)ssize_tintFAR struct msghdr *int
119renamestdio.h!defined(CONFIG_DISABLE_MOUNTPOINT)intFAR const char *FAR const char *
120rewinddirdirent.hvoidFAR DIR *
121rmdirunistd.h!defined(CONFIG_DISABLE_MOUNTPOINT)intFAR const char*
122rmmodnuttx/module.hdefined(CONFIG_MODULE)intFAR void *
123sched_getaffinitysched.hdefined(CONFIG_SMP)intpid_tsize_tFAR cpu_set_t *
124sched_getcpusched.hdefined(CONFIG_SMP)int
125sched_getparamsched.hintpid_tFAR struct sched_param *
126sched_getschedulersched.hintpid_t
127sched_locksched.hint
128sched_lockcountsched.hint
129sched_rr_get_intervalsched.hintpid_tstruct timespec *
130sched_setaffinitysched.hdefined(CONFIG_SMP)intpid_tsize_tFAR const cpu_set_t*
131sched_setparamsched.hintpid_tconst struct sched_param *
132sched_setschedulersched.hintpid_tintconst struct sched_param *
133sched_unlocksched.hint
134sched_yieldsched.hint
135sched_backtracesched.hdefined(CONFIG_SCHED_BACKTRACE)intpid_tFAR void **intint
136seekdirdirent.hvoidFAR DIR *off_t
137selectsys/select.hintintFAR fd_set *FAR fd_set *FAR fd_set *FAR struct timeval *
138sem_clockwaitsemaphore.hintFAR sem_t *clockid_tFAR const struct timespec *
139sem_closesemaphore.hdefined(CONFIG_FS_NAMED_SEMAPHORES)intFAR sem_t *
140sem_destroysemaphore.hintFAR sem_t *
141sem_opensemaphore.hdefined(CONFIG_FS_NAMED_SEMAPHORES)FAR sem_t *FAR const char *int...mode_tunsigned int
142sem_postsemaphore.hintFAR sem_t *
143sem_setprotocolnuttx/semaphore.hdefined(CONFIG_PRIORITY_INHERITANCE)intFAR sem_t *int
144sem_timedwaitsemaphore.hintFAR sem_t *FAR const struct timespec *
145sem_trywaitsemaphore.hintFAR sem_t *
146sem_unlinksemaphore.hdefined(CONFIG_FS_NAMED_SEMAPHORES)intFAR const char *
147sem_waitsemaphore.hintFAR sem_t *
148sendsys/socket.hdefined(CONFIG_NET)ssize_tintFAR const void *size_tint
149sendfilesys/sendfile.hssize_tintintFAR off_t *size_t
150sendmsgsys/socket.hdefined(CONFIG_NET)ssize_tintFAR struct msghdr *int
151sendtosys/socket.hdefined(CONFIG_NET)ssize_tintFAR const void *size_tintFAR const struct sockaddr *socklen_t
152setenvstdlib.h!defined(CONFIG_DISABLE_ENVIRON)intFAR const char *FAR const char *int
153setgidunistd.hdefined(CONFIG_SCHED_USER_IDENTITY)intgid_t
154sethostnameunistd.hintFAR const char *size_t
155setitimersys/time.h!defined(CONFIG_DISABLE_POSIX_TIMERS)intintFAR const struct itimerval *FAR struct itimerval *
156setsockoptsys/socket.hdefined(CONFIG_NET)intintintintFAR const void *socklen_t
157setuidunistd.hdefined(CONFIG_SCHED_USER_IDENTITY)intuid_t
158shmatsys/shm.hdefined(CONFIG_MM_SHM)FAR void *intFAR const void *int
159shmctlsys/shm.hdefined(CONFIG_MM_SHM)intintintFAR struct shmid_ds *
160shmdtsys/shm.hdefined(CONFIG_MM_SHM)intFAR const void *
161shmgetsys/shm.hdefined(CONFIG_MM_SHM)intkey_tsize_tint
162sigactionsignal.hintintFAR const struct sigaction *FAR struct sigaction *
163sigpendingsignal.hintFAR sigset_t *
164sigprocmasksignal.hintintFAR const sigset_t *FAR sigset_t *
165sigqueuesignal.hintintintunion sigval|FAR void *|sival_ptr
166sigsuspendsignal.hintFAR const sigset_t *
167sigtimedwaitsignal.hintFAR const sigset_t *FAR struct siginfo *FAR const struct timespec *
168sigwaitinfosignal.hintFAR const sigset_t *FAR struct siginfo *
169socketsys/socket.hdefined(CONFIG_NET)intintintint
170statsys/stat.hintFAR const char *FAR struct stat *
171statfssys/statfs.hintFAR const char *FAR struct statfs *
172symlinkunistd.hdefined(CONFIG_PSEUDOFS_SOFTLINKS)intFAR const char *FAR const char *
173sysinfosys/sysinfo.hintFAR struct sysinfo *
174task_createsched.h!defined(CONFIG_BUILD_KERNEL)intFAR const char *intintmain_tFAR char * const []|FAR char * const *
175task_deletesched.hintpid_t
176task_restartsched.hintpid_t
177task_setcancelstatesched.hintintFAR int *
178task_setcanceltypesched.hdefined(CONFIG_CANCELLATION_POINTS)intintFAR int *
179task_spawnnuttx/spawn.h!defined(CONFIG_BUILD_KERNEL)intFAR const char *main_tFAR const posix_spawn_file_actions_t *FAR const posix_spawnattr_t *FAR char * const []|FAR char * const *FAR char * const []|FAR char * const *
180task_testcancelpthread.hdefined(CONFIG_CANCELLATION_POINTS)void
181task_tls_allocnuttx/tls.hCONFIG_TLS_TASK_NELEM > 0intuintptr_t
182telldirdirent.hoff_tFAR DIR *
183timer_createtime.h!defined(CONFIG_DISABLE_POSIX_TIMERS)intclockid_tFAR struct sigevent *FAR timer_t *
184timer_deletetime.h!defined(CONFIG_DISABLE_POSIX_TIMERS)inttimer_t
185timer_getoverruntime.h!defined(CONFIG_DISABLE_POSIX_TIMERS)inttimer_t
186timer_gettimetime.h!defined(CONFIG_DISABLE_POSIX_TIMERS)inttimer_tFAR struct itimerspec *
187timer_settimetime.h!defined(CONFIG_DISABLE_POSIX_TIMERS)inttimer_tintFAR const struct itimerspec *FAR struct itimerspec *
188timerfd_createsys/timerfd.hdefined(CONFIG_TIMER_FD)intintint
189timerfd_gettimesys/timerfd.hdefined(CONFIG_TIMER_FD)intintFAR struct itimerspec *
190timerfd_settimesys/timerfd.hdefined(CONFIG_TIMER_FD)intintintFAR const struct itimerspec *FAR const struct itimerspec *
191umount2sys/mount.h!defined(CONFIG_DISABLE_MOUNTPOINT)intFAR const char *unsigned int
192unlinkunistd.h!defined(CONFIG_DISABLE_MOUNTPOINT)intFAR const char *
193unsetenvstdlib.h!defined(CONFIG_DISABLE_ENVIRON)intFAR const char *
194up_assertnuttx/arch.hvoidFAR const char *int
195utimenssys/stat.hintFAR const char *const struct timespec [2]|FAR const struct timespec *
196vforkunistd.hdefined(CONFIG_SCHED_WAITPID) && defined(CONFIG_ARCH_HAVE_VFORK)pid_t
197waitsys/wait.hdefined(CONFIG_SCHED_WAITPID) && defined(CONFIG_SCHED_HAVE_PARENT)pid_tFAR int *
198waitidsys/wait.hdefined(CONFIG_SCHED_WAITPID) && defined(CONFIG_SCHED_HAVE_PARENT)intidtype_tid_t FAR siginfo_t *int
199waitpidsys/wait.hdefined(CONFIG_SCHED_WAITPID)pid_tpid_tFAR int *int
200writeunistd.hssize_tintFAR const void *size_t