"Steven Jurczyk" <[EMAIL PROTECTED]> writes:
> How fast get real / absolute path of specified file. I try use
> readlink, but this slow (for path /home/web/docs/index.htm must be
> done 4 or more (if this path have symlinks) readlink's - for /home,
> /home/web, /home/web/docs and /home/web/docs/index.htm). Is any
> faster/simpler method for getting absolute path of file?

I would use realpath(3).  What's your application where that's not fast
enough?

/assar


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to