Is a POSIX_NAME_MAX value of only 14 as expected in Mac OS?

126 Views Asked by At

I'm working on a filename convention, and I'm using the POSIX Portable File Name Character Set (e.g. here) as a starting point. I thought I'd run a quick check using 'pathchk -p' (I'm on macOS 11.3, Big Sur) to see how things stand to begin with and I was surprised to find a whole bunch of my files failed the check.

In almost all cases, the reason given was that the length of one or more of the filename components exceeded what's specified in POSIX_NAME_MAX. However, the error message said that limit was only 14 characters, which struck me as very short. I'd have expected at least 255. But, sure enough, 'getconf' confirmed that POSIX_NAME_MAX is indeed 14.

Is a value of 14 really to be expected for POSIX_NAME_MAX?

0

There are 0 best solutions below