Home | History | Annotate | Download | only in fstest

Lines Matching refs:spec

55     char *spec;
98 static void add_rule(int line_num, char *spec,
110 "%s %lo %lo %s %s %s %s", spec, min_mode, max_mode,
120 if (strstr(spec, "/...")) {
121 pr->spec = strndup(spec, strlen(spec) - 3);
123 } else if (spec[strlen(spec) - 1] == '*') {
124 pr->spec = strndup(spec, strlen(spec) - 1);
126 } else if (spec[strlen(spec) - 1] == '/') {
127 pr->spec = strdup(spec);
130 pr->spec = strdup(spec);
133 if ((pr->spec == NULL) || (pr->rule_text == NULL)) {
148 printf("rule #%d: type = %d spec = %s min_mode = %o max_mode = %o "
150 num_rules, pr->type, pr->spec, pr->min_mode, pr->max_mode,
157 char spec[MAX_NAME_LEN + 5]; // Allows for "/..." suffix + terminator
165 while ((res = fscanf(fp, "%s %lo %lo %s %s %s %s\n", spec,
173 add_rule(num_lines, spec,
231 if (strcmp(name, pr->spec) == 0) {
251 // Check if the spec is a prefix of the filename, and that the file
253 if ((strstr(name, pr->spec) == name) &&
254 (!strchr(name + strlen(pr->spec), '/'))) {
265 if (strstr(name, pr->spec) == name) {
293 if (strcmp(name, pr->spec) == 0) {
320 if (strcmp(name, pr->spec) == 0) {
340 if (strstr(name, pr->spec) == name) {