This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

PATH_MAX and FILENAME_MAX


Doing something different, this caught my eyes:

$ grep PATH_MAX /usr/include/*.h
/usr/include/limits.h:#define PATH_MAX (260 - 1 /*NUL*/)
/usr/include/limits.h:#define _POSIX_PATH_MAX           255
/usr/include/stdio.h:#define    FILENAME_MAX    1024    /* must be <= PATH_MAX
<sys/syslimits.h> */
/usr/include/stdio.h:#define    L_tmpnam        1024    /* XXX must be ==
PATH_MAX */

So are comments misleading or FILENAME_MAX (and L_tmpnam) should be changed?

-andrej

Have a nice DOS!
B >>


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]