diff --git a/include/sys/syscall_lookup.h b/include/sys/syscall_lookup.h index 63bfb57b1cd..dd42e41b795 100644 --- a/include/sys/syscall_lookup.h +++ b/include/sys/syscall_lookup.h @@ -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 diff --git a/include/sys/time.h b/include/sys/time.h index 794293dc43c..4c09536072c 100644 --- a/include/sys/time.h +++ b/include/sys/time.h @@ -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 diff --git a/syscall/syscall.csv b/syscall/syscall.csv index 2e3444c1322..3fe9675905d 100644 --- a/syscall/syscall.csv +++ b/syscall/syscall.csv @@ -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*"