/illumos-gate/usr/src/cmd/picl/plugins/sun4u/grover/envd/ |
H A D | piclenvd.c | 794 char *tok, *valuep, *strend; in process_env_conf_file() local 840 tok = buf + strspn(buf, tokdel); in process_env_conf_file() 841 if (*tok == '\0') in process_env_conf_file() 844 toklen = strcspn(tok, tokdel); in process_env_conf_file() 845 tok[toklen] = '\0'; in process_env_conf_file() 848 valuep = tok + toklen + 1; in process_env_conf_file() 868 fname, line, tok); in process_env_conf_file() 884 fname, line, tok); in process_env_conf_file() 890 fname, line, tok, val); in process_env_conf_file() 907 fname, line, tok, in process_env_conf_file() [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/disk-monitor/ |
H A D | dm_platform.c | 117 char *tok, *lasts, *eq; in parse_action_string() local 129 if ((tok = strtok_r(action, " \t", &lasts)) != NULL) { in parse_action_string() 131 *cmdp = dstrdup(tok); in parse_action_string() 133 while (rv && (tok = strtok_r(NULL, " \t", &lasts)) != NULL) { in parse_action_string() 136 if ((eq = strchr(tok, '=')) != NULL && eq[1] != 0) { in parse_action_string() 146 tolowerString(tok); in parse_action_string() 151 if (nvlist_add_uint64(*propsp, tok, in parse_action_string() 157 if (nvlist_add_string(*propsp, tok, in parse_action_string() 163 if (nvlist_add_boolean(*propsp, tok) != 0) in parse_action_string()
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/ |
H A D | fc_led_parse.c | 157 return (table[i].tok); in get_token() 423 token_t tok; in act_led_id() local 436 tok = get_token(p_str, 0, &action); in act_led_id() 437 if ((tok <= LED_PROPS_START) || (tok >= LED_PROPS_END)) { in act_led_id() 450 dtls->led_addr[tok - FCAL_REMOK_LED][j] = i; in act_led_id() 492 token_t tok; in fc_led_parse() local 502 tok = get_token(&ptr, lineNo, &action); in fc_led_parse() 503 if (tok == NO_TOKEN) in fc_led_parse() 505 if (tok == TOKEN_ERROR) { in fc_led_parse() 509 if (tok == FCAL_VERSION) { in fc_led_parse() [all …]
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | mandoc.c | 558 nbl->pos, "%s", roff_name[nbl->tok]); in mandoc_normdate() 563 nch->pos, "%s", roff_name[nbl->tok]); in mandoc_normdate() 576 nch->pos, "%s %s", roff_name[nbl->tok], cp); in mandoc_normdate() 580 nch->pos, "%s %s", roff_name[nbl->tok], cp); in mandoc_normdate() 588 "%s %s", roff_name[nbl->tok], nch->string); in mandoc_normdate() 591 "%s %s", roff_name[nbl->tok], nch->string); in mandoc_normdate() 592 else if (nbl->tok == MDOC_Dd) in mandoc_normdate()
|
H A D | mdoc_argv.c | 277 mdoc_argv(struct roff_man *mdoc, int line, enum roff_tok tok, in mdoc_argv() argument 291 assert(tok >= MDOC_Dd && tok < MDOC_MAX); in mdoc_argv() 292 argtable = mdocargs[tok - MDOC_Dd].argvs; in mdoc_argv() 370 argtable = mdocargs[tok - MDOC_Dd].argvs; in mdoc_argv() 416 char *buf, enum roff_tok tok, char **v) in mdoc_args() argument 421 fl = tok == TOKEN_NONE ? ARGSFL_NONE : mdocargs[tok - MDOC_Dd].flags; in mdoc_args() 430 if (tok == MDOC_It) { in mdoc_args() 432 if (n->tok != MDOC_Bl) in mdoc_args()
|
H A D | roff_html.c | 61 assert(n->tok < ROFF_MAX); in roff_html_pre() 62 if (roff_html_pre_acts[n->tok] != NULL) in roff_html_pre() 63 (*roff_html_pre_acts[n->tok])(h, n); in roff_html_pre()
|
H A D | man_term.c | 143 man_term_act(enum roff_tok tok) in man_term_act() argument 145 assert(tok >= MAN_TH && tok <= MAN_MAX); in man_term_act() 146 return man_term_acts + (tok - MAN_TH); in man_term_act() 174 if (n->tok != MAN_SH) in terminal_man() 291 switch (n->tok) { in pre_alternate() 586 if (n->tok == MAN_TP) in pre_TP() 945 if (n->tok < ROFF_MAX) { in print_man_node() 950 act = man_term_act(n->tok); in print_man_node() 951 if ((act->flags & MAN_NOTEXT) == 0 && n->tok != MAN_SM) in print_man_node() 963 if ((act->flags & MAN_NOTEXT) == 0 && n->tok != MAN_SM) in print_man_node() [all …]
|
H A D | tag.c | 211 switch (np->tok) { in tag_move_id() 300 switch (n->tok) { in tag_postprocess() 313 if (n->type == ROFFT_ELEM || n->tok == MDOC_Fo) in tag_postprocess() 315 if (n->tok != MDOC_Tg) in tag_postprocess()
|
H A D | tree.c | 143 p = roff_name[n->tok]; in print_mdoc() 146 p = roff_name[n->tok]; in print_mdoc() 149 p = roff_name[n->tok]; in print_mdoc() 152 p = roff_name[n->tok]; in print_mdoc() 159 p = roff_name[n->tok]; in print_mdoc() 257 p = roff_name[n->tok]; in print_man()
|
/illumos-gate/usr/src/cmd/cpc/common/ |
H A D | strtoset.c | 206 pic(int tok, char *val) in pic() argument 208 int picnum = tok_info[tok].picnum; in pic() 239 flag(int tok, char *val) in flag() argument 242 int picnum = tok_info[tok].picnum; in flag() 248 if (strcmp(tok_info[tok].name, "nouser") == 0) in flag() 250 else if (strcmp(tok_info[tok].name, "sys") == 0) in flag() 263 doattr(int tok, char *val) in doattr() argument 266 int picnum = tok_info[tok].picnum; in doattr() 275 tmp->name = tok_info[tok].name; in doattr()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libpp/ |
H A D | ppfsm.h | 38 #define CODE(tok,act) ((((tok)-N_PP)<<(BITTERM+1))|(act)) argument 44 #define BACK(tok) CODE(tok,S_TOKB) argument 45 #define KEEP(tok) CODE(tok,S_TOK) argument
|
/illumos-gate/usr/src/lib/libcryptoutil/common/ |
H A D | pkcs11_uri.c | 128 char *str2, *l1, *l2, *tok, *name; in pkcs11_parse_uri() local 152 tok = strtok_r(str2, ";", &l1); in pkcs11_parse_uri() 153 for (; tok != NULL; tok = strtok_r(NULL, ";", &l1)) { in pkcs11_parse_uri() 155 name = strtok_r(tok, "=", &l2); in pkcs11_parse_uri()
|
/illumos-gate/usr/src/cmd/fmtmsg/ |
H A D | main.c | 247 exttok(tok, delims) in exttok() argument 248 char *tok; /* Ptr to the token we're parsing */ in exttok() 268 if (tok == (char *) NULL) { 273 tokend = tok + strlen(tok); 277 for (q = strchr(tok, *p) ; q && (q != tok) && (*(q-1) == '\\') ; q = strchr(q+1, *p)) ;
|
/illumos-gate/usr/src/boot/libsa/string/ |
H A D | strtok.c | 54 char *spanp, *tok; in __strtok_r() local 74 tok = s - 1; in __strtok_r() 90 return (tok); in __strtok_r()
|
/illumos-gate/usr/src/test/libc-tests/tests/common/ |
H A D | test_common.c | 277 char *tok; in test_load_config() local 360 tok = strsep(&ptr, "|"); in test_load_config() 361 if (tok == NULL) { in test_load_config() 364 test_trim(&tok); in test_load_config() 378 if (strcmp(tok, keyws[i]) == 0) { in test_load_config() 387 (void) asprintf(&err, "unknown keyword %s", tok); in test_load_config()
|
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/ |
H A D | AttributePattern.java | 100 String tok = tk.nextToken(); in AttributePattern() local 104 if (tok.equals(WILDCARD)) { in AttributePattern() 115 middle = tok; in AttributePattern()
|
H A D | DATable.java | 407 String tok = null; in validateScopes() local 413 if (tok != null) { in validateScopes() 418 tok = tk.nextToken(); in validateScopes() 419 buf.append(tok); in validateScopes()
|
/illumos-gate/usr/src/lib/auditd_plugins/remote/ |
H A D | transport.c | 416 send_token(int *fdptr, gss_buffer_t tok) in send_token() argument 431 len = htonl(tok->length); in send_token() 444 tok->length); in send_token() 462 recv_token(int fd, gss_buffer_t tok) in recv_token() argument 478 tok->value = (char *)malloc(len); in recv_token() 479 if (tok->value == NULL) { in recv_token() 483 tok->length = 0; in recv_token() 488 free(tok->value); in recv_token() 489 tok->value = NULL; in recv_token() 490 tok->length = 0; in recv_token() [all …]
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | list.c | 206 int tok, beg, mc, star, other, colmod, colresult; in markall() local 215 tok = scan(&bufp); in markall() 219 while (tok != TEOL) { in markall() 220 switch (tok) { in markall() 241 tok = scan(&bufp); in markall() 242 if (tok != TDASH) { in markall() 243 regret(tok); in markall() 289 tok = scan(&bufp); in markall()
|
/illumos-gate/usr/src/lib/gss_mechs/mech_dh/backend/mech/ |
H A D | context_establish.c | 803 dh_token_desc tok; in continue_context() local 820 if (*minor = __get_token(token, NULL, &tok, &keys)) in continue_context() 829 if (tok.ver.verno != dh_gss_ctx->proto_version) { in continue_context() 831 xdr_free(xdr_dh_token_desc, (char *)&tok); in continue_context() 836 if (tok.ver.dh_version_u.body.type != DH_ACCEPT_CNTX) { in continue_context() 837 xdr_free(xdr_dh_token_desc, (char *)&tok); in continue_context() 842 remote_ctx = &tok.ver.dh_version_u. in continue_context() 848 xdr_free(xdr_dh_token_desc, (char *)&tok); in continue_context() 856 xdr_free(xdr_dh_token_desc, (char *)&tok); in continue_context() 867 xdr_free(xdr_dh_token_desc, (char *)&tok); in continue_context()
|
/illumos-gate/usr/src/lib/libefi/common/ |
H A D | rdwr_efi.c | 648 char *tok, *val, *end; in hardware_workarounds() local 650 tok = buf + strspn(buf, " \t"); in hardware_workarounds() 651 if (*tok == '#') in hardware_workarounds() 653 while (*tok != '\0') { in hardware_workarounds() 654 tok += strspn(tok, " \t"); in hardware_workarounds() 655 if ((val = strchr(tok, '=')) == NULL) in hardware_workarounds() 670 if (strcmp(tok, "sys.product") == 0 && in hardware_workarounds() 682 if (strcmp(tok, "mb.product") == 0 && in hardware_workarounds() 686 if (strcmp(tok, "mb.version") == 0 && in hardware_workarounds() 691 if (strcmp(tok, "pmbr_slot") == 0) { in hardware_workarounds() [all …]
|
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_conf.c | 265 const struct fmd_conf_token *tok; in set_path() local 283 for (tok = tokens; tok->tok_tag != 0; tok++) { in set_path() 284 if (c == tok->tok_tag) { in set_path() 285 len += strlen(*tok->tok_val) - 1; in set_path() 301 for (tok = tokens; tok->tok_tag != 0; tok++) { in set_path() 302 if (c == tok->tok_tag) { in set_path() 303 (void) strcpy(q, *tok->tok_val); in set_path() 310 if (tok->tok_tag == 0) in set_path()
|
/illumos-gate/usr/src/lib/libgrubmgmt/common/ |
H A D | libgrub_fs.c | 216 char *tmp, *tok; in get_one_physpath() local 227 for (tok = strtok(tmp, " "); tok != NULL; tok = strtok(NULL, " ")) { in get_one_physpath() 228 if ((ret = (slice_match(tok, slcnum) != 0 || in get_one_physpath() 229 get_sol_prtnum(tok) != prtnum)) == 0) { in get_one_physpath() 230 (void) strcpy(physpath, tok); in get_one_physpath()
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/pri/ |
H A D | priplugin.c | 246 uint64_t tok; in pri_reader_thread() local 263 tok = 0; in pri_reader_thread() 272 status = pri_devinit(&tok); in pri_reader_thread() 320 tok = 0; in pri_reader_thread()
|
H A D | init.c | 39 pri_devinit(uint64_t *tok) in pri_devinit() argument 45 if (pri_get(PRI_WAITGET, tok, &new_md_bufp, malloc, pri_free) == in pri_devinit()
|