Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jul 2004 22:47:47 -0400
From:      Joe Marcus Clarke <marcus@marcuscom.com>
To:        hackers@freebsd.org
Subject:   Getting a fully-qualified path from a PID
Message-ID:  <1090378066.90026.105.camel@shumai.marcuscom.com>

next in thread | raw e-mail | index | archive | help

--=-fHBrVFSMzkSdd9YbK1eN
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

What is the canonical way for a userland application to get the
fully-qualified path of an executable from its running PID?  I know I
can do a readlink(2) on /proc/pid/file, but procfs is deprecated on 5.X,
correct?  Is there a more appropriate way to do this?  Thanks.

Joe

--=20
PGP Key : http://www.marcuscom.com/pgp.asc

--=-fHBrVFSMzkSdd9YbK1eN
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQBA/dlSb2iPiv4Uz4cRAoHlAJ4/E3z6LJnf0fWUR5HzA65nZ06OGACfS5H7
uZKxyebTgXDrF14bp/ObULw=
=lxbT
-----END PGP SIGNATURE-----

--=-fHBrVFSMzkSdd9YbK1eN--



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