Re: [AD] About findfirst (2) |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 16 Sep 2001, Stepan Roh <stepan@xxxxxxxxxx> wrote:
> On Sun, 16 Sep 2001, Grzegorz Adam Hankiewicz wrote:
> > :-) I've been following for some time HURD development mailing lists and the
> > biggest problem they have with porting programs is the use of fixed limits
> > in structs and such, because HURD itself doesn't impose any limit on
> > anything, so AFAIK you could have a 2387 long filename somewhere just for
> > the pleasure of crashing programs.
>
> This is the same for Linux. Quote from info glibc 'Limits for Files':
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.