Lines Matching refs:path2
68 char *name, *path2; in scan_tree() local
86 path2 = malloc(strlen(path) + strlen(name) + 3); in scan_tree()
87 strcpy(path2, path); in scan_tree()
88 strcat(path2, "/"); in scan_tree()
89 strcat(path2, name); in scan_tree()
92 rc = map_mem(path2, offset, length, touch); in scan_tree()
94 …fprintf(stderr, "PASS: %s 0x%lx-0x%lx is %s\n", path2, offset, offset + length, touch ? "readable"… in scan_tree()
96 fprintf(stderr, "PASS: %s 0x%lx-0x%lx not mappable\n", path2, offset, offset + length); in scan_tree()
98 fprintf(stderr, "FAIL: %s 0x%lx-0x%lx not accessible\n", path2, offset, offset + length); in scan_tree()
102 r = lstat(path2, &buf); in scan_tree()
104 rc = scan_tree(path2, file, offset, length, touch); in scan_tree()
111 free(path2); in scan_tree()
153 char *name, *path2; in scan_rom() local
171 path2 = malloc(strlen(path) + strlen(name) + 3); in scan_rom()
172 strcpy(path2, path); in scan_rom()
173 strcat(path2, "/"); in scan_rom()
174 strcat(path2, name); in scan_rom()
177 rc = read_rom(path2); in scan_rom()
185 fprintf(stderr, "PASS: %s read %d bytes\n", path2, rc); in scan_rom()
187 fprintf(stderr, "PASS: %s not readable\n", path2); in scan_rom()
191 r = lstat(path2, &buf); in scan_rom()
193 rc = scan_rom(path2, file); in scan_rom()
200 free(path2); in scan_rom()