Files
nuttx/syscall/syscall.csv
T
Xiang Xiao 3cff139b85 libc: Make gethostname as syscall instead of uname
simplify and symmetry the implementation in KERNEL/PROTECTED build

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