Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

HFS alias resolution



Is there a clean way to detect and follow(or not) aliases in C? I've noticed stat and lstat appear to return a regular file with 0 st_size with > 0 st_blocks, but with a unique inode. I have not been able to find any other system functions that would return this information. I tried the FileManager "fileAttributesAtPath: traverseLink:" method, but this appears to return the same information as stat/lstat, and I would prefer to stay with as much standard UNIX C file I/O as possible. I've also been unable to find clear documentation on specifics of how aliases are implemented other than overviews such as "aliases have a similar purpose, but are different from symbolic links..." I'm sure there are hundreds of developers out there that have had to figure this out already.

Thanks,
Dave
_______________________________________________
unix-porting mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/unix-porting
Do not post admin requests to the list. They will be ignored.





Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.