patch-1.3.4 linux/fs/select.c
Next file: linux/fs/sysv/file.c
Previous file: linux/fs/readdir.c
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Mon Jun 26 11:06:53 1995
- Orig file:
v1.3.3/linux/fs/select.c
- Orig date:
Fri Jun 16 22:02:55 1995
diff -u --recursive --new-file v1.3.3/linux/fs/select.c linux/fs/select.c
@@ -227,8 +227,8 @@
i = verify_area(VERIFY_WRITE, tvp, sizeof(*tvp));
if (i)
return i;
- timeout = ROUND_UP(get_fs_long((unsigned long *)&tvp->tv_usec),(1000000/HZ));
- timeout += get_fs_long((unsigned long *)&tvp->tv_sec) * HZ;
+ timeout = ROUND_UP(get_user(&tvp->tv_usec),(1000000/HZ));
+ timeout += get_user(&tvp->tv_sec) * (unsigned long) HZ;
if (timeout)
timeout += jiffies + 1;
}
@@ -239,10 +239,10 @@
if ((long) timeout < 0)
timeout = 0;
if (tvp && !(current->personality & STICKY_TIMEOUTS)) {
- put_fs_long(timeout/HZ, (unsigned long *) &tvp->tv_sec);
+ put_user(timeout/HZ, &tvp->tv_sec);
timeout %= HZ;
timeout *= (1000000/HZ);
- put_fs_long(timeout, (unsigned long *) &tvp->tv_usec);
+ put_user(timeout, &tvp->tv_usec);
}
if (i < 0)
return i;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this