Files
nuttx/syscall/syscall.csv
T
guoshichao c33d1c9c97 sched/task/fork: add fork implementation
1. as we can use fork to implement vfork, so we rename the vfork to
fork, and use the fork method as the base to implement vfork method
2. create the vfork function as a libc function based on fork
function

Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2023-07-12 02:27:37 +08:00

18 KiB

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