3 ms·
This post got me curious, so I did a quick search on macOS 10.12. I found the values defined in "/System/Library/Frameworks/Kernel.framework/Headers/sys/syslimi
by TheAceOfHearts 10y ago
This post got me curious, so I did a quick search on macOS 10.12. I found the values defined in "/System/Library/Frameworks/Kernel.framework/Headers/sys/syslimits.h". PATH_MAX is 1024, and NAME_MAX is 255.
There's also an amusing todo question that looks like it might've been there for at least close to 20 years now:
#define OPEN_MAX 10240 /* max open files per process - todo, make a config option? */