Lines Matching refs:file_name
92 static SANITIZEcode msdosify(char **const sanitized, const char *file_name,
96 const char *file_name,
132 Success: (SANITIZE_ERR_OK) *sanitized points to a sanitized copy of file_name.
135 SANITIZEcode sanitize_file_name(char **const sanitized, const char *file_name,
148 if(!file_name)
153 if(file_name[0] == '\\' && file_name[1] == '\\')
166 len = strlen(file_name);
169 truncate_dryrun(file_name, max_sanitized_len))
179 strncpy(target, file_name, len);
322 Extra sanitization MSDOS for file_name.
331 Success: (SANITIZE_ERR_OK) *sanitized points to a sanitized copy of file_name.
335 SANITIZEcode msdosify(char **const sanitized, const char *file_name,
343 const char *s = file_name;
354 if(!file_name)
357 if(strlen(file_name) > PATH_MAX-1 &&
359 truncate_dryrun(file_name, PATH_MAX-1)))
363 if(_use_lfn(file_name)) {
470 Rename file_name if it's a reserved dos device name.
479 Success: (SANITIZE_ERR_OK) *sanitized points to a sanitized copy of file_name.
483 const char *file_name,
500 if(!file_name)
506 file_name[0] == '\\' && file_name[1] == '\\') {
507 size_t len = strlen(file_name);
511 strncpy(*sanitized, file_name, len + 1);
516 if(strlen(file_name) > PATH_MAX-1 &&
518 truncate_dryrun(file_name, PATH_MAX-1)))
521 strncpy(fname, file_name, PATH_MAX-1);