Lines Matching refs:pathname
50 char *pathname;
84 * Allocate a full pathname buffer. The sum of the lengths of the
88 if ((pathname = malloc(len)) == NULL) {
97 (void) strcpy(pathname, execname);
98 if ((str = strrchr(pathname, '/')) != NULL) {
100 fname = execname + (str - pathname);
103 *pathname = '\0';
105 len = strlen(pathname);
116 (void) strcpy(pathname + len, str);
117 (void) strcat(pathname + len, "/");
118 (void) strcat(pathname + len, fname);
119 if (access(pathname, X_OK) == 0) {
125 (void) execve(pathname, argv, envp);
141 free(pathname);