Home
last modified time | relevance | path

Searched refs:tokens (Results 1 – 14 of 14) sorted by relevance

/busybox-1.35.0/util-linux/
Dlspci.c45 char *tokens[3]; in fileAction() local
54 while (config_read(parser, tokens, 3, 2, "\0:=", PARSE_NORMAL)) { in fileAction()
55 if (strcmp(tokens[0], "DRIVER") == 0) { in fileAction()
56 driver = xstrdup(tokens[1]); in fileAction()
60 if (strcmp(tokens[0], "PCI_CLASS") == 0) { in fileAction()
61 pci_class = xstrtou(tokens[1], 16)>>8; in fileAction()
65 if (strcmp(tokens[0], "PCI_ID") == 0) { in fileAction()
66 pci_vid = xstrtou(tokens[1], 16); in fileAction()
67 pci_did = xstrtou(tokens[2], 16); in fileAction()
71 if (strcmp(tokens[0], "PCI_SUBSYS_ID") == 0) { in fileAction()
[all …]
Dlsusb.c32 char *tokens[4]; in fileAction() local
40 while (config_read(parser, tokens, 4, 2, "\\/=", PARSE_NORMAL)) { in fileAction()
41 if ((parser->lineno == 1) && strcmp(tokens[0], "DEVTYPE") == 0) { in fileAction()
45 if (strcmp(tokens[0], "PRODUCT") == 0) { in fileAction()
46 product_vid = xstrtou(tokens[1], 16); in fileAction()
47 product_did = xstrtou(tokens[2], 16); in fileAction()
51 if (strcmp(tokens[0], "BUSNUM") == 0) { in fileAction()
52 busnum = xstrdup(tokens[1]); in fileAction()
56 if (strcmp(tokens[0], "DEVNUM") == 0) { in fileAction()
57 devnum = xstrdup(tokens[1]); in fileAction()
Dacpid.c204 char *tokens[2]; in parse_conf_file() local
209 while (config_read(parser, tokens, 2, 2, "# \t", PARSE_NORMAL)) { in parse_conf_file()
211 act_tab[n_act].key = xstrdup(tokens[0]); in parse_conf_file()
212 act_tab[n_act].action = xstrdup(tokens[1]); in parse_conf_file()
225 char *tokens[6]; in parse_map_file() local
230 while (config_read(parser, tokens, 6, 6, "# \t", PARSE_NORMAL)) { in parse_map_file()
232 evt_tab[n_evt].s_type = xstrdup(tokens[0]); in parse_map_file()
233 evt_tab[n_evt].n_type = xstrtou(tokens[1], 16); in parse_map_file()
234 evt_tab[n_evt].s_code = xstrdup(tokens[2]); in parse_map_file()
235 evt_tab[n_evt].n_code = xatou16(tokens[3]); in parse_map_file()
[all …]
Dmdev.c382 char *tokens[4]; in parse_next_rule() local
386 if (!config_read(G.parser, tokens, 4, 3, "# \t", PARSE_NORMAL & ~PARSE_EOL_COMMENTS)) in parse_next_rule()
390 dbg3("token1:'%s'", tokens[1]); in parse_next_rule()
393 val = tokens[0]; in parse_next_rule()
427 if (get_uidgid(&G.cur_rule.ugid, tokens[1]) == 0) { in parse_next_rule()
428 bb_error_msg("unknown user/group '%s' on line %d", tokens[1], G.parser->lineno); in parse_next_rule()
433 G.cur_rule.mode = bb_parse_mode(tokens[2], G.cur_rule.mode); in parse_next_rule()
436 val = tokens[3]; in parse_next_rule()
/busybox-1.35.0/modutils/
Dmodprobe.c242 char *tokens[3]; in config_file_action() local
277 while (config_read(p, tokens, 3, 2, "# \t", PARSE_NORMAL)) { in config_file_action()
279 if (strcmp(tokens[0], "alias") == 0) { in config_file_action()
285 if (tokens[2] == NULL) in config_file_action()
287 filename2modname(tokens[1], wildcard); in config_file_action()
293 rmod = filename2modname(tokens[2], NULL); in config_file_action()
307 } else if (strcmp(tokens[0], "options") == 0) { in config_file_action()
309 if (tokens[2] == NULL) in config_file_action()
311 m = get_or_add_modentry(tokens[1]); in config_file_action()
312 m->options = gather_options_str(m->options, tokens[2]); in config_file_action()
[all …]
Dmodinfo.c145 char *colon, *tokens[2]; in modinfo_main() local
162 while (config_read(parser, tokens, 2, 1, "# \t", PARSE_NORMAL)) { in modinfo_main()
163 colon = last_char_is(tokens[0], ':'); in modinfo_main()
167 filename2modname(bb_basename(tokens[0]), name); in modinfo_main()
170 modinfo(tokens[0], uts.release, field); in modinfo_main()
/busybox-1.35.0/miscutils/
Drfkill.c95 char *tokens[2]; in rfkill_main() local
111 while (config_read(parser, tokens, 2, 2, "\n=", PARSE_NORMAL)) { in rfkill_main()
112 if (strcmp(tokens[0], "RFKILL_NAME") == 0) { in rfkill_main()
113 name = xstrdup(tokens[1]); in rfkill_main()
116 if (strcmp(tokens[0], "RFKILL_TYPE") == 0) { in rfkill_main()
117 type = xstrdup(tokens[1]); in rfkill_main()
Dcrond.c419 char *tokens[6]; in load_crontab() local
454 n = config_read(parser, tokens, 6, 1, "# \t", PARSE_NORMAL | PARSE_KEEP_COPY); in load_crontab()
461 if (is_prefixed_with(tokens[0], "MAILTO=")) { in load_crontab()
464 mailTo = (tokens[0][7]) ? xstrdup(&tokens[0][7]) : NULL; in load_crontab()
468 if (is_prefixed_with(tokens[0], "SHELL=")) { in load_crontab()
470 shell = xstrdup(&tokens[0][6]); in load_crontab()
487 if (tokens[0][0] == '@') { in load_crontab()
493 const char tokens[8]; in load_crontab() member
511 if (strcmp(e->name, tokens[0] + 1) == 0) { in load_crontab()
517 tokens[5] = skip_whitespace( in load_crontab()
[all …]
/busybox-1.35.0/mailutils/
Dreformime.c87 const char *tokens[32]; /* 32 is enough */ in parse() local
133 tokens[ntokens] = s; in parse()
134 if (ntokens < ARRAY_SIZE(tokens) - 1) in parse()
139 tokens[ntokens] = NULL; in parse()
146 type = find_token(tokens, "Content-Type:", "text/plain"); in parse()
152 parse(xfind_token(tokens, "boundary"), argv); in parse()
159 const char *charset = find_token(tokens, "charset", CONFIG_FEATURE_MIME_CHARSET); in parse()
160 const char *encoding = find_token(tokens, "Content-Transfer-Encoding:", "7bit"); in parse()
163 char *filename = (char *)find_token(tokens, "filename", NULL); in parse()
/busybox-1.35.0/libbb/
Dparse_config.c163 int FAST_FUNC config_read(parser_t *parser, char **tokens, unsigned flags, const char *delims) in config_read() argument
181 memset(tokens, 0, sizeof(tokens[0]) * ntokens); in config_read()
208 tokens[t] = line; in config_read()
233 strcpy_and_process_escape_sequences(tokens[t], tokens[t]); in config_read()
/busybox-1.35.0/networking/
Dntpd.c2318 char *tokens[4]; in ntp_init() local
2322 while (config_read(parser, tokens, 4, 3, "# \t", PARSE_NORMAL | PARSE_MIN_DIE) == 3) { in ntp_init()
2330 if ((tokens[1][0] | 0x20) == 'm') in ntp_init()
2334 if (strncasecmp(tokens[1], "sha", 3) == 0) in ntp_init()
2347 key_length = strnlen(tokens[2], sizeof(buffer)+1); in ntp_init()
2353 key = tokens[2]; in ntp_init()
2358 if (!hex2bin(buffer, tokens[2], key_length)) in ntp_init()
2370 key_entry->id = xatou_range(tokens[0], 1, MAX_KEY_NUMBER); in ntp_init()
/busybox-1.35.0/include/
Dlibbb.h1659 int config_read(parser_t *parser, char **tokens, unsigned flags, const char *delims) FAST_FUNC;
1660 #define config_read(parser, tokens, max, min, str, flags) \ argument
1661 config_read(parser, tokens, ((flags) | (((min) & 0xFF) << 8) | ((max) & 0xFF)), str)
/busybox-1.35.0/scripts/kconfig/
Dzconf.tab.c_shipped61 /* Put the tokens into the symbol table, so that GDB and other debuggers
1093 /* Number of tokens to shift before error messages enabled. */
1294 /* Count tokens shifted since error; after three, turn off error
Dlex.zconf.c_shipped231 * still have a bunch of tokens to match, though, because of