Lines Matching defs:str
49 * Parse the tag field of ACL entry passed as "str". If qualifier
54 parse_tag(const char *str, acl_entry_t entry, int *need_qualifier)
60 if (strcmp(str, "owner@") == 0)
62 if (strcmp(str, "group@") == 0)
64 if (strcmp(str, "everyone@") == 0)
69 if (strcmp(str, "user") == 0 || strcmp(str, "u") == 0)
71 if (strcmp(str, "group") == 0 || strcmp(str, "g") == 0)
80 * Parse the qualifier field of ACL entry passed as "str".
86 parse_qualifier(char *str, acl_entry_t entry, int *need_qualifier)
95 qualifier_length = strlen(str);
106 error = _acl_name_to_id(tag, str, &id);
116 parse_access_mask(char *str, acl_entry_t entry)
121 error = _nfs4_parse_access_mask(str, &perm);
131 parse_flags(char *str, acl_entry_t entry)
136 error = _nfs4_parse_flags(str, &flags);
146 parse_entry_type(const char *str, acl_entry_t entry)
149 if (strcmp(str, "allow") == 0)
151 if (strcmp(str, "deny") == 0)
153 if (strcmp(str, "audit") == 0)
155 if (strcmp(str, "alarm") == 0)
164 parse_appended_id(char *str, acl_entry_t entry)
170 qualifier_length = strlen(str);
177 id = strtod(str, &end);
178 if (end - str != qualifier_length) {
187 number_of_colons(const char *str)
191 while (*str != '\0') {
192 if (*str == ':')
195 str++;
202 _nfs4_acl_entry_from_text(acl_t aclp, char *str)
214 if (str == NULL)
216 field = strsep(&str, ":");
219 if ((*field == '\0') && (!str)) {
232 if (str == NULL)
234 qualifier_field = field = strsep(&str, ":");
240 if (str == NULL)
242 field = strsep(&str, ":");
247 if (str == NULL)
250 if (number_of_colons(str) > 0) {
251 field = strsep(&str, ":");
257 if (str == NULL)
259 field = strsep(&str, ":");
265 if (str == NULL) {
271 error = parse_appended_id(str, entry);