Lines Matching defs:progpath
109 static char progpath[MAXPATHLEN+1];
398 strncpy(progpath, prog, MAXPATHLEN);
410 else if(0 == _NSGetExecutablePath(progpath, &nsexeclength) && progpath[0] == SEP)
421 strncpy(progpath, path, len);
422 *(progpath + len) = '\0';
425 strncpy(progpath, path, MAXPATHLEN);
427 joinpath(progpath, prog);
428 if (isxfile(progpath))
432 progpath[0] = '\0';
439 progpath[0] = '\0';
440 if (progpath[0] != SEP && progpath[0] != '\0')
441 absolutize(progpath);
442 strncpy(argv0_path, progpath, MAXPATHLEN);
470 strncpy(argv0_path, progpath, MAXPATHLEN);
473 /* Use the location of the library as the progpath */
482 int linklen = readlink(progpath, tmpbuffer, MAXPATHLEN);
491 /* Interpret relative to progpath */
686 return progpath;