str[len] = ' ';
len++;
}
-
+
while (*token != 0) {
if (len < size)
str[len] = *token;
token = fn(bit);
if (token == NULL) /* unused? */
continue;
-
+
/* strcasecmp */
for (j = 0; ; j++) {
if (j == len) { /* end of token */
}
break;
}
-
+
if (token[j] == 0)
break;
-
+
if (str[j] == token[j])
continue;
-
+
if (str[j] < 'A' || 'Z' < str[j])
break;
break;
}
}
-
+
return -EINVAL; /* no match */
}
* appears first in <str>, '*mask' is used as the starting point
* (relative), otherwise 0 is used (absolute). An operator applies to
* all following tokens up to the next operator. */
-
+
while (*str != 0) {
while (isspace(*str)) /* skip whitespace */
str++;
/* match token */
if (libcfs_debug_token2mask(&t, str, n, is_subsys) != 0)
return -EINVAL;
-
+
matched = 1;
if (op == '-')
m &= ~t;
else
m |= t;
-
+
str += n;
}
#else /* !HAVE_CATAMOUNT_DATA_H */
#ifdef HAVE_NETDB_H
#include <sys/utsname.h>
-#endif /* HAVE_CATAMOUNT_DATA_H */
+#endif /* HAVE_NETDB_H */
struct utsname *tmp_utsname;
static char source_nid[sizeof(tmp_utsname->nodename)];
-#endif /* __KERNEL__ */
+#endif /* HAVE_CATAMOUNT_DATA_H */
static int source_pid;
int smp_processor_id = 1;