patch-2.2.19 linux/include/asm-sparc/uaccess.h

Next file: linux/include/asm-sparc/unistd.h
Previous file: linux/include/asm-sparc/siginfo.h
Back to the patch index
Back to the overall index

diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.18/include/asm-sparc/uaccess.h linux/include/asm-sparc/uaccess.h
@@ -383,16 +383,7 @@
 __sfu_res = __strncpy_from_user((unsigned long) (dest), __sfu_src, __sfu_count); \
 } __sfu_res; })
 
-extern int __strlen_user(const char *);
 extern int __strnlen_user(const char *, long len);
-
-extern __inline__ int strlen_user(const char *str)
-{
-	if(!access_ok(VERIFY_READ, str, 0))
-		return 0;
-	else
-		return __strlen_user(str);
-}
 
 extern __inline__ int strnlen_user(const char *str, long len)
 {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)