Lines Matching full:pathname
512 char pathname[MAXPATHLEN];
518 if (strlen(filename) > sizeof pathname - 1) {
523 strcpy(pathname, filename);
532 strcpy(pathname, filename);
546 if (!getcwd(pathname, MAXPATHLEN))
548 len = strlen(pathname);
550 else if (n > sizeof pathname - 1)
553 strncpy(pathname, path, n);
556 if (len && pathname[len - 1] != '/')
557 pathname[len++] = '/';
558 strcpy(pathname + len, filename);
559 if (stat(pathname, &statbuf) == 0 &&
568 if (stat(pathname, &statbuf) < 0) {
670 execv(pathname, argv);