• 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: statfs on link
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: statfs on link


  • Subject: Re: statfs on link
  • From: Justin Walker <email@hidden>
  • Date: Mon, 11 Apr 2005 11:12:26 -0700


On Apr 11, 2005, at 5:58, Hervé Kergourlay wrote:

on a symbolic link, statfs return information on the FS of the target of the link

but how to get information on the FS of the link itself ??

I need something as "lstat" for the "stat" API

An off-the-top-of-my-still-in-a-coma head solution (AFAIK, there is no direct one) is:


stat/lstat the name you want to check with statfs;
if it is not a symbolic link, statfs it;
if it is a symbolic link, statfs the name with the last component stripped


(e.g., if /path/to/sym/link lstats as a sym link, then statfs /path/to/sym). This is roughly how lstat() works.

Regards,

Justin

--
Justin C. Walker, Curmudgeon at Large
Institute for General Semantics
-----------
My wife 'n kids 'n dog are gone,
I can't get Jesus on the phone,
But Ol' Milwaukee's Best is my best friend.
-----------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >statfs on link (From: HervĂ© Kergourlay <email@hidden>)

  • Prev by Date: Re: String Compare
  • Next by Date: Interface filtering
  • Previous by thread: statfs on link
  • Next by thread: Interface filtering
  • Index(es):
    • Date
    • Thread