Files
nuttx/syscall/syscall.csv
T
chao.an bf8446e235 sched/task: Implement gettid(2) syscall
See the reference here:
https://man7.org/linux/man-pages/man2/gettid.2.html

Change-Id: Ia814d0ccc3b20d8dfc36c809682ddf6e21811d20
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-09-18 20:07:00 -07:00

16 KiB

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