• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to deal with long pathnames in Cocoa ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: How to deal with long pathnames in Cocoa ? (From: Chris Hanson <email@hidden>)

  • Prev by Date: Question about receiving 'odoc' events on launch
  • Next by Date: Re: Grabbing keystrokes in background app FYI
  • Previous by thread: Re: How to deal with long pathnames in Cocoa ?
  • Next by thread: Re: How to deal with long pathnames in Cocoa ?
  • Index(es):
    • Date
    • Thread