getprogname / setprogname
Ulrich Drepper
drepper@redhat.com
Fri Mar 17 17:24:00 GMT 2006
H. J. Lu wrote:
> Since we are on this topic, sometimes, I want to know the real pathname
> of the program. It isn't easy to find it out.
Of course it is: readlink() on /proc/self/exe.
--
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20060317/ca5553a1/attachment.sig>
More information about the Libc-alpha
mailing list