Lines Matching refs:file
58 # define pathconf(file, flag) \ argument
161 no_leading_hyphen (char const *file) in no_leading_hyphen() argument
165 for (p = file; (p = strchr (p, '-')); p++) in no_leading_hyphen()
166 if (p == file || p[-1] == '/') in no_leading_hyphen()
169 quoteaf (file)); in no_leading_hyphen()
180 portable_chars_only (char const *file, size_t filelen) in portable_chars_only() argument
182 size_t validlen = strspn (file, in portable_chars_only()
187 char const *invalid = file + validlen; in portable_chars_only()
197 quoteaf_n (0, file)); in portable_chars_only()
248 validate_file_name (char *file, bool check_basic_portability, in validate_file_name() argument
251 idx_t filelen = strlen (file); in validate_file_name()
262 if (check_extra_portability && ! no_leading_hyphen (file)) in validate_file_name()
278 if (! portable_chars_only (file, filelen)) in validate_file_name()
289 if (lstat (file, &st) == 0) in validate_file_name()
293 error (0, errno, "%s", quotef (file)); in validate_file_name()
308 char const *dir = (*file == '/' ? "/" : "."); in validate_file_name()
324 maxsize - 1, filelen, quoteaf (file)); in validate_file_name()
337 for (start = file; *(start = component_start (start)); ) in validate_file_name()
362 for (start = file; *(start = component_start (start)); ) in validate_file_name()
371 char const *dir = (start == file ? "." : file); in validate_file_name()