patch-2.1.4 linux/kernel/itimer.c
Next file: linux/kernel/ksyms.c
Previous file: linux/kernel/info.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Sun Oct 13 21:11:25 1996
- Orig file:
v2.1.3/linux/kernel/itimer.c
- Orig date:
Sun Sep 22 10:27:23 1996
diff -u --recursive --new-file v2.1.3/linux/kernel/itimer.c linux/kernel/itimer.c
@@ -91,7 +91,7 @@
error = verify_area(VERIFY_WRITE, value, sizeof(struct itimerval));
if (error)
return error;
- memcpy_tofs(value, &get_buffer, sizeof(get_buffer));
+ copy_to_user(value, &get_buffer, sizeof(get_buffer));
return 0;
}
@@ -162,7 +162,7 @@
error = verify_area(VERIFY_READ, value, sizeof(*value));
if (error)
return error;
- memcpy_fromfs(&set_buffer, value, sizeof(set_buffer));
+ copy_from_user(&set_buffer, value, sizeof(set_buffer));
} else
memset((char *) &set_buffer, 0, sizeof(set_buffer));
@@ -176,6 +176,6 @@
if (error || !ovalue)
return error;
- memcpy_tofs(ovalue, &get_buffer, sizeof(get_buffer));
+ copy_to_user(ovalue, &get_buffer, sizeof(get_buffer));
return error;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov