Re: How to deal with long pathnames in Cocoa ?
Re: How to deal with long pathnames in Cocoa ?
- Subject: Re: How to deal with long pathnames in Cocoa ?
- From: Chris Hanson <email@hidden>
- Date: Wed, 16 Jan 2002 14:27:33 -0600
At 10:17 AM -0500 1/16/02, Lance Bland wrote:
Look at the file /usr/include/sys/syslimits.h
and this line:
#define PATH_MAX 1024 /* max bytes in pathname */
and you will understand.
What's to understand about this? That somebody in the 1970s didn't
think we'd ever need paths beyond a certain depth? Why is there a
limit at all -- did someone just not know about dynamic memory
allocation?
It's the year 2002. PATH_MAX should be ULONG_MAX. LONG_MAX would be
an acceptable compromise. But having any limit lower than LONG_MAX
is completely unacceptable in this day and age.
-- Chris
--
Chris Hanson | Email: email@hidden
bDistributed.com, Inc. | Phone: +1-847-372-3955
Making Business Distributed | Fax: +1-847-589-3738
http://bdistributed.com/ | Personal Email: email@hidden