mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 14:58:13 +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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user