On Nov 22, 2015, at 4:55 AM, Nikolay Sivov bunglehead@gmail.com wrote:
- mountmgr.sys/diskarb.c and dbghelp/macho_module.c are macos-only,
so maybe it's okay too if PATH_MAX defined specifically for macos. Ken, could you please comment?
I'm not completely clear on what the problem being addressed is. Those two uses are, indeed, in Mac-only code so I don't think there's any cross-platform compatibility issue. If the concern is the size, it should be adequate for most purposes. It's defined to be 1024 in <sys/limits.h>. Certainly, it's larger than MAX_PATH (260).
Regards, Ken