tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: MAXPATHLEN vs PATH_MAX



On Sat, May 27, 2023 at 09:10:34AM +0200, tlaronde%polynum.com@localhost wrote:
 > Shouldn't be MAXPATHLEN be defined as PATH_MAX - 1?

No. They're the same. The existence of some old code where somebody
didn't read the definition carefully (or that predates a clear
definition) doesn't change that. Not sure why you think it should...

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index