Lines Matching refs:argv0_path
246 search_for_prefix(char *argv0_path, char *home) in search_for_prefix() argument
264 strcpy(prefix, argv0_path); in search_for_prefix()
269 strcpy(prefix, argv0_path); in search_for_prefix()
278 copy_absolute(prefix, argv0_path); in search_for_prefix()
305 search_for_exec_prefix(char *argv0_path, char *home) in search_for_exec_prefix() argument
325 strcpy(exec_prefix, argv0_path); in search_for_exec_prefix()
337 strcpy(exec_prefix, argv0_path); in search_for_exec_prefix()
344 copy_absolute(exec_prefix, argv0_path); in search_for_exec_prefix()
379 char argv0_path[MAXPATHLEN+1]; in calculate_path() local
447 strncpy(argv0_path, progpath, MAXPATHLEN); in calculate_path()
448 argv0_path[MAXPATHLEN] = '\0'; in calculate_path()
468 strncpy(argv0_path, buf, MAXPATHLEN); in calculate_path()
469 reduce(argv0_path); in calculate_path()
470 joinpath(argv0_path, lib_python); in calculate_path()
471 joinpath(argv0_path, LANDMARK); in calculate_path()
472 if (!ismodule(argv0_path)) { in calculate_path()
475 strncpy(argv0_path, progpath, MAXPATHLEN); in calculate_path()
479 strncpy(argv0_path, buf, MAXPATHLEN); in calculate_path()
494 strncpy(argv0_path, tmpbuffer, MAXPATHLEN); in calculate_path()
497 reduce(argv0_path); in calculate_path()
498 joinpath(argv0_path, tmpbuffer); in calculate_path()
500 linklen = readlink(argv0_path, tmpbuffer, MAXPATHLEN); in calculate_path()
505 reduce(argv0_path); in calculate_path()
510 if (!(pfound = search_for_prefix(argv0_path, home))) { in calculate_path()
533 if (!(efound = search_for_exec_prefix(argv0_path, home))) { in calculate_path()