4 ms·
> This constant [PATH_MAX] is defined by POSIX… Well, it’s allowed by POSIX. A POSIX compatible system doesn’t have to define it if it has no such inherent re
by teddyh 10y ago
> This constant [PATH_MAX] is defined by POSIX…
Well, it’s allowed by POSIX. A POSIX compatible system doesn’t have to define it if it has no such inherent restriction on path lengths. Indeed, the GNU Hurd does not have such a restriction, and consequently does not define it. This leads to many porting adventures for those trying to compile a program on GNU Hurd, believing their source code to be correct for any POSIX-compliant system.