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: Lance Bland <email@hidden>
- Date: Wed, 16 Jan 2002 16:18:28 -0500
All I'm pointing out is that 1024 comes up a lot with UFS file paths. I
said "you will understand" I didn't say it will solve your problem, that
it was the bug, it was reasonable, or whatever. Don't shoot the
messenger :-))
-lance
On Wednesday, January 16, 2002, at 03:27 PM, Chris Hanson wrote:
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.
_______________________________________________
Lance Bland
System Administrator at VVI
mailto:email@hidden
http://www.vvi.com
Realtime, bulk and web data reporting and visualization