• 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: 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


  • Follow-Ups:
    • Re: How to deal with long pathnames in Cocoa ?
      • From: Lance Bland <email@hidden>
References: 
 >Re: How to deal with long pathnames in Cocoa ? (From: Lance Bland <email@hidden>)

  • Prev by Date: Re: dealing with different types of strings
  • Next by Date: Re: dealing with different types of strings
  • 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