libc: add adjtime() system call.

Implement the adjtime() system call and add a test for it to test69.
Additionally, install the adjtime.2 and clock_*.2 man pages.
This commit is contained in:
Thomas Cort
2013-04-04 15:04:54 +02:00
committed by Ben Gras
parent 516fec97d9
commit 15b3d77268
13 changed files with 136 additions and 14 deletions
+1
View File
@@ -31,6 +31,7 @@
#define svrctl_argp m2_p1
#define stime m2_l1
#define clk_id m2_i1
#define settime_now m2_i2
#define time_sec m2_l1
#define time_nsec m2_l2
#define memsize m4_l1
+2 -1
View File
@@ -76,7 +76,8 @@ int do_settime()
switch (m_in.clk_id) {
case CLOCK_REALTIME:
s= sys_settime(1, m_in.clk_id, m_in.time_sec, m_in.time_nsec);
s= sys_settime(m_in.settime_now, m_in.clk_id, m_in.time_sec,
m_in.time_nsec);
return(s);
case CLOCK_MONOTONIC: /* monotonic cannot be changed */
default: