patch-2.2.8 linux/include/asm-m68k/uaccess.h
Next file: linux/include/asm-ppc/adb.h
Previous file: linux/include/asm-m68k/system.h
Back to the patch index
Back to the overall index
-  Lines: 11
-  Date:
Tue May 11 09:57:14 1999
-  Orig file: 
v2.2.7/linux/include/asm-m68k/uaccess.h
-  Orig date: 
Thu Jan  7 15:11:40 1999
diff -u --recursive --new-file v2.2.7/linux/include/asm-m68k/uaccess.h linux/include/asm-m68k/uaccess.h
@@ -759,6 +759,10 @@
 #define __copy_from_user(to, from, n) copy_from_user(to, from, n)
 #define __copy_to_user(to, from, n) copy_to_user(to, from, n)
 
+#define copy_to_user_ret(to,from,n,retval) ({ if (copy_to_user(to,from,n)) return retval; })
+
+#define copy_from_user_ret(to,from,n,retval) ({ if (copy_from_user(to,from,n)) return retval; })
+
 /*
  * Copy a null terminated string from userspace.
  */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)