site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com On Apr 11, 2005, at 5:58, Hervé Kergourlay wrote: but how to get information on the FS of the link itself ?? 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... on a symbolic link, statfs return information on the FS of the target of the link 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. This email sent to site_archiver@lists.apple.com