Mismatch between NAME_MAX and MAXNAMLEN
Tue Feb 24 18:18:00 GMT 2015
RTEMS users observe a problem with scandir() arising from difference
between NAME_MAX and MAXNAMLEN. MAXNAMLEN is defined in
libc/include/dirent.h. Our user's bug report is here .
MAXNAMLEN probably should agree with NAME_MAX according to .
We could change libc/include/dirent.h by adding:
#define MAXNAMLEN NAME_MAX
#define MAXNAMLEN 1024
Or define MAXNAMLEN in RTEMS specific limits.h or syslimits.h headers.
But probably this mismatch can affect others.
What is preferred?
More information about the Newlib