Files
nuttx/syscall/syscall.csv
T
Jussi Kivilinna dffb8a67e3 Add entropy pool and strong random number generator
Entropy pool gathers environmental noise from device drivers, user-space, etc., and returns good random numbers, suitable for cryptographic use. Based on entropy pool design from *BSDs and uses BLAKE2Xs algorithm for CSPRNG output.

Patch also adds /dev/urandom support for using entropy pool RNG and new 'getrandom' system call for getting randomness without file-descriptor usage (thus avoiding file-descriptor exhaustion attacks). The 'getrandom' interface is similar as 'getentropy' and 'getrandom' available on OpenBSD and Linux respectively.
2017-03-30 07:38:37 -06:00

18 KiB

1_exitunistd.hvoidint
2adjtimesys/time.hdefined(CONFIG_CLOCK_TIMEKEEPING)intFAR const struct timeval *FAR struct timeval *
3aio_cancelaio.hdefined(CONFIG_FS_AIO)intintFAR struct aiocb *
4aio_fsyncaio.hdefined(CONFIG_FS_AIO)intintFAR struct aiocb *
5aio_readaio.hdefined(CONFIG_FS_AIO)intFAR struct aiocb *
6aio_writeaio.hdefined(CONFIG_FS_AIO)intFAR struct aiocb *
7acceptsys/socket.hCONFIG_NSOCKET_DESCRIPTORS > 0 && defined(CONFIG_NET)intintstruct sockaddr*socklen_t*
8atexitstdlib.hdefined(CONFIG_SCHED_ATEXIT)intvoid (*)(void)
9bindsys/socket.hCONFIG_NSOCKET_DESCRIPTORS > 0 && defined(CONFIG_NET)intintFAR const struct sockaddr*socklen_t
10boardctlsys/boardctl.hdefined(CONFIG_LIB_BOARDCTL)intunsigned intuintptr_t
11clearenvstdlib.h!defined(CONFIG_DISABLE_ENVIRON)int
12clock_getrestime.hintclockid_tstruct timespec*
13clock_gettimetime.hintclockid_tstruct timespec*
14clock_settimetime.hintclockid_tconst struct timespec*
15clock_systimernuttx/clock.h!defined(__HAVE_KERNEL_GLOBALS)systime_t
16closeunistd.hCONFIG_NSOCKET_DESCRIPTORS > 0 || CONFIG_NFILE_DESCRIPTORS > 0intint
17closedirdirent.hCONFIG_NFILE_DESCRIPTORS > 0intFAR DIR*
18connectsys/socket.hCONFIG_NSOCKET_DESCRIPTORS > 0 && defined(CONFIG_NET)intintFAR const struct sockaddr*socklen_t
19dupunistd.hCONFIG_NFILE_DESCRIPTORS > 0intint
20dup2unistd.hCONFIG_NFILE_DESCRIPTORS > 0intintint
21execvunistd.h!defined(CONFIG_BINFMT_DISABLE) && defined(CONFIG_LIBC_EXECFUNCS)intFAR const char *FAR char *const []|FAR char *const *
22exitstdlib.hvoidint
23fcntlfcntl.hCONFIG_NFILE_DESCRIPTORS > 0intintint...
24fs_fdopennuttx/fs/fs.hCONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_NFILE_STREAMS > 0FAR struct file_struct*intintFAR struct tcb_s*
25fs_ioctlnuttx/fs/fs.hdefined(CONFIG_LIBC_IOCTL_VARIADIC) && (CONFIG_NSOCKET_DESCRIPTORS > 0 || CONFIG_NFILE_DESCRIPTORS > 0)intintintunsigned long
26fstatsys/stat.hCONFIG_NFILE_DESCRIPTORS > 0intintFAR struct stat*
27fstatfssys/statfs.hCONFIG_NFILE_DESCRIPTORS > 0intintFAR struct statfs*
28fsyncunistd.hCONFIG_NFILE_DESCRIPTORS > 0 && !defined(CONFIG_DISABLE_MOUNTPOINT)intint
29get_errnoerrno.h!defined(__DIRECT_ERRNO_ACCESS)int
30get_errno_ptrerrno.hdefined(__DIRECT_ERRNO_ACCESS)FAR int*
31getenvstdlib.h!defined(CONFIG_DISABLE_ENVIRON)FAR char*FAR const char*
32getpidunistd.hpid_t
33getrandomsys/random.hdefined(CONFIG_CRYPTO_RANDOM_POOL)voidFAR void*size_t
34getsockoptsys/socket.hCONFIG_NSOCKET_DESCRIPTORS > 0 && defined(CONFIG_NET)intintintintFAR void*FAR socklen_t*
35insmodnuttx/module.hdefined(CONFIG_MODULE)FAR void *FAR const char *FAR const char *
36ioctlsys/ioctl.h!defined(CONFIG_LIBC_IOCTL_VARIADIC) && (CONFIG_NSOCKET_DESCRIPTORS > 0 || CONFIG_NFILE_DESCRIPTORS > 0)intintintunsigned long
37killsignal.h!defined(CONFIG_DISABLE_SIGNALS)intpid_tint
38linkunistd.hdefined(CONFIG_PSEUDOFS_SOFTLINKS)intFAR const char *FAR const char *
39listensys/socket.hCONFIG_NSOCKET_DESCRIPTORS > 0 && defined(CONFIG_NET)intintint
40lseekunistd.hCONFIG_NFILE_DESCRIPTORS > 0off_tintoff_tint
41mkdirsys/stat.hCONFIG_NFILE_DESCRIPTORS > 0 && !defined(CONFIG_DISABLE_MOUNTPOINT)intFAR const char*mode_t
42mkfifo2nuttx/drivers/drivers.hdefined(CONFIG_PIPES) && CONFIG_DEV_FIFO_SIZE > 0intFAR const char*mode_tsize_t
43mmapsys/mman.hCONFIG_NFILE_DESCRIPTORS > 0FAR void*FAR void*size_tintintintoff_t
44modhandlenuttx/module.hdefined(CONFIG_MODULE)FAR void *FAR const char *
45mountsys/mount.hCONFIG_NFILE_DESCRIPTORS > 0 && !defined(CONFIG_DISABLE_MOUNTPOINT) && defined(CONFIG_FS_READABLE)intconst char*const char*const char*unsigned longconst void*
46mq_closemqueue.h!defined(CONFIG_DISABLE_MQUEUE)intmqd_t
47mq_getattrmqueue.h!defined(CONFIG_DISABLE_MQUEUE)intmqd_tstruct mq_attr *
48mq_notifymqueue.h!defined(CONFIG_DISABLE_SIGNALS) && !defined(CONFIG_DISABLE_MQUEUE)intmqd_tconst struct sigevent*
49mq_openmqueue.h!defined(CONFIG_DISABLE_MQUEUE)mqd_tconst char*int...
50mq_receivemqueue.h!defined(CONFIG_DISABLE_MQUEUE)ssize_tmqd_tchar*size_tint*
51mq_sendmqueue.h!defined(CONFIG_DISABLE_MQUEUE)intmqd_tconst char*size_tint
52mq_setattrmqueue.h!defined(CONFIG_DISABLE_MQUEUE)intmqd_tconst struct mq_attr *struct mq_attr *
53mq_timedreceivemqueue.h!defined(CONFIG_DISABLE_MQUEUE)ssize_tmqd_tchar*size_tint*const struct timespec*
54mq_timedsendmqueue.h!defined(CONFIG_DISABLE_MQUEUE)intmqd_tconst char*size_tintconst struct timespec*
55mq_unlinkmqueue.h!defined(CONFIG_DISABLE_MQUEUE)intconst char*
56on_exitstdlib.hdefined(CONFIG_SCHED_ONEXIT)intCODE void (*)(int, FAR void *)FAR void *
57nanosleeptime.h!defined(CONFIG_DISABLE_SIGNALS)intFAR const struct timespec *FAR struct timespec*
58openfcntl.hCONFIG_NFILE_DESCRIPTORS > 0intconst char*int...
59opendirdirent.hCONFIG_NFILE_DESCRIPTORS > 0FAR DIR*FAR const char*
60pgallocnuttx/arch.hdefined(CONFIG_BUILD_KERNEL)uintptr_tuintptr_tunsigned int
61pipe2nuttx/drivers/drivers.hdefined(CONFIG_PIPES) && CONFIG_DEV_PIPE_SIZE > 0intint [2]|int*size_t
62pollpoll.h!defined(CONFIG_DISABLE_POLL) && (CONFIG_NSOCKET_DESCRIPTORS > 0 || CONFIG_NFILE_DESCRIPTORS > 0)intFAR struct pollfd*nfds_tint
63prctlsys/prctl.hCONFIG_TASK_NAME_SIZE > 0intint...
64preadunistd.hCONFIG_NSOCKET_DESCRIPTORS > 0 || CONFIG_NFILE_DESCRIPTORS > 0ssize_tintFAR void*size_toff_t
65pwriteunistd.hCONFIG_NSOCKET_DESCRIPTORS > 0 || CONFIG_NFILE_DESCRIPTORS > 0ssize_tintFAR const void*size_toff_t
66posix_spawnpspawn.h!defined(CONFIG_BINFMT_DISABLE) && defined(CONFIG_LIBC_EXECFUNCS) && defined(CONFIG_BINFMT_EXEPATH)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 []
67posix_spawnspawn.h!defined(CONFIG_BINFMT_DISABLE) && defined(CONFIG_LIBC_EXECFUNCS) && !defined(CONFIG_BINFMT_EXEPATH)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 *
68pthread_barrier_destroypthread.h!defined(CONFIG_DISABLE_PTHREAD)intFAR pthread_barrier_t*
69pthread_barrier_initpthread.h!defined(CONFIG_DISABLE_PTHREAD)intFAR pthread_barrier_t*FAR const pthread_barrierattr_t*unsigned int
70pthread_barrier_waitpthread.h!defined(CONFIG_DISABLE_PTHREAD)intFAR pthread_barrier_t*
71pthread_cancelpthread.h!defined(CONFIG_DISABLE_PTHREAD)intpthread_t
72pthread_cleanup_poppthread.hdefined(CONFIG_PTHREAD_CLEANUP)voidint
73pthread_cleanup_pushpthread.hdefined(CONFIG_PTHREAD_CLEANUP)voidpthread_cleanup_tFAR void*
74pthread_cond_broadcastpthread.h!defined(CONFIG_DISABLE_PTHREAD)intFAR pthread_cond_t*
75pthread_cond_destroypthread.h!defined(CONFIG_DISABLE_PTHREAD)intFAR pthread_cond_t*
76pthread_cond_initpthread.h!defined(CONFIG_DISABLE_PTHREAD)intFAR pthread_cond_t*FAR const pthread_condattr_t*
77pthread_cond_signalpthread.h!defined(CONFIG_DISABLE_PTHREAD)intFAR pthread_cond_t*
78pthread_cond_timedwaitpthread.h!defined(CONFIG_DISABLE_SIGNALS) && !defined(CONFIG_DISABLE_PTHREAD)intFAR pthread_cond_t*FAR pthread_mutex_t*FAR const struct timespec*
79pthread_cond_waitpthread.h!defined(CONFIG_DISABLE_PTHREAD)intFAR pthread_cond_t*FAR pthread_mutex_t*
80pthread_createpthread.h!defined(CONFIG_DISABLE_PTHREAD)intFAR pthread_t*FAR const pthread_attr_t*pthread_startroutine_tpthread_addr_t
81pthread_detachpthread.h!defined(CONFIG_DISABLE_PTHREAD)intpthread_t
82pthread_exitpthread.h!defined(CONFIG_DISABLE_PTHREAD)voidpthread_addr_t
83pthread_getaffinity_nppthread.h!defined(CONFIG_DISABLE_PTHREAD) && defined(CONFIG_SMP)intpthread_tsize_tFAR cpu_set_t*
84pthread_getschedparampthread.h!defined(CONFIG_DISABLE_PTHREAD)intpthread_tFAR int*FAR struct sched_param*
85pthread_getspecificpthread.h!defined(CONFIG_DISABLE_PTHREAD)FAR void*pthread_key_t
86pthread_joinpthread.h!defined(CONFIG_DISABLE_PTHREAD)intpthread_tFAR pthread_addr_t*
87pthread_key_createpthread.h!defined(CONFIG_DISABLE_PTHREAD)intFAR pthread_key_t*CODE void (*)(FAR void*)
88pthread_key_deletepthread.h!defined(CONFIG_DISABLE_PTHREAD)intpthread_key_t
89pthread_killpthread.h!defined(CONFIG_DISABLE_SIGNALS) && !defined(CONFIG_DISABLE_PTHREAD)intpthread_tint
90pthread_mutex_destroypthread.h!defined(CONFIG_DISABLE_PTHREAD)intFAR pthread_mutex_t*
91pthread_mutex_initpthread.h!defined(CONFIG_DISABLE_PTHREAD)intFAR pthread_mutex_t*FAR const pthread_mutexattr_t*
92pthread_mutex_lockpthread.h!defined(CONFIG_DISABLE_PTHREAD)intFAR pthread_mutex_t*
93pthread_mutex_trylockpthread.h!defined(CONFIG_DISABLE_PTHREAD)intFAR pthread_mutex_t*
94pthread_mutex_unlockpthread.h!defined(CONFIG_DISABLE_PTHREAD)intFAR pthread_mutex_t*
95pthread_mutex_consistentpthread.h!defined(CONFIG_DISABLE_PTHREAD) && !defined(CONFIG_PTHREAD_MUTEX_UNSAFE)intFAR pthread_mutex_t*
96pthread_oncepthread.h!defined(CONFIG_DISABLE_PTHREAD)intFAR pthread_once_t*CODE void (*)(void)
97pthread_setaffinity_nppthread.h!defined(CONFIG_DISABLE_PTHREAD) && defined(CONFIG_SMP)intpthread_tsize_tFAR const cpu_set_t*
98pthread_setschedparampthread.h!defined(CONFIG_DISABLE_PTHREAD)intpthread_tintFAR const struct sched_param*
99pthread_setschedpriopthread.h!defined(CONFIG_DISABLE_PTHREAD)intpthread_tint
100pthread_setspecificpthread.h!defined(CONFIG_DISABLE_PTHREAD)intpthread_key_tFAR const void*
101pthread_sigmaskpthread.h!defined(CONFIG_DISABLE_SIGNALS) && !defined(CONFIG_DISABLE_PTHREAD)intintFAR const sigset_t*FAR sigset_t*
102pthread_yieldpthread.h!defined(CONFIG_DISABLE_PTHREAD)void
103putenvstdlib.h!defined(CONFIG_DISABLE_ENVIRON)intFAR const char*
104readunistd.hCONFIG_NSOCKET_DESCRIPTORS > 0 || CONFIG_NFILE_DESCRIPTORS > 0ssize_tintFAR void*size_t
105readdirdirent.hCONFIG_NFILE_DESCRIPTORS > 0FAR struct dirent*FAR DIR*
106readlinkunistd.hdefined(CONFIG_PSEUDOFS_SOFTLINKS)ssize_tFAR const char *FAR char *size_t
107recvsys/socket.hCONFIG_NSOCKET_DESCRIPTORS > 0 && defined(CONFIG_NET)ssize_tintFAR void*size_tint
108recvfromsys/socket.hCONFIG_NSOCKET_DESCRIPTORS > 0 && defined(CONFIG_NET)ssize_tintFAR void*size_tintFAR struct sockaddr*FAR socklen_t*
109renamestdio.hCONFIG_NFILE_DESCRIPTORS > 0 && !defined(CONFIG_DISABLE_MOUNTPOINT)intFAR const char*FAR const char*
110rewinddirdirent.hCONFIG_NFILE_DESCRIPTORS > 0voidFAR DIR*
111rmdirunistd.hCONFIG_NFILE_DESCRIPTORS > 0 && !defined(CONFIG_DISABLE_MOUNTPOINT)intFAR const char*
112rmmodnuttx/module.hdefined(CONFIG_MODULE)intFAR void *
113sched_getparamsched.hintpid_tstruct sched_param*
114sched_getschedulersched.hintpid_t
115sched_getstreamsnuttx/sched.hCONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_NFILE_STREAMS > 0FAR struct streamlist*
116sched_locksched.hint
117sched_lockcountsched.hint32_t
118sched_rr_get_intervalsched.hintpid_tstruct timespec*
119sched_setparamsched.hintpid_tconst struct sched_param*
120sched_setschedulersched.hintpid_tintconst struct sched_param*
121sched_unlocksched.hint
122sched_yieldsched.hint
123seekdirdirent.hCONFIG_NFILE_DESCRIPTORS > 0voidFAR DIR*off_t
124selectsys/select.h!defined(CONFIG_DISABLE_POLL) && (CONFIG_NSOCKET_DESCRIPTORS > 0 || CONFIG_NFILE_DESCRIPTORS > 0)intintFAR fd_set*FAR fd_set*FAR fd_set*FAR struct timeval*
125sem_closesemaphore.hdefined(CONFIG_FS_NAMED_SEMAPHORES)intFAR sem_t*
126sem_destroysemaphore.hintFAR sem_t*
127sem_opensemaphore.hdefined(CONFIG_FS_NAMED_SEMAPHORES)FAR sem_t*FAR const char*int...
128sem_postsemaphore.hintFAR sem_t*
129sem_setprotocolnuttx/semaphore.hdefined(CONFIG_PRIORITY_INHERITANCE)intFAR sem_t*int
130sem_timedwaitsemaphore.hintFAR sem_t*FAR const struct timespec *
131sem_trywaitsemaphore.hintFAR sem_t*
132sem_unlinksemaphore.hdefined(CONFIG_FS_NAMED_SEMAPHORES)intFAR const char*
133sem_waitsemaphore.hintFAR sem_t*
134sendsys/socket.hCONFIG_NSOCKET_DESCRIPTORS > 0 && defined(CONFIG_NET)ssize_tintFAR const void*size_tint
135sendfilesys/sendfile.hCONFIG_NFILE_DESCRIPTORS > 0 && defined(CONFIG_NET_SENDFILE)ssize_tintintFAR off_t*size_t
136sendtosys/socket.hCONFIG_NSOCKET_DESCRIPTORS > 0 && defined(CONFIG_NET)ssize_tintFAR const void*size_tintFAR const struct sockaddr*socklen_t
137set_errnoerrno.h!defined(__DIRECT_ERRNO_ACCESS)voidint
138setenvstdlib.h!defined(CONFIG_DISABLE_ENVIRON)intFAR const char*FAR const char*int
139sethostnameunistd.hdefined(CONFIG_LIBC_NETDB)intFAR const char*size_t
140setsockoptsys/socket.hCONFIG_NSOCKET_DESCRIPTORS > 0 && defined(CONFIG_NET)intintintintFAR const void*socklen_t
141shmatsys/shm.hdefined(CONFIG_MM_SHM)FAR void *intFAR const void *int
142shmctlsys/shm.hdefined(CONFIG_MM_SHM)intintintFAR struct shmid_ds *
143shmdtsys/shm.hdefined(CONFIG_MM_SHM)intFAR const void *
144shmgetsys/shm.hdefined(CONFIG_MM_SHM)intkey_tsize_tint
145sigactionsignal.h!defined(CONFIG_DISABLE_SIGNALS)intintFAR const struct sigaction*FAR struct sigaction*
146sigpendingsignal.h!defined(CONFIG_DISABLE_SIGNALS)intFAR sigset_t*
147sigprocmasksignal.h!defined(CONFIG_DISABLE_SIGNALS)intintFAR const sigset_t*FAR sigset_t*
148sigqueuesignal.h!defined(CONFIG_DISABLE_SIGNALS)intintintunion sigval|FAR void *|sival_ptr
149sigsuspendsignal.h!defined(CONFIG_DISABLE_SIGNALS)intFAR const sigset_t*
150sigtimedwaitsignal.h!defined(CONFIG_DISABLE_SIGNALS)intFAR const sigset_t*FAR struct siginfo*FAR const struct timespec*
151sigwaitinfosignal.h!defined(CONFIG_DISABLE_SIGNALS)intFAR const sigset_t*FAR struct siginfo*
152socketsys/socket.hCONFIG_NSOCKET_DESCRIPTORS > 0 && defined(CONFIG_NET)intintintint
153statsys/stat.hCONFIG_NFILE_DESCRIPTORS > 0intconst char*FAR struct stat*
154statfssys/statfs.hCONFIG_NFILE_DESCRIPTORS > 0intFAR const char*FAR struct statfs*
155task_createsched.h!defined(CONFIG_BUILD_KERNEL)intFAR const char*intintmain_tFAR char * const []|FAR char * const *
156task_deletesched.hintpid_t
157task_restartsched.hintpid_t
158task_setcancelstatesched.hintintFAR int*
159task_setcanceltypesched.hdefined(CONFIG_CANCELLATION_POINTS)intintFAR int*
160task_testcancelpthread.hdefined(CONFIG_CANCELLATION_POINTS)void
161telldirdirent.hCONFIG_NFILE_DESCRIPTORS > 0off_tFAR DIR*
162timer_createtime.h!defined(CONFIG_DISABLE_POSIX_TIMERS)intclockid_tFAR struct sigevent*FAR timer_t*
163timer_deletetime.h!defined(CONFIG_DISABLE_POSIX_TIMERS)inttimer_t
164timer_getoverruntime.h!defined(CONFIG_DISABLE_POSIX_TIMERS)inttimer_t
165timer_gettimetime.h!defined(CONFIG_DISABLE_POSIX_TIMERS)inttimer_tFAR struct itimerspec*
166timer_settimetime.h!defined(CONFIG_DISABLE_POSIX_TIMERS)inttimer_tintFAR const struct itimerspec*FAR struct itimerspec*
167umount2sys/mount.hCONFIG_NFILE_DESCRIPTORS > 0 && !defined(CONFIG_DISABLE_MOUNTPOINT)intFAR const char*unsigned int
168unamesys/utsname.hintFAR struct utsname*
169unlinkunistd.hCONFIG_NFILE_DESCRIPTORS > 0 && !defined(CONFIG_DISABLE_MOUNTPOINT)intFAR const char*
170unsetenvstdlib.h!defined(CONFIG_DISABLE_ENVIRON)intconst char*
171up_assertassert.hvoidFAR const uint8_t*int
172vforkunistd.hdefined(CONFIG_ARCH_HAVE_VFORK)pid_t
173_vsyslognuttx/syslog/syslog.hintintFAR const IPTR char*FAR va_list*
174waitsys/wait.hdefined(CONFIG_SCHED_WAITPID) && defined(CONFIG_SCHED_HAVE_PARENT)pid_tint*
175waitidsys/wait.hdefined(CONFIG_SCHED_WAITPID) && defined(CONFIG_SCHED_HAVE_PARENT)intidtype_tid_t FAR siginfo_t *int
176waitpidsys/wait.hdefined(CONFIG_SCHED_WAITPID)pid_tpid_tint*int
177writeunistd.hCONFIG_NSOCKET_DESCRIPTORS > 0 || CONFIG_NFILE_DESCRIPTORS > 0ssize_tintFAR const void*size_t