>
>The problem with this function is that it does not give you what you expect:
>access to long path names.
>
>"/proc/self/fd/%d" is a symlink and for this reason, the whole path resolution 
>is still done as if you did call open(2) with the complete long path.

No it is not a symlink; it's a "pretend" symlink and you cannot
readlink() it; you can however, get arbitrary long paths that way.

>Note: for portable software, you cannot asume that "/proc/self/fd/%d" works at 
>all. For this reason, you need to have a fallback solution in a portable 
>source 
>anyway. I see no advantage in your code.


Clearly; but we're on opensolaris-code and portability is of lesser concern
when working around missing interfaces.

Casper

_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to