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
- Lines: 17
- Date:
Sun Mar 25 11:37:39 2001
- Orig file:
v2.2.18/include/asm-sparc/uaccess.h
- Orig date:
Sun Mar 25 11:12:41 2001
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)