Home
last modified time | relevance | path

Searched refs:tokp (Results 1 – 15 of 15) sorted by relevance

/titanic_41/usr/src/cmd/rpcgen/
H A Drpc_scan.c71 scan(tok_kind expect, token *tokp) in scan() argument
73 get_token(tokp); in scan()
74 if (tokp->kind != expect) in scan()
82 scan2(tok_kind expect1, tok_kind expect2, token *tokp) in scan2() argument
84 get_token(tokp); in scan2()
85 if (tokp->kind != expect1 && tokp->kind != expect2) in scan2()
93 scan3(tok_kind expect1, tok_kind expect2, tok_kind expect3, token *tokp) in scan3() argument
95 get_token(tokp); in scan3()
96 if (tokp->kind != expect1 && tokp->kind != expect2 && in scan3()
97 tokp->kind != expect3) in scan3()
[all …]
/titanic_41/usr/src/cmd/dispadmin/
H A Diadispadmin.c226 char *tokp; local
273 if ((tokp = strtok(buf, " \t")) == NULL)
276 if ((int)strlen(tokp) > 4) {
277 if (strncmp(tokp, "RES=", 4) != 0)
280 if (tokp[4] == '-')
283 res = strtoul(&tokp[4], (char **)NULL, 10);
284 } else if (strlen(tokp) == 4) {
285 if (strcmp(tokp, "RES=") != 0)
288 if ((tokp = strtok(NULL, " \t")) == NULL)
291 if (tokp[0] == '-')
[all …]
H A Dtsdispadmin.c222 char *tokp; local
269 if ((tokp = strtok(buf, " \t")) == NULL)
272 if ((int)strlen(tokp) > 4) {
273 if (strncmp(tokp, "RES=", 4) != 0)
276 if (tokp[4] == '-')
279 res = strtoul(&tokp[4], (char **)NULL, 10);
280 } else if (strlen(tokp) == 4) {
281 if (strcmp(tokp, "RES=") != 0)
284 if ((tokp = strtok(NULL, " \t")) == NULL)
287 if (tokp[0] == '-')
[all …]
H A Drtdispadmin.c220 char *tokp; local
267 if ((tokp = strtok(buf, " \t")) == NULL)
270 if ((int)strlen(tokp) > 4) {
271 if (strncmp(tokp, "RES=", 4) != 0)
274 if (tokp[4] == '-')
277 res = strtoul(&tokp[4], (char **)NULL, 10);
278 } else if (strlen(tokp) == 4) {
279 if (strcmp(tokp, "RES=") != 0)
282 if ((tokp = strtok(NULL, " \t")) == NULL)
285 if (tokp[0] == '-')
[all …]
H A Dfxdispadmin.c222 char *tokp; in set_fxdptbl() local
311 if ((tokp = strtok(buf, " \t")) == NULL) in set_fxdptbl()
315 fx_dptbl[i].fx_quantum = atol(tokp); in set_fxdptbl()
334 if ((tokp = strtok(NULL, " \t")) != NULL && tokp[0] != '#') in set_fxdptbl()
/titanic_41/usr/src/cmd/svc/startd/
H A Denv.c64 char *tokp, *cp1, *cp2; in init_env() local
123 if ((tokp = strtok(line, " \t")) == NULL) in init_env()
127 cp1 = strchr(tokp, '='); in init_env()
128 if (cp1 == NULL || cp1 == tokp) in init_env()
130 length = strlen(tokp); in init_env()
131 while ((cp1 = strpbrk(tokp, "\"\'")) != NULL) { in init_env()
132 for (cp2 = cp1; cp2 < &tokp[length]; cp2++) in init_env()
141 if (strncmp(tokp, "CMASK=", 6) == 0 || in init_env()
142 strncmp(tokp, "SMF_", 4) == 0) in init_env()
146 (void) strcpy(glob_envp[i], tokp); in init_env()
[all …]
/titanic_41/usr/src/lib/libc/port/gen/
H A Dgettxt.c91 char *tokp; in gettxt() local
100 if (((tokp = strchr(msg_id, ':')) == NULL) || *(tokp+1) == '\0') in gettxt()
102 if ((name_len = (tokp - msg_id)) >= DB_NAME_LEN) in gettxt()
119 while (*++tokp) { in gettxt()
120 if (!isdigit((unsigned char)*tokp)) in gettxt()
/titanic_41/usr/src/lib/libtsnet/common/
H A Dtsol_sgetzcent.c110 char *tokp, *finally; in parse_mlp_list() local
122 tokp = strtok_r(str, KV_DELIMITER, &finally); in parse_mlp_list()
123 for (mc = 0; tokp != NULL; mc++) { in parse_mlp_list()
129 *errstrp = tokp; in parse_mlp_list()
134 if (str_to_mlp(tokp, mlp + mc) == -1) { in parse_mlp_list()
136 *errstrp = tokp; in parse_mlp_list()
139 tokp = strtok_r(NULL, KV_DELIMITER, &finally); in parse_mlp_list()
H A Dtsol_sgettpent.c100 char *tokp, *finally; in get_tn_sl_set() local
105 tokp = strtok_r(setstr, TNDB_COMMA, &finally); in get_tn_sl_set()
106 for (sc = 0; tokp != NULL && sc < NSLS_MAX; sc++) { in get_tn_sl_set()
108 if (str_to_label(tokp, &slp, MAC_LABEL, L_NO_CORRECTION, in get_tn_sl_set()
111 tokp = strtok_r(NULL, TNDB_COMMA, &finally); in get_tn_sl_set()
113 if (tokp != NULL && sc >= NSLS_MAX) in get_tn_sl_set()
/titanic_41/usr/src/cmd/dumpadm/
H A Ddconf.c163 const dc_token_t *tokp; in dconf_open() local
180 for (tokp = tokens; tokp->tok_name != NULL; tokp++) { in dconf_open()
181 if (strcmp(name, tokp->tok_name) == 0) { in dconf_open()
182 if (tokp->tok_parse(dcp, value) == -1) { in dconf_open()
195 if (tokp->tok_name == NULL) { in dconf_open()
250 const dc_token_t *tokp; in dconf_write() local
267 for (tokp = tokens; tokp->tok_name != NULL; tokp++) { in dconf_write()
268 if (fprintf(dcp->dc_conf_fp, "%s=", tokp->tok_name) == -1 || in dconf_write()
269 tokp->tok_print(dcp, dcp->dc_conf_fp) == -1) { in dconf_write()
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_rip.c53 const uint32_t *tokp; in interpret_rip() local
335 tokp = rep->rip_token; in interpret_rip()
344 (long)ntohl(*tokp)); in interpret_rip()
345 tokp++; in interpret_rip()
356 (long)ntohl(*tokp)); in interpret_rip()
357 tokp++; in interpret_rip()
/titanic_41/usr/src/cmd/auditconfig/
H A Dauditconfig.c1142 token_t *tokp; in do_audit() local
1169 if ((tokp = au_to_me()) == NULL) { in do_audit()
1173 if (au_write(rd, tokp) == -1) { in do_audit()
1178 if ((tokp = au_to_mylabel()) == NULL) { in do_audit()
1182 if (au_write(rd, tokp) == -1) { in do_audit()
1188 if ((tokp = au_to_text(audit_str)) == NULL) in do_audit()
1190 if (au_write(rd, tokp) == -1) in do_audit()
1194 if ((tokp = au_to_return64(sorf, retval)) == NULL) in do_audit()
1196 if ((tokp = au_to_return32(sorf, retval)) == NULL) in do_audit()
1200 if (au_write(rd, tokp) == -1) { in do_audit()
/titanic_41/usr/src/lib/libbsm/common/
H A Ddevalloc.c1058 char *tok = NULL, *tokp = NULL; in _write_new_defattrs() local
1068 if ((tokp = (char *)malloc(strlen(devinfo->devopts) +1)) != NULL) { in _write_new_defattrs()
1069 (void) strcpy(tokp, devinfo->devopts); in _write_new_defattrs()
1070 if ((tok = strtok_r(tokp, KV_DELIMITER, &lasts)) != NULL) { in _write_new_defattrs()
1097 char *tok = NULL, *tokp = NULL; in _write_new_entry() local
1115 if ((tokp = (char *)malloc(strlen(devinfo->devopts) + 1)) in _write_new_entry()
1117 (void) strcpy(tokp, devinfo->devopts); in _write_new_entry()
1118 if ((tok = strtok_r(tokp, KV_TOKEN_DELIMIT, &lasts)) != in _write_new_entry()
/titanic_41/usr/src/cmd/init/
H A Dinit.c1932 char *tokp, *cp1, *cp2; in init_env() local
1997 if ((tokp = strtok(line, " \t")) == NULL) in init_env()
2000 if (strchr(tokp, '=') == NULL) in init_env()
2002 length = strlen(tokp); in init_env()
2003 while ((cp1 = strpbrk(tokp, "\"\'")) != NULL) { in init_env()
2005 cp2 < &tokp[length]; cp2++) in init_env()
2010 if (strncmp(tokp, "CMASK=", in init_env()
2015 t = strtol(strchr(tokp, '=') + 1, NULL, in init_env()
2026 (void) strcpy(glob_envp[glob_envn], tokp); in init_env()
2029 } while ((tokp = strtok(NULL, " \t")) != NULL); in init_env()
/titanic_41/usr/src/uts/common/io/rsm/
H A Drsm.c3446 importing_token_t *prev_token, *token, *tmp_token, *tokp; in rsm_send_importer_disconnects() local
3476 tokp = force_disconnect_list; in rsm_send_importer_disconnects()
3482 while (tokp != NULL) { in rsm_send_importer_disconnects()
3483 if (tokp->importing_node == in rsm_send_importer_disconnects()
3487 tokp = tokp->next; in rsm_send_importer_disconnects()
3489 if (tokp == NULL) { in rsm_send_importer_disconnects()
5751 list_element_t *tokp; in rsm_send_suspend() local
5775 tokp = head; in rsm_send_suspend()
5781 while (tokp != NULL) { in rsm_send_suspend()
5782 if (tokp->nodeid == token->importing_node) { in rsm_send_suspend()
[all …]