patch-2.3.48 linux/arch/ia64/ia32/sys_ia32.c
Next file: linux/arch/ia64/kdb/kdbsupport.c
Previous file: linux/arch/ia64/ia32/ia32_entry.S
Back to the patch index
Back to the overall index
- Lines: 35
- Date:
Sat Feb 26 20:33:02 2000
- Orig file:
v2.3.47/linux/arch/ia64/ia32/sys_ia32.c
- Orig date:
Sun Feb 13 19:29:03 2000
diff -u --recursive --new-file v2.3.47/linux/arch/ia64/ia32/sys_ia32.c linux/arch/ia64/ia32/sys_ia32.c
@@ -278,7 +278,7 @@
if (!file)
return -EINVAL;
inode = file->f_dentry->d_inode;
- if (!inode->i_op || !inode->i_op->default_file_ops)
+ if (!inode->i_fop)
return -EINVAL;
if (!file->f_op->read)
return -EINVAL;
@@ -1928,6 +1928,25 @@
out:
unlock_kernel();
return err;
+}
+
+/*
+ * sys_time() can be implemented in user-level using
+ * sys_gettimeofday(). IA64 did this but i386 Linux did not
+ * so we have to implement this system call here.
+ */
+asmlinkage long sys32_time(int * tloc)
+{
+ int i;
+
+ /* SMP: This is fairly trivial. We grab CURRENT_TIME and
+ stuff it to user space. No side effects */
+ i = CURRENT_TIME;
+ if (tloc) {
+ if (put_user(i,tloc))
+ i = -EFAULT;
+ }
+ return i;
}
#ifdef NOTYET /* UNTESTED FOR IA64 FROM HERE DOWN */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)