Lines Matching refs:sanitized
92 static SANITIZEcode msdosify(char **const sanitized, const char *file_name,
95 static SANITIZEcode rename_if_reserved_dos_device_name(char **const sanitized,
135 SANITIZEcode sanitize_file_name(char **const sanitized, const char *file_name, in sanitize_file_name() argument
143 if(!sanitized) in sanitize_file_name()
146 *sanitized = NULL; in sanitize_file_name()
255 *sanitized = target; in sanitize_file_name()
335 SANITIZEcode msdosify(char **const sanitized, const char *file_name, in msdosify() argument
349 if(!sanitized) in msdosify()
352 *sanitized = NULL; in msdosify()
464 *sanitized = strdup(dos_name); in msdosify()
465 return (*sanitized ? SANITIZE_ERR_OK : SANITIZE_ERR_OUT_OF_MEMORY); in msdosify()
482 SANITIZEcode rename_if_reserved_dos_device_name(char **const sanitized, in rename_if_reserved_dos_device_name() argument
495 if(!sanitized) in rename_if_reserved_dos_device_name()
498 *sanitized = NULL; in rename_if_reserved_dos_device_name()
508 *sanitized = malloc(len + 1); in rename_if_reserved_dos_device_name()
509 if(!*sanitized) in rename_if_reserved_dos_device_name()
511 strncpy(*sanitized, file_name, len + 1); in rename_if_reserved_dos_device_name()
606 *sanitized = strdup(fname); in rename_if_reserved_dos_device_name()
607 return (*sanitized ? SANITIZE_ERR_OK : SANITIZE_ERR_OUT_OF_MEMORY); in rename_if_reserved_dos_device_name()