• 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: Path from NSFileHandle?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Path from NSFileHandle?


  • Subject: Re: Path from NSFileHandle?
  • From: Michael Ash <email@hidden>
  • Date: Thu, 9 Apr 2009 11:53:43 -0400

On Thu, Apr 9, 2009 at 12:11 AM, Adam R. Maxwell <email@hidden> wrote:
> I recently noticed that you can use F_GETPATH with fcntl(2), but I've no
> idea what caveats are associated with it.  It might be easier than messing
> with inodes directly, anyway?

Good call. I had actually seen this before, but forgot what it was
called. When I couldn't find it again, I assumed I had just imagined
it....

As for the caveats, at the very least it could fail if the object in
question doesn't have a path. I have no idea about other caveats, but
it wouldn't surprise me if it could give bad results for files that
have been moved, weird filesystems that don't support this, or other
things, but I just don't know.

Mike
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Path from NSFileHandle? (From: Erg Consultant <email@hidden>)
 >Re: Path from NSFileHandle? (From: Michael Ash <email@hidden>)
 >Re: Path from NSFileHandle? (From: "Adam R. Maxwell" <email@hidden>)

  • Prev by Date: Re: Floating window on top of everything
  • Next by Date: Re: Path from NSFileHandle?
  • Previous by thread: Re: Path from NSFileHandle?
  • Next by thread: NSTextView HICocoaView performance
  • Index(es):
    • Date
    • Thread