Home
last modified time | relevance | path

Searched refs:token (Results 1 – 21 of 21) sorted by relevance

/busybox-1.35.0/modutils/
Dlsmod.c78 char *token[4]; in lsmod_main() local
88 while (config_read(parser, token, 4, 3, "# \t", PARSE_NORMAL)) { in lsmod_main()
89 if (token[3] != NULL && token[3][0] == '[') { in lsmod_main()
90 token[3]++; in lsmod_main()
91 token[3][strlen(token[3])-1] = '\0'; in lsmod_main()
93 token[3] = (char *) ""; in lsmod_main()
97 char *uni_name = unicode_conv_to_printable(&uni_stat, token[0]); in lsmod_main()
99 printf("%s%*s %8s %2s %s\n", uni_name, pad_len, "", token[1], token[2], token[3]); in lsmod_main()
103 printf("%-19s %8s %2s %s\n", token[0], token[1], token[2], token[3]); in lsmod_main()
107 while (config_read(parser, token, 4, 4, "# \t", PARSE_NORMAL & ~PARSE_GREEDY)) { in lsmod_main()
[all …]
/busybox-1.35.0/scripts/kconfig/
Dzconf.y51 %token <id>T_MAINMENU
52 %token <id>T_MENU
53 %token <id>T_ENDMENU
54 %token <id>T_SOURCE
55 %token <id>T_CHOICE
56 %token <id>T_ENDCHOICE
57 %token <id>T_COMMENT
58 %token <id>T_CONFIG
59 %token <id>T_MENUCONFIG
60 %token <id>T_HELP
[all …]
Dzconf.l108 return id->token;
141 return id->token;
Dzconf.tab.c_shipped463 /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
464 token YYLEX-NUM. */
577 positive, shift that token. If negative, reduce the rule which
959 YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
1095 /* Look-ahead token as an internal (translated) token number. */
1136 yychar = YYEMPTY; /* Cause a token to be read. */
1238 /* Read a look-ahead token if we need one and don't already have one. */
1241 /* First try to decide what to do without reference to look-ahead token. */
1247 /* Not known => get a look-ahead token if don't already have one. */
1252 YYDPRINTF ((stderr, "Reading a token: "));
[all …]
Dlkc.h46 int token; member
Dlex.zconf.c_shipped1044 return id->token;
1116 return id->token;
1407 } /* end of scanning one token */
1642 * token and flags that we need to
1643 * try matching the token before
2083 /** Get the length of the current token.
2091 /** Get the current token.
/busybox-1.35.0/miscutils/
Dman.c262 char *token[2]; in man_main() local
284 while (config_read(parser, token, 2, 0, "# \t", PARSE_NORMAL)) { in man_main()
285 if (!token[1]) in man_main()
287 if (strcmp("DEFINE", token[0]) == 0) { in man_main()
288 G.col = if_redefined(G.col , "col", token[1]); in man_main()
289 G.tbl = if_redefined(G.tbl , "tbl", token[1]); in man_main()
290 G.nroff = if_redefined(G.nroff, "nroff", token[1]); in man_main()
291 G.pager = if_redefined(G.pager, "pager", token[1]); in man_main()
293 if (strcmp("MANDATORY_MANPATH"+10, token[0]) == 0 /* "MANPATH"? */ in man_main()
294 || strcmp("MANDATORY_MANPATH", token[0]) == 0 in man_main()
[all …]
Dfbsplash.c469 char *token[2]; in init() local
471 while (config_read(parser, token, 2, 2, "#=", in init()
473 unsigned val = xatoi_positive(token[1]); in init()
474 int i = index_in_strings(param_names, token[0]); in init()
476 bb_error_msg_and_die("syntax error: %s", token[0]); in init()
/busybox-1.35.0/procps/
Dsysctl.c276 char *token[2]; in sysctl_handle_preload_file() local
293 while (config_read(parser, token, 2, 2, ";#=", parse_flags)) { in sysctl_handle_preload_file()
296 trim(token[1]); in sysctl_handle_preload_file()
297 tp = trim(token[0]); in sysctl_handle_preload_file()
298 sysctl_dots_to_slashes(token[0]); in sysctl_handle_preload_file()
302 overlapping_strcpy(tp, token[1]); in sysctl_handle_preload_file()
304 sysctl_act_on_setting(token[0]); in sysctl_handle_preload_file()
/busybox-1.35.0/init/
Dbootchartd.c387 char* token[2]; in bootchartd_main() local
391 while (config_read(parser, token, 2, 0, "#=", PARSE_NORMAL & ~PARSE_COLLAPSE)) { in bootchartd_main()
392 if (strcmp(token[0], "SAMPLE_PERIOD") == 0 && token[1]) in bootchartd_main()
393 sample_period_us = atof(token[1]) * 1000000; in bootchartd_main()
394 if (strcmp(token[0], "PROCESS_ACCOUNTING") == 0 && token[1] in bootchartd_main()
395 && (strcmp(token[1], "on") == 0 || strcmp(token[1], "yes") == 0) in bootchartd_main()
Dinit.c673 char *token[4]; in parse_inittab() local
703 while (config_read(parser, token, 4, 0, "#:", in parse_inittab()
710 char *tty = token[0]; in parse_inittab()
712 if (!token[3]) /* less than 4 tokens */ in parse_inittab()
714 action = index_in_strings(actions, token[2]); in parse_inittab()
715 if (action < 0 || !token[3][0]) /* token[3]: command */ in parse_inittab()
721 new_init_action(1 << action, token[3], tty); in parse_inittab()
/busybox-1.35.0/networking/
Dnameif.c228 char *token[2]; in nameif_main() local
247 while (config_read(parser, token, 2, 2, "# \t", PARSE_NORMAL)) in nameif_main()
248 prepend_new_eth_table(&clist, token[0], token[1]); in nameif_main()
255 while (clist && config_read(parser, token, 2, 2, "\0: \t", PARSE_NORMAL)) { in nameif_main()
266 strncpy_IFNAMSIZ(ifr.ifr_name, token[0]); in nameif_main()
Ddnsd.c117 char *token[2]; in parse_conf_file() local
126 while (config_read(parser, token, 2, 2, "# \t", PARSE_NORMAL)) { in parse_conf_file()
130 if (inet_aton(token[1], &ip) == 0) { in parse_conf_file()
136 bb_info_msg("name:%s, ip:%s", token[0], token[1]); in parse_conf_file()
139 m = xzalloc(sizeof(*m) + strlen(token[0]) + 1); in parse_conf_file()
145 strcpy(m->name + 1, token[0]); in parse_conf_file()
Dinetd.c726 char *token[6+MAXARGV]; in parse_one_line() local
734 argc = config_read(parser, token, 6+MAXARGV, 1, "# \t", PARSE_NORMAL); in parse_one_line()
742 arg = token[0]; in parse_one_line()
785 , token[1])]; in parse_one_line()
789 sep->se_proto = arg = xstrdup(token[2]); in parse_one_line()
848 arg = token[3]; in parse_one_line()
864 sep->se_user = xstrdup(token[4]); in parse_one_line()
874 sep->se_program = xstrdup(token[5]); in parse_one_line()
895 while (argc < MAXARGV && (arg = token[6+argc]) != NULL) in parse_one_line()
Dntpd.c2403 char *token[3 + 2*ENABLE_FEATURE_NTP_AUTH]; in ntp_init() local
2406 while (config_read(parser, token, 3 + 2*ENABLE_FEATURE_NTP_AUTH, 1, "# \t", PARSE_NORMAL)) { in ntp_init()
2407 if (strcmp(token[0], "server") == 0 && token[1]) { in ntp_init()
2410 if (token[2] && token[3] && strcmp(token[2], "key") == 0) { in ntp_init()
2411 unsigned key_id = xatou_range(token[3], 1, MAX_KEY_NUMBER); in ntp_init()
2414 add_peers(token[1], key_entry); in ntp_init()
2416 add_peers(token[1], NULL); in ntp_init()
2421 "/etc/ntp.conf", parser->lineno, token[0] in ntp_init()
/busybox-1.35.0/util-linux/
Dfbset.c273 char *token[2], *p, *s; in read_mode_db() local
276 while (config_read(parser, token, 2, 1, "# \t\r", PARSE_NORMAL)) { in read_mode_db()
277 if (strcmp(token[0], "mode") != 0 || !token[1]) in read_mode_db()
279 p = strstr(token[1], mode); in read_mode_db()
293 if (!token[0]) in read_mode_db()
296 while (config_read(parser, token, 2, 1, "# \t", PARSE_NORMAL)) { in read_mode_db()
300 if (strcmp(token[0], "endmode") == 0) { in read_mode_db()
304 p = token[1]; in read_mode_db()
307 token[0]); in read_mode_db()
/busybox-1.35.0/networking/libiproute/
Drt_names.c30 char *token[2]; in rtnl_tab_initialize() local
36 while (config_read(parser, token, 2, 2, "# \t", PARSE_NORMAL)) { in rtnl_tab_initialize()
37 unsigned id = bb_strtou(token[0], NULL, 0); in rtnl_tab_initialize()
43 tab[id] = xstrdup(token[1]); in rtnl_tab_initialize()
/busybox-1.35.0/coreutils/
Dtest.c159 enum token { enum
456 static number_t primary(enum token n);
524 static enum token check_operator(const char *s) in check_operator()
699 static int filstat(char *nm, enum token mode) in filstat()
772 static number_t nexpr(enum token n) in nexpr()
796 static number_t aexpr(enum token n) in aexpr()
815 static number_t oexpr(enum token n) in oexpr()
834 static number_t primary(enum token n) in primary()
/busybox-1.35.0/console-tools/
Dloadfont.c483 char *token[2]; in setfont_main() local
496 while (config_read(parser, token, 2, 2, "# \t", PARSE_NORMAL | PARSE_MIN_DIE)) { in setfont_main()
498 int a = ctoi(token[0]); in setfont_main()
499 int b = ctoi(token[1]); in setfont_main()
/busybox-1.35.0/networking/udhcp/
Ddhcpd.c431 char *token[2]; in read_config() local
437 while (config_read(parser, token, 2, 2, "# \t", PARSE_NORMAL)) { in read_config()
439 if (strcasecmp(token[0], k->keyword) == 0) { in read_config()
440 if (!k->handler(token[1], (char*)&server_data + k->ofs)) { in read_config()
/busybox-1.35.0/shell/
Dash.c11728 raise_error_unexpected_syntax(int token) in raise_error_unexpected_syntax() argument
11735 if (token >= 0) in raise_error_unexpected_syntax()
11736 sprintf(msg + l, " (expecting %s)", tokname(buf, token)); in raise_error_unexpected_syntax()
13168 #define RETURN(token) return lasttoken = token argument