• 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
Using HFS paths in the standard C libraries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using HFS paths in the standard C libraries


  • Subject: Using HFS paths in the standard C libraries
  • From: "Ben Staveley-Taylor" <email@hidden>
  • Date: Thu, 12 Oct 2006 09:35:26 +0100
  • Thread-topic: Using HFS paths in the standard C libraries

I am porting some legacy code from CodeWarrior to XCode. The old code
was originally written in the days of Mac OS 9 and uses HFS-style paths
extensively.

Effectively, I want to arrange so that I can write:

   fopen("DiskName:FolderName:FileName.txt")

instead of:

  fopen("/Volumes/DiskName/FolderName/FileName.txt")

With CodeWarrior it was possible to do this even in Mach-O targets
because you could build your own copy of the MSL C library from the
sources they provided and a configuration define (#define
_MSL_CARBON_FILE_APIS 1, to be specific) would modify the library to use
HFS-style paths instead of the default POSIX style paths.

Is it possible to do the same trick with Xcode somehow?

Thanks

Ben.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Using HFS paths in the standard C libraries
      • From: Steve Christensen <email@hidden>
    • Re: Using HFS paths in the standard C libraries
      • From: "Sean McBride" <email@hidden>
    • Re: Using HFS paths in the standard C libraries
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: Authentication of SCM with Remote Repository (BUG #4774505)
  • Next by Date: Proper way to cast function pointers.
  • Previous by thread: Custom Build Rules
  • Next by thread: Re: Using HFS paths in the standard C libraries
  • Index(es):
    • Date
    • Thread