Possible typo in linux/limits.h, max path length

From: david . balazic
Date: Fri Jun 10 2005 - 05:10:08 EST


(resending, sorry if the first try also comes in)
Hi!

In linux-2.6.11/include/linux/limits.h , I see :

#define NAME_MAX 255 /* # chars in a file name */
#define PATH_MAX 4096 /* # chars in a path name including nul */

Is it really "chars" or actually "bytes" ?

AFAIK, the kernel does not care about the meaning of the data,
so it does not (need to) know how many chars it represents.


BTW, isn't 4096 a bit low ? WiXXXXX supports 32000 ;-)
(OK, it isn't low, but some apps and/or APIs enforce a lower
limit, like 1024, right ?)


Best regards,
David Balazic
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/