while looking at this, I didn't know what PATH_MAX was, so I googled it and found
http://www.gnu.org/software/libc/manual/html_mono/libc.html#Limits-for-Files which says: ... is defined in limits.h only if the system has a fixed, uniform limit for the parameter in question. If the system allows different file systems or files to have different limits, then the macro is undefined; use pathconf or fpathconf to find out the limit that applies to a particular file This blog entry http://stackoverflow.com/questions/9449241/where-is-path-max-defined-in-linux has a link also to "flaws" in PATH_MAX that points to : http://insanecoding.blogspot.com/2007/11/pathmax-simply-isnt.html which is an entertaining read (the headline is "Insane Coding" / "PATH_MAX simply isn't" -Marshall
