mirror of
https://github.com/apache/nuttx.git
synced 2026-05-19 03:03:37 +08:00
syscall/adjtime: fix minior issue about adjtime and add clock_adjtime to syscall
add new syscall clock_adjtime Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
committed by
Alan C. Assis
parent
e1991fd14b
commit
778e16a555
@@ -170,7 +170,8 @@ SYSCALL_LOOKUP(clock_nanosleep, 4)
|
||||
SYSCALL_LOOKUP(clock, 0)
|
||||
SYSCALL_LOOKUP(clock_gettime, 2)
|
||||
SYSCALL_LOOKUP(clock_settime, 2)
|
||||
#ifdef CONFIG_CLOCK_TIMEKEEPING
|
||||
#ifdef CONFIG_CLOCK_ADJTIME
|
||||
SYSCALL_LOOKUP(clock_adjtime, 2)
|
||||
SYSCALL_LOOKUP(adjtime, 2)
|
||||
#endif
|
||||
|
||||
|
||||
+1
-1
@@ -253,7 +253,7 @@ int settimeofday(FAR const struct timeval *tv,
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#if defined(CONFIG_CLOCK_TIMEKEEPING) || defined(CONFIG_CLOCK_ADJTIME)
|
||||
#ifdef CONFIG_CLOCK_ADJTIME
|
||||
int adjtime(FAR const struct timeval *delta, FAR struct timeval *olddelta);
|
||||
#endif
|
||||
|
||||
|
||||
+2
-1
@@ -1,7 +1,7 @@
|
||||
"_assert","assert.h","","void","FAR const char *","int","FAR const char *","FAR void *"
|
||||
"_exit","unistd.h","","noreturn","int"
|
||||
"accept4","sys/socket.h","defined(CONFIG_NET)","int","int","FAR struct sockaddr *","FAR socklen_t *","int"
|
||||
"adjtime","sys/time.h","defined(CONFIG_CLOCK_TIMEKEEPING)","int","FAR const struct timeval *","FAR struct timeval *"
|
||||
"adjtime","sys/time.h","defined(CONFIG_CLOCK_ADJTIME)","int","FAR const struct timeval *","FAR struct timeval *"
|
||||
"aio_cancel","aio.h","defined(CONFIG_FS_AIO)","int","int","FAR struct aiocb *"
|
||||
"aio_fsync","aio.h","defined(CONFIG_FS_AIO)","int","int","FAR struct aiocb *"
|
||||
"aio_read","aio.h","defined(CONFIG_FS_AIO)","int","FAR struct aiocb *"
|
||||
@@ -12,6 +12,7 @@
|
||||
"chown","unistd.h","","int","FAR const char *","uid_t","gid_t"
|
||||
"clearenv","stdlib.h","!defined(CONFIG_DISABLE_ENVIRON)","int"
|
||||
"clock","time.h","","clock_t"
|
||||
"clock_adjtime","sys/timex.h","defined(CONFIG_CLOCK_ADJTIME)","int","clockid_t","struct timex *"
|
||||
"clock_gettime","time.h","","int","clockid_t","FAR struct timespec *"
|
||||
"clock_nanosleep","time.h","","int","clockid_t","int","FAR const struct timespec *", "FAR struct timespec *"
|
||||
"clock_settime","time.h","","int","clockid_t","const struct timespec*"
|
||||
|
||||
|
Reference in New Issue
Block a user