symlinks, lstat, relative/absolute combos
symlinks, lstat, relative/absolute combos
- Subject: symlinks, lstat, relative/absolute combos
- From: Steven Abner <email@hidden>
- Date: Tue, 22 Mar 2011 09:08:44 -0400
Hi ,
I was working on Mac symlinks(unix style) and encountered things I couldn't find information on through web searches. I was thinking these are Mac specific flags and meanings, so with that intro: when you lstat() a symlink, lstat states that st_size will be the size of the pathname for the link, what does it mean when it is a link with st_size = 0, yet it does have a link? And what is the special meaning of a return when it mixes relative paths with absolute paths? Example: a return of ../..//System . Should "../../" be ignored and jump to System directory of of root? Or is "/" before "System" suppose to mean ignore me please? Currently my code just returns "//" is an error. As I read it: from here (relative path) go to parent (..), from here (/) go to parent (..) from here (/) go to (/System). Or is "//" an abbreviated "/./" , which currently seems unsupported?
Thanks for listening, and sorry if these may seem like dumb questions but the st_size one really makes coding hard, at least my current approach in my code.
Steve _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden