]> Zhao Yanbai Git Server - minix.git/commitdiff
Added sys_stime.c, T_CHILD_UTIME and T_CHILD_STIME are gone, should
authorPhilip Homburg <philip@cs.vu.nl>
Tue, 7 Aug 2007 12:04:29 +0000 (12:04 +0000)
committerPhilip Homburg <philip@cs.vu.nl>
Tue, 7 Aug 2007 12:04:29 +0000 (12:04 +0000)
change interface of sys_times.

lib/syslib/Makefile.in
lib/syslib/sys_stime.c [new file with mode: 0755]
lib/syslib/sys_times.c

index ad051f1a84873b3f7283eaa5539d8a487e4629b5..2a33f6e660e0d7c35e0b4bf962bb5224aaaf7cee 100644 (file)
@@ -56,6 +56,7 @@ libsys_FILES=" \
        sys_privctl.c \
        sys_setgrant.c \
        sys_sprof.c \
+       sys_stime.c \
        sys_times.c \
        sys_trace.c \
        sys_umap.c \
diff --git a/lib/syslib/sys_stime.c b/lib/syslib/sys_stime.c
new file mode 100755 (executable)
index 0000000..9a9cffe
--- /dev/null
@@ -0,0 +1,12 @@
+#include "syslib.h"
+
+PUBLIC int sys_stime(boottime)
+time_t boottime;               /* New boottime */
+{
+  message m;
+  int r;
+
+  m.T_BOOTTIME = boottime;
+  r = _taskcall(SYSTASK, SYS_STIME, &m);
+  return(r);
+}
index 5b5a7526a1af5ffffae10ef60997b5b9a8992193..f6b84a7ff7759bc9913e8203cecef4b6e6d87b5b 100755 (executable)
@@ -12,8 +12,8 @@ clock_t ptr[5];                       /* pointer to time buffer */
   r = _taskcall(SYSTASK, SYS_TIMES, &m);
   ptr[0] = m.T_USER_TIME;
   ptr[1] = m.T_SYSTEM_TIME;
-  ptr[2] = m.T_CHILD_UTIME;
-  ptr[3] = m.T_CHILD_STIME;
+  ptr[2] = 0;
+  ptr[3] = 0;
   ptr[4] = m.T_BOOT_TICKS;
   return(r);
 }