Skip site navigation (1)Skip section navigation (2)
Date:      12 Aug 1999 16:03:27 +0200
From:      Assar Westerlund <assar@sics.se>
To:        "Steven Jurczyk" <steve@home.pl>
Cc:        <freebsd-hackers@FreeBSD.ORG>
Subject:   Re: how fast get real/absolute path of file
Message-ID:  <5lpv0tt7tc.fsf@assaris.sics.se>
In-Reply-To: "Steven Jurczyk"'s message of "Wed, 11 Aug 1999 12:16:07 %2B0200"
References:  <017f01bee3e2$86c62840$02e6cdc3@haven.home.net.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
"Steven Jurczyk" <steve@home.pl> 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 majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5lpv0tt7tc.fsf>