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

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)