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:
dongjiuzhu1
2025-04-23 13:49:43 +08:00
committed by Alan C. Assis
parent e1991fd14b
commit 778e16a555
3 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -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
View File
@@ -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