Lines Matching defs:str
96 format_flags_verbose(char *str, size_t size, uint32_t var,
103 off += snprintf(str + off, size - off, "%s/", tmp);
111 assert(str[off] == '/');
114 str[off] = '\0';
120 format_flags_compact(char *str, size_t size, uint32_t var,
128 str[i] = '-';
130 str[i] = flags[i].letter;
133 str[i] = '\0';
144 char *str, *flag;
146 str = strdup(strp);
150 while (str != NULL) {
151 flag = strsep(&str, "/:");
168 free(str);
173 free(str);
178 parse_flags_compact(const char *str, uint32_t *var,
186 if (str[i] == '\0')
190 if (str[i] == '-')
196 if (flags[j].letter == str[i]) {
205 "invalid flag \"%c\"", flags_name, str[i]);
212 _nfs4_format_flags(char *str, size_t size, acl_flag_t var, int verbose)
216 return (format_flags_verbose(str, size, var, a_flags));
218 return (format_flags_compact(str, size, var, a_flags));
222 _nfs4_format_access_mask(char *str, size_t size, acl_perm_t var, int verbose)
226 return (format_flags_verbose(str, size, var, a_access_masks));
228 return (format_flags_compact(str, size, var, a_access_masks));
232 _nfs4_parse_flags(const char *str, acl_flag_t *flags)
237 error = parse_flags_verbose(str, &tmpflags, a_flags, "flags", &try_compact);
239 error = parse_flags_compact(str, &tmpflags, a_flags, "flags");
247 _nfs4_parse_access_mask(const char *str, acl_perm_t *perms)
252 error = parse_flags_verbose(str, &tmpperms, a_access_masks,
255 error = parse_flags_compact(str, &tmpperms,