include/sys/time.h, libs/libc/unistd, sched/timer: Implement alarm(), setitimer() and getitimer() APIs.

This commit is contained in:
liuhaitao
2019-11-13 08:00:45 -06:00
committed by Gregory Nutt
parent 14fcacaf27
commit 9b75ef06ea
13 changed files with 497 additions and 8 deletions
+2
View File
@@ -33,6 +33,7 @@
"get_errno_ptr","errno.h","defined(__DIRECT_ERRNO_ACCESS)","FAR int*"
"getenv","stdlib.h","!defined(CONFIG_DISABLE_ENVIRON)","FAR char*","FAR const char*"
"getgid","unistd.h","defined(CONFIG_SCHED_USER_IDENTITY)","gid_t"
"getitimer","sys/time.h","!defined(CONFIG_DISABLE_POSIX_TIMERS)","int","int","FAR struct itimerval*"
"getpeername","sys/socket.h","defined(CONFIG_NET)","int","int","FAR struct sockaddr *","FAR socklen_t *"
"getpid","unistd.h","","pid_t"
"getrandom","sys/random.h","defined(CONFIG_CRYPTO_RANDOM_POOL)","void","FAR void*","size_t"
@@ -146,6 +147,7 @@
"setenv","stdlib.h","!defined(CONFIG_DISABLE_ENVIRON)","int","FAR const char*","FAR const char*","int"
"setgid","unistd.h","defined(CONFIG_SCHED_USER_IDENTITY)","int","gid_t"
"sethostname","unistd.h","defined(CONFIG_LIBC_NETDB)","int","FAR const char*","size_t"
"setitimer","sys/time.h","!defined(CONFIG_DISABLE_POSIX_TIMERS)","int","int","FAR const struct itimerval*","FAR struct itimerval*"
"setsockopt","sys/socket.h","defined(CONFIG_NET)","int","int","int","int","FAR const void*","socklen_t"
"setuid","unistd.h","defined(CONFIG_SCHED_USER_IDENTITY)","int","uid_t"
"shmat", "sys/shm.h", "defined(CONFIG_MM_SHM)", "FAR void *", "int", "FAR const void *", "int"
1 _exit unistd.h void int
33 get_errno_ptr errno.h defined(__DIRECT_ERRNO_ACCESS) FAR int*
34 getenv stdlib.h !defined(CONFIG_DISABLE_ENVIRON) FAR char* FAR const char*
35 getgid unistd.h defined(CONFIG_SCHED_USER_IDENTITY) gid_t
36 getitimer sys/time.h !defined(CONFIG_DISABLE_POSIX_TIMERS) int int
37 getpeername sys/socket.h defined(CONFIG_NET) int int
38 getpid unistd.h pid_t
39 getrandom sys/random.h defined(CONFIG_CRYPTO_RANDOM_POOL) void FAR void*
147 setenv stdlib.h !defined(CONFIG_DISABLE_ENVIRON) int FAR const char*
148 setgid unistd.h defined(CONFIG_SCHED_USER_IDENTITY) int gid_t
149 sethostname unistd.h defined(CONFIG_LIBC_NETDB) int FAR const char*
150 setitimer sys/time.h !defined(CONFIG_DISABLE_POSIX_TIMERS) int int
151 setsockopt sys/socket.h defined(CONFIG_NET) int int
152 setuid unistd.h defined(CONFIG_SCHED_USER_IDENTITY) int uid_t
153 shmat sys/shm.h defined(CONFIG_MM_SHM) FAR void * int