Update of /cvsroot/linux-vax/kernel-2.4/include/asm-vax
In directory usw-pr-cvs1:/tmp/cvs-serv25968
Modified Files:
uaccess.h
Log Message:
define strlen_user to strnlen_user with fixed n value..
got this from ARM .. not sure if applicable to VAX.. will use for now..
Index: uaccess.h
===================================================================
RCS file: /cvsroot/linux-vax/kernel-2.4/include/asm-vax/uaccess.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- uaccess.h 2001/02/05 00:09:31 1.2
+++ uaccess.h 2001/03/11 23:51:59 1.3
@@ -261,12 +261,7 @@
*
* Return 0 for error
*/
-extern long __strlen_user(const char *);
-
-extern inline long strlen_user(const char *str)
-{
- return access_ok(VERIFY_READ,str,0) ? __strlen_user(str) : 0;
-}
+#define strlen_user(s) strnlen_user(s, ~0UL >> 1)
/* Returns: 0 if exception before NUL or reaching the supplied limit (N),
* a value greater than N if the limit would be exceeded, else strlen. */
|