Like many things, PATH_MAX varies from system to system. Since I happen to have access to lots of different OS's here at Splunk, I thought I'd make a quick catalog of them so I don't have to keep looking it up.
- Mac/FreeBSD
- /usr/include/sys/syslimits.h
- Linux (Debian/Fedora Core)
- /usr/include/linux/limits.h
- Solaris
- /usr/include/limits.h
I am, however, appropriately chagrined after reading this diatribe and will be patching my code to remove all traces of PATH_MAX in short order!
Technorati Tags: Programming, Unix
Comments