Buy GNU books!
|[ < ]||[ > ]||[ << ]||[ Up ]||[ >> ]||[Top]||[Contents]||[Index]||[ ? ]|
The path name of the executing process as required by
might not be easily obtained all the time. Not all systems pass the
entire path name of the executable file as the first argument
main. In order to obtain the full path of
the executable file,
dld_init uses the
dld_find_prognamereturns the absolute path name of the file that would be executed if command were given as a command. It looks up the environment variable PATH, searches in each of the directory listed for progname, and returns the absolute path name for the first occurrence.
Note: If the current process is executed using the
execvecall without passing the correct path name as argument 0,
dld_find_program (argv)will also fail to locate the executable file.
dld_find_executable returns zero if
command is not found
in any of the directories listed in
|webmaster donations bookstore||delorie software privacy|
|Copyright © 2003 by The Free Software Foundation||Updated Jun 2003|