Lines Matching refs:file_name
70 static SANITIZEcode msdosify(char **const sanitized, const char *file_name,
74 const char *file_name,
103 SANITIZEcode sanitize_file_name(char **const sanitized, const char *file_name, in sanitize_file_name() argument
116 if(!file_name) in sanitize_file_name()
121 if(file_name[0] == '\\' && file_name[1] == '\\') in sanitize_file_name()
134 len = strlen(file_name); in sanitize_file_name()
138 target = strdup(file_name); in sanitize_file_name()
294 SANITIZEcode msdosify(char **const sanitized, const char *file_name, in msdosify() argument
302 const char *s = file_name; in msdosify()
313 if(!file_name) in msdosify()
316 if(strlen(file_name) > PATH_MAX-1) in msdosify()
320 if(_use_lfn(file_name)) { in msdosify()
439 const char *file_name, in rename_if_reserved_dos() argument
452 if(!sanitized || !file_name) in rename_if_reserved_dos()
456 len = strlen(file_name); in rename_if_reserved_dos()
461 file_name[0] == '\\' && file_name[1] == '\\') { in rename_if_reserved_dos()
462 *sanitized = strdup(file_name); in rename_if_reserved_dos()
472 memcpy(fname, file_name, len); in rename_if_reserved_dos()