patch-2.4.23 linux-2.4.23/arch/x86_64/kernel/sys_x86_64.c
Next file: linux-2.4.23/arch/x86_64/kernel/traps.c
Previous file: linux-2.4.23/arch/x86_64/kernel/suspend.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
2003-11-28 10:26:19.000000000 -0800
- Orig file:
linux-2.4.22/arch/x86_64/kernel/sys_x86_64.c
- Orig date:
2003-06-13 07:51:32.000000000 -0700
diff -urN linux-2.4.22/arch/x86_64/kernel/sys_x86_64.c linux-2.4.23/arch/x86_64/kernel/sys_x86_64.c
@@ -128,3 +128,17 @@
unsigned long raddr;
return sys_shmat(shmid,shmaddr,shmflg,&raddr) ?: raddr;
}
+
+asmlinkage long sys_time64(long * tloc)
+{
+ struct timeval now;
+ int i;
+
+ do_gettimeofday(&now);
+ i = now.tv_sec;
+ if (tloc) {
+ if (put_user(i,tloc))
+ i = -EFAULT;
+ }
+ return i;
+}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)