Lines Matching refs:flags
71 int flags);
75 int flags);
104 int flags) in sanitize_file_name() argument
119 if(flags & SANITIZE_ALLOW_PATH) { in sanitize_file_name()
143 if((flags & SANITIZE_ALLOW_PATH) && !strncmp(target, "\\\\?\\", 4)) in sanitize_file_name()
155 (!(flags & SANITIZE_ALLOW_PATH) && *p == ':') || in sanitize_file_name()
156 (!(flags & SANITIZE_ALLOW_PATH) && (*p == '/' || *p == '\\'))) { in sanitize_file_name()
170 if(!(flags & SANITIZE_ALLOW_PATH) && len) { in sanitize_file_name()
188 sc = msdosify(&p, target, flags); in sanitize_file_name()
201 if(!(flags & SANITIZE_ALLOW_RESERVED)) { in sanitize_file_name()
202 sc = rename_if_reserved_dos(&p, target, flags); in sanitize_file_name()
295 int flags) in msdosify() argument
328 *d = ((flags & SANITIZE_ALLOW_PATH)) ? ':' : '_'; in msdosify()
335 if((flags & SANITIZE_ALLOW_PATH) && *s == ':') in msdosify()
337 else if((flags & SANITIZE_ALLOW_PATH) && (*s == '/' || *s == '\\')) in msdosify()
345 if((flags & SANITIZE_ALLOW_PATH) && idx == 0 && in msdosify()
440 int flags) in rename_if_reserved_dos() argument
460 if((flags & SANITIZE_ALLOW_PATH) && in rename_if_reserved_dos()
505 if(!(flags & SANITIZE_ALLOW_PATH)) { in rename_if_reserved_dos()