Re: [AD] About findfirst (2)

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]



On Mon, 17 Sep 2001, Peter Wang wrote:

> On 16 Sep 2001, Stepan Roh <stepan@xxxxxxxxxx> wrote:
> Are you sure?  In linux/limits.h, I see:
>
> #define NAME_MAX         255    /* # chars in a file name */
> #define PATH_MAX        4095    /* # chars in a path name */
>
> I hope I haven't been doing things wrong all this time.
> Although no limits is great, it's such a pain in C.

I looked into the kernel source: NAME_MAX is just informative on VFS
level, but every filesystem I looked on has this (or smaller) limit,
PATH_MAX limits length of filename when copied from user data space to
kernel data space. So, sadly, there are limits independent on used
filesystem.

Have a nice day.

Stepan Roh



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/