lib/libc/stdlib/getsubopt.c
46
getsubopt(char **optionp, char * const *tokens, char **valuep)
lib/libc/stdlib/getsubopt.c
89
for (cnt = 0; *tokens; ++tokens, ++cnt)
lib/libc/stdlib/getsubopt.c
90
if (!strcmp(suboptarg, *tokens))
lib/libevtr/ktrfmt.yy.c
508
static struct token tokens[NR_TOKENS];
lib/libevtr/ktrfmt.yy.c
522
return &tokens[curr_tok];
lib/libevtr/ktrfmt.yy.c
528
assert(&tokens[curr_tok] == tok);
sbin/cryptdisks/cryptdisks.c
106
entry_check_num_args(char **tokens, int num)
sbin/cryptdisks/cryptdisks.c
110
for (i = 0; tokens[i] != NULL; i++)
sbin/cryptdisks/cryptdisks.c
122
line_tokenize(char *buffer, int (*is_sep)(char), char comment_char, char **tokens)
sbin/cryptdisks/cryptdisks.c
140
tokens[0] = &buffer[c];
sbin/cryptdisks/cryptdisks.c
145
if ((c >= 1) && (&buffer[c] != tokens[n-1])) {
sbin/cryptdisks/cryptdisks.c
152
tokens[n-1] = &buffer[c+1];
sbin/cryptdisks/cryptdisks.c
174
tokens[n++] = &buffer[c--];
sbin/cryptdisks/cryptdisks.c
177
tokens[n] = NULL;
sbin/cryptdisks/cryptdisks.c
180
tokens[0] = NULL;
sbin/cryptdisks/cryptdisks.c
284
entry_parser(char **tokens, char **options, int type)
sbin/cryptdisks/cryptdisks.c
291
if (entry_check_num_args(tokens, 2) != 0)
sbin/cryptdisks/cryptdisks.c
299
go.map_name = tokens[0];
sbin/cryptdisks/cryptdisks.c
300
go.device = tokens[1];
sbin/cryptdisks/cryptdisks.c
306
if ((tokens[2] != NULL) && (strcmp(tokens[2], "none") != 0)) {
sbin/cryptdisks/cryptdisks.c
308
go.keyfiles[go.nkeyfiles++] = tokens[2];
sbin/cryptdisks/cryptdisks.c
448
char *tokens[256];
sbin/cryptdisks/cryptdisks.c
464
n = line_tokenize(buffer, &iswhitespace, '#', tokens);
sbin/cryptdisks/cryptdisks.c
471
if ((n < 2) || (tokens[0][0] == '\0'))
sbin/cryptdisks/cryptdisks.c
480
i = line_tokenize(tokens[3], &iscomma, '#', options);
sbin/cryptdisks/cryptdisks.c
486
entry_parser(tokens, options, type);
sbin/devfsctl/devfsctl.c
145
parser_include(char **tokens)
sbin/devfsctl/devfsctl.c
150
error = stat(tokens[1], &sb);
sbin/devfsctl/devfsctl.c
154
tokens[1], strerror(errno));
sbin/devfsctl/devfsctl.c
156
chdir(dirname(tokens[1]));
sbin/devfsctl/devfsctl.c
157
read_config(basename(tokens[1]), RULES_FILE);
sbin/devfsctl/devfsctl.c
163
parser_jail(char **tokens)
sbin/devfsctl/devfsctl.c
165
if (tokens[1][0] == 'y') {
sbin/devfsctl/devfsctl.c
167
} else if (tokens[1][0] == 'n') {
sbin/devfsctl/devfsctl.c
177
parser_hide(char **tokens)
sbin/devfsctl/devfsctl.c
182
id = get_id(tokens[1]);
sbin/devfsctl/devfsctl.c
190
parser_show(char **tokens)
sbin/devfsctl/devfsctl.c
195
id = get_id(tokens[1]);
sbin/devfsctl/devfsctl.c
203
parser_link(char **tokens)
sbin/devfsctl/devfsctl.c
208
id = get_id(tokens[1]);
sbin/devfsctl/devfsctl.c
210
rule->dest = strdup(tokens[2]);
sbin/devfsctl/devfsctl.c
217
parser_group(char **tokens)
sbin/devfsctl/devfsctl.c
223
gid = get_group(tokens[1], 1);
sbin/devfsctl/devfsctl.c
226
for (i = 2; tokens[i] != NULL; i++) {
sbin/devfsctl/devfsctl.c
227
id = get_id(tokens[i]);
sbin/devfsctl/devfsctl.c
246
parser_perm(char **tokens)
sbin/devfsctl/devfsctl.c
255
id = get_id(tokens[1]);
sbin/devfsctl/devfsctl.c
258
rule->mode = strtol(tokens[3], NULL, 8);
sbin/devfsctl/devfsctl.c
259
uname = tokens[2];
sbin/devfsctl/devfsctl.c
260
grname = strchr(tokens[2], ':');
sbin/devfsctl/devfsctl.c
262
syntax_error("invalid format for user/group (%s)", tokens[2]);
sbin/devfsctl/devfsctl.c
546
rule_check_num_args(char **tokens, int num)
sbin/devfsctl/devfsctl.c
550
for (i = 0; tokens[i] != NULL; i++)
sbin/devfsctl/devfsctl.c
606
char *tokens[256];
sbin/devfsctl/devfsctl.c
629
tokens[0] = &buffer[c];
sbin/devfsctl/devfsctl.c
634
if ((c >= 1) && (&buffer[c] != tokens[n-1])) {
sbin/devfsctl/devfsctl.c
638
tokens[n-1] = &buffer[c+1];
sbin/devfsctl/devfsctl.c
655
tokens[n++] = &buffer[c--];
sbin/devfsctl/devfsctl.c
658
tokens[n] = NULL;
sbin/devfsctl/devfsctl.c
665
if ((quote) || (n < 2) || (tokens[0][0] == '\0'))
sbin/devfsctl/devfsctl.c
670
ret = rule_parser(tokens);
sbin/devfsctl/devfsctl.c
674
ret = ruletab_parser(tokens);
sbin/devfsctl/devfsctl.c
685
rule_parser(char **tokens)
sbin/devfsctl/devfsctl.c
691
for (i = 0; tokens[0][i] != '\0'; i++)
sbin/devfsctl/devfsctl.c
692
tokens[0][i] = tolower(tokens[0][i]);
sbin/devfsctl/devfsctl.c
695
if (rule_check_num_args(tokens, parsers[i].min_args) != 0)
sbin/devfsctl/devfsctl.c
698
if (!strcmp(tokens[0], parsers[i].verb)) {
sbin/devfsctl/devfsctl.c
699
parsers[i].parser(tokens);
sbin/devfsctl/devfsctl.c
705
syntax_error("unknown verb/command %s", tokens[0]);
sbin/devfsctl/devfsctl.c
713
ruletab_parser(char **tokens)
sbin/devfsctl/devfsctl.c
720
if (rule_check_num_args(tokens, 2) != 0)
sbin/devfsctl/devfsctl.c
723
error = stat(tokens[0], &sb);
sbin/devfsctl/devfsctl.c
726
tokens[0], strerror(errno));
sbin/devfsctl/devfsctl.c
729
if (tokens[0][0] != '/') {
sbin/devfsctl/devfsctl.c
731
tokens[0]);
sbin/devfsctl/devfsctl.c
734
for (i = 1; tokens[i] != NULL; i++) {
sbin/devfsctl/devfsctl.c
736
rt->mntpoint = strdup(tokens[0]);
sbin/devfsctl/devfsctl.c
737
rt->rule_file = strdup(tokens[i]);
sbin/devfsctl/devfsctl.c
87
static int rule_parser(char **tokens);
sbin/devfsctl/devfsctl.c
89
static int ruletab_parser(char **tokens);
sbin/vinum/commands.c
523
int tokens; /* and their number */
sbin/vinum/commands.c
535
tokens = 0; /* no tokens yet */
sbin/vinum/commands.c
552
token[tokens] = enamelist; /* point to it */
sbin/vinum/commands.c
553
tokens++; /* one more token */
sbin/vinum/commands.c
558
vinum_read(tokens, token, &token[0]); /* start the system */
sbin/vinum/list.c
1233
int tokens; /* and their number */
sbin/vinum/list.c
1245
tokens = 0; /* no tokens yet */
sbin/vinum/list.c
1260
token[tokens] = enamelist; /* point to it */
sbin/vinum/list.c
1261
tokens++; /* one more token */
sbin/vinum/list.c
1266
for (i = 0; i < tokens; i++)
sbin/vinum/v.c
103
int tokens; /* number of tokens */
sbin/vinum/v.c
219
tokens = tokenize(buffer, token);
sbin/vinum/v.c
221
if (tokens)
sbin/vinum/v.c
222
parseline(tokens, token); /* and do what he says */
sys/dev/raid/vinum/vinumconfig.c
1112
for (parameter = 1; parameter < tokens; parameter++) { /* look at the other tokens */
sys/dev/raid/vinum/vinumconfig.c
1315
for (parameter = 1; parameter < tokens; parameter++) { /* look at the other tokens */
sys/dev/raid/vinum/vinumconfig.c
1491
if (tokens < 2) /* not enough tokens */
sys/dev/raid/vinum/vinumconfig.c
1500
for (parameter = 2; parameter < tokens; parameter++) { /* look at all tokens */
sys/dev/raid/vinum/vinumconfig.c
1627
tokens = tokenize(cptr, token); /* chop up into tokens */
sys/dev/raid/vinum/vinumconfig.c
1629
if (tokens <= 0) /* screwed up or empty line */
sys/dev/raid/vinum/vinumconfig.c
1630
return tokens; /* give up */
sys/dev/raid/vinum/vinumconfig.c
1637
status = vinum_scandisk(&token[1], tokens - 1); /* read the config from disk */
sys/dev/raid/vinum/vinumconfig.c
79
static int tokens; /* number of tokens */
sys/dev/raid/vinum/vinumconfig.c
962
if (tokens < 2) /* not enough tokens */
sys/dev/raid/vinum/vinumconfig.c
977
for (parameter = 2; parameter < tokens; parameter++) { /* look at the other tokens */
sys/kern/lwkt_token.c
105
KTR_INFO_MASTER(tokens);
sys/kern/lwkt_token.c
106
KTR_INFO(KTR_TOKENS, tokens, fail, 0, TOKEN_STRING, TOKEN_ARGS);
sys/kern/lwkt_token.c
107
KTR_INFO(KTR_TOKENS, tokens, succ, 1, TOKEN_STRING, TOKEN_ARGS);
sys/kern/lwkt_token.c
109
KTR_INFO(KTR_TOKENS, tokens, release, 2, TOKEN_STRING, TOKEN_ARGS);
sys/kern/lwkt_token.c
110
KTR_INFO(KTR_TOKENS, tokens, remote, 3, TOKEN_STRING, TOKEN_ARGS);
sys/kern/lwkt_token.c
111
KTR_INFO(KTR_TOKENS, tokens, reqremote, 4, TOKEN_STRING, TOKEN_ARGS);
sys/kern/lwkt_token.c
112
KTR_INFO(KTR_TOKENS, tokens, reqfail, 5, TOKEN_STRING, TOKEN_ARGS);
sys/kern/lwkt_token.c
113
KTR_INFO(KTR_TOKENS, tokens, drain, 6, TOKEN_STRING, TOKEN_ARGS);
sys/kern/lwkt_token.c
114
KTR_INFO(KTR_TOKENS, tokens, contention_start, 7, CONTENDED_STRING, TOKEN_ARGS);
sys/kern/lwkt_token.c
115
KTR_INFO(KTR_TOKENS, tokens, contention_stop, 7, UNCONTENDED_STRING, TOKEN_ARGS);
sys/kern/lwkt_token.c
977
DB_SHOW_COMMAND(tokens, db_tok_all)
sys/net/wg/wg_cookie.c
540
uint64_t bucket, tokens;
sys/net/wg/wg_cookie.c
579
tokens = r->r_tokens;
sys/net/wg/wg_cookie.c
580
tokens += diff.tv_sec * NSEC_PER_SEC + diff.tv_nsec;
sys/net/wg/wg_cookie.c
581
if (tokens > TOKEN_MAX)
sys/net/wg/wg_cookie.c
582
tokens = TOKEN_MAX;
sys/net/wg/wg_cookie.c
584
if (tokens >= INITIATION_COST) {
sys/net/wg/wg_cookie.c
585
r->r_tokens = tokens - INITIATION_COST;
sys/net/wg/wg_cookie.c
588
r->r_tokens = tokens;
sys/netproto/802_11/wlan/ieee80211_ht.c
2196
static int tokens = 0; /* XXX */
sys/netproto/802_11/wlan/ieee80211_ht.c
2206
dialogtoken = (tokens+1) % 63; /* XXX */
sys/netproto/802_11/wlan/ieee80211_ht.c
2230
tokens = dialogtoken; /* allocate token */
usr.bin/dfregress/parser.c
102
tokens[0] = &buffer[c];
usr.bin/dfregress/parser.c
107
if ((c >= 1) && (&buffer[c] != tokens[n-1])) {
usr.bin/dfregress/parser.c
114
tokens[n-1] = &buffer[c+1];
usr.bin/dfregress/parser.c
136
tokens[n++] = &buffer[c--];
usr.bin/dfregress/parser.c
139
tokens[n] = NULL;
usr.bin/dfregress/parser.c
142
tokens[0] = NULL;
usr.bin/dfregress/parser.c
153
char *tokens[256];
usr.bin/dfregress/parser.c
168
n = line_tokenize(buffer, &iswhitespace, '#', tokens);
usr.bin/dfregress/parser.c
175
if ((n < 1) || (tokens[0][0] == '\0'))
usr.bin/dfregress/parser.c
178
parser(arg, tokens);
usr.bin/dfregress/parser.c
68
entry_check_num_args(char **tokens, int num)
usr.bin/dfregress/parser.c
72
for (i = 0; tokens[i] != NULL; i++)
usr.bin/dfregress/parser.c
84
line_tokenize(char *buffer, int (*is_sep)(char), char comment_char, char **tokens)
usr.bin/dfregress/parser.h
33
int entry_check_num_args(char **tokens, int num);
usr.bin/dfregress/testcase.c
721
testcase_entry_parser(void *arg, char **tokens)
usr.bin/dfregress/testcase.c
737
entry_check_num_args(tokens, 3);
usr.bin/dfregress/testcase.c
739
testcase->argv = &tokens[3];
usr.bin/dfregress/testcase.c
744
nopts = parse_options(tokens[2], options);
usr.bin/dfregress/testcase.c
746
testcase->name = tokens[0];
usr.bin/dfregress/testcase.c
748
if (strcmp(tokens[1], "userland") == 0) {
usr.bin/dfregress/testcase.c
750
} else if (strcmp(tokens[1], "kernel") == 0) {
usr.bin/dfregress/testcase.c
752
} else if (strcmp(tokens[1], "buildonly") == 0) {
usr.bin/dfregress/testcase.c
755
syntax_error("Unknown type: %s", tokens[1]);
usr.bin/dfregress/testcase.c
759
testcase->type_str = tokens[1];
usr.bin/dfregress/testcase.h
122
void testcase_entry_parser(void *arg, char **tokens);
usr.bin/window/compress.c
371
cc_sweep_phase(char *buffer, int bufsize, struct cc **tokens)
usr.bin/window/compress.c
373
struct cc **pp = tokens;
usr.bin/window/compress.c
423
return pp - tokens;
usr.bin/window/compress.c
457
cc_sweep(char *buffer, int bufsize, struct cc **tokens, int length)
usr.bin/window/compress.c
464
struct cc **pp = tokens;
usr.bin/window/compress.c
611
if ((i = pp - tokens) > 0) {
usr.bin/window/compress.c
614
cc_sweep_reverse(tokens, places);
usr.bin/window/compress.c
616
qsort((char *) tokens, i, sizeof *tokens,
usr.bin/window/compress.c
622
tokens[i] = NULL;
usr.bin/window/compress.c
649
cc_compress_phase(struct cc **output, int bufsize, struct cc **tokens, int ntoken)
usr.bin/window/compress.c
655
cc_compress_phase1(output, tokens, ntoken, 0);
usr.bin/window/compress.c
657
cc_compress_phase1(output, tokens, ntoken, 1);
usr.bin/window/compress.c
662
cc_compress_phase1(struct cc **output, struct cc **tokens, int ntoken, int flag)
usr.bin/window/compress.c
676
pp = tokens;
usr.bin/window/compress.c
677
while (pp < tokens + ntoken) {
usr.bin/window/compress.c
747
cc_compress(struct cc **output, struct cc **tokens, char flag)
usr.bin/window/compress.c
749
struct cc **pp = tokens;
usr.bin/window/compress.c
853
return pp - tokens;
usr.sbin/asf/asf.c
181
int tokens; /* number of tokens on line */
usr.sbin/asf/asf.c
252
tokens = tokenize(buf, token, MAXTOKEN);
usr.sbin/asf/asf.c
253
if (tokens <= 1)