> > FL/filename.H
> >  #  define FL_PATH_MAX 256 /**< all path buffers should use this length */
>
>       Yikes, I have lots of customers who regularly have pathnames
>       a /lot/ longer than 256 chars.
>
>       I think windows has some small limit for local file systems of 255,
>       but the \\?\UNC\ pathnames (which include Unicode) can be up to 32767.
>       Source:
>       http://msdn.microsoft.com/en-us/library/aa365247.aspx#maxpath
>
>       For linux, the numbers are more like 4096:
>
> # grep PATH_MAX /usr/include/linux/limits.h
> /usr/include/linux/limits.h:#define PATH_MAX        4096      /* # chars in a 
> path name including nul */
>
> # echo '#include <unistd.h>\n#include <stdio.h>\nint main() { printf("pathmax 
> is %ld\\n", pathconf("/usr/tmp", _PC_PATH_MAX)); }' > foo.c
>
> # gcc foo.c -o foo && ./foo
> pathmax is 4096
>
>       Should our max be larger?

I believe that for Unix and Mac OS X at least, FL_PATH_MAX should
set equal to PATH_MAX.

_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to