Lines Matching refs:sanitized
93 static SANITIZEcode msdosify(char **const sanitized, const char *file_name,
96 static SANITIZEcode rename_if_reserved_dos_device_name(char **const sanitized,
136 SANITIZEcode sanitize_file_name(char **const sanitized, const char *file_name, in sanitize_file_name() argument
144 if(!sanitized) in sanitize_file_name()
147 *sanitized = NULL; in sanitize_file_name()
256 *sanitized = target; in sanitize_file_name()
336 SANITIZEcode msdosify(char **const sanitized, const char *file_name, in msdosify() argument
350 if(!sanitized) in msdosify()
353 *sanitized = NULL; in msdosify()
465 *sanitized = strdup(dos_name); in msdosify()
466 return (*sanitized ? SANITIZE_ERR_OK : SANITIZE_ERR_OUT_OF_MEMORY); in msdosify()
483 SANITIZEcode rename_if_reserved_dos_device_name(char **const sanitized, in rename_if_reserved_dos_device_name() argument
496 if(!sanitized) in rename_if_reserved_dos_device_name()
499 *sanitized = NULL; in rename_if_reserved_dos_device_name()
509 *sanitized = malloc(len + 1); in rename_if_reserved_dos_device_name()
510 if(!*sanitized) in rename_if_reserved_dos_device_name()
512 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()