1 ?MAKE:d_procselfexe procselfexe: \
2 Oldconfig Setvar rm ls contains issymlink d_readlink
5 ?S: Defined if $procselfexe is symlink to the absolute
6 ?S: pathname of the executing program.
9 ?S: If d_procselfexe is defined, $procselfexe is the filename
10 ?S: of the symbolic link pointing to the absolute pathname of
11 ?S: the executing program.
14 ?C: This symbol is defined if PROCSELFEXE_PATH is a symlink
15 ?C: to the absolute pathname of the executing program.
18 ?C: If HAS_PROCSELFEXE is defined this symbol is the filename
19 ?C: of the symbolic link pointing to the absolute pathname of
20 ?C: the executing program.
22 ?H:#$d_procselfexe HAS_PROCSELFEXE /**/
23 ?H:?%<:#if defined(HAS_PROCSELFEXE) && !defined(PROCSELFEXE_PATH)
24 ?H:?%<:#define PROCSELFEXE_PATH $procselfexe /**/
27 ?LINT: set d_procselfexe
28 ?LINT: set procselfexe
34 if $issymlink /proc/self/exe ; then
35 $ls -l /proc/self/exe > reflect
36 if $contains /`basename $ls` reflect >/dev/null 2>&1; then
37 echo "You have Linux-like /proc/self/exe."
38 procselfexe='"/proc/self/exe"'
43 if $issymlink /proc/curproc/file ; then
44 $ls -l /proc/curproc/file > reflect
45 if $contains /`basename $ls` reflect >/dev/null 2>&1; then
46 echo "You have BSD-like /proc/curproc/file."
47 procselfexe='"/proc/curproc/file"'