Home
last modified time | relevance | path

Searched refs:tok (Results 51 – 75 of 138) sorted by relevance

123456

/illumos-gate/usr/src/cmd/picl/plugins/sun4u/grover/envd/
H A Dpiclenvd.c794 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 Ddm_platform.c117 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 Dfc_led_parse.c157 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 Dmandoc.c558 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 Dmdoc_argv.c277 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 Droff_html.c61 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 Dman_term.c143 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 Dtag.c211 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 Dtree.c143 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 Dstrtoset.c206 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 Dppfsm.h38 #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 Dpkcs11_uri.c128 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 Dmain.c247 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 Dstrtok.c54 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 Dtest_common.c277 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 DAttributePattern.java100 String tok = tk.nextToken(); in AttributePattern() local
104 if (tok.equals(WILDCARD)) { in AttributePattern()
115 middle = tok; in AttributePattern()
H A DDATable.java407 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 Dtransport.c416 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 Dlist.c206 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 Dcontext_establish.c803 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 Drdwr_efi.c648 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 Dfmd_conf.c265 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 Dlibgrub_fs.c216 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 Dpriplugin.c246 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 Dinit.c39 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()

123456