Lines Matching refs:pathname
46 char *pathname;
81 * Allocate a full pathname buffer. The sum of the lengths of the
85 if ((pathname = malloc(len)) == NULL) {
94 (void) strcpy(pathname, execname);
95 if ((str = strrchr(pathname, '/')) != NULL) {
97 fname = execname + (str - pathname);
100 *pathname = '\0';
102 len = strlen(pathname);
113 (void) strcpy(pathname + len, str);
114 (void) strcat(pathname + len, "/");
115 (void) strcat(pathname + len, fname);
116 if ((fd = open(pathname, O_EXEC)) >= 0) {
144 free(pathname);