Lines Matching refs:pathname
37 static void testfile(const char *pathname) in testfile() argument
44 if (stat(pathname, &st) < 0 || !S_ISREG(st.st_mode)) in testfile()
46 printf("# %s\n", pathname); in testfile()
48 f = fopen(pathname, "rb"); in testfile()
69 char *pathname = NULL; in main() local
78 if (pathname == NULL) { in main()
79 pathname = malloc(PATH_MAX); in main()
80 if (pathname == NULL) in main()
82 strcpy(pathname, argv[n]); in main()
84 if (strchr(":<]", pathname[dirname_len - 1]) == NULL) in main()
86 pathname[dirname_len++] = '/'; in main()
87 pathname[dirname_len] = '\0'; in main()
89 strcpy(pathname + dirname_len, filename); in main()
90 testfile(pathname); in main()
98 free(pathname); in main()