Home
last modified time | relevance | path

Searched refs:tok (Results 1 – 25 of 138) sorted by relevance

123456

/illumos-gate/usr/src/cmd/rpcgen/
H A Drpc_parse.c72 token tok; in get_definition() local
75 get_token(&tok); in get_definition()
76 switch (tok.kind) { in get_definition()
100 scan(TOK_SEMICOLON, &tok); in get_definition()
247 token tok; in def_struct() local
254 scan(TOK_IDENT, &tok); in def_struct()
255 defp->def_name = tok.str; in def_struct()
256 scan(TOK_LBRACE, &tok); in def_struct()
269 scan(TOK_SEMICOLON, &tok); in def_struct()
270 peek(&tok); in def_struct()
[all …]
/illumos-gate/usr/src/cmd/mandoc/
H A Dmdoc_macro.c208 mdoc_macro(enum roff_tok tok) in mdoc_macro() argument
210 assert(tok >= MDOC_Dd && tok < MDOC_MAX); in mdoc_macro()
211 return mdoc_macros + (tok - MDOC_Dd); in mdoc_macro()
231 mdoc_macro(n->tok)->flags & MDOC_EXPLICIT) in mdoc_endparse()
233 n->line, n->pos, "%s", roff_name[n->tok]); in mdoc_endparse()
298 n->tok); in rew_pending()
299 if (n->tok == MDOC_Ss) in rew_pending()
332 rew_alt(enum roff_tok tok) in rew_alt() argument
334 switch (tok) { in rew_alt()
368 return tok; in rew_alt()
[all …]
H A Dman_macro.c86 man_macro(enum roff_tok tok) in man_macro() argument
88 assert(tok >= MAN_TH && tok <= MAN_MAX); in man_macro()
89 return man_macros + (tok - MAN_TH); in man_macro()
105 man_macro(n->tok)->flags & in man_unscope()
109 "EOF breaks %s", roff_name[n->tok]); in man_unscope()
111 if ((man_macro(n->parent->tok)->flags & in man_unscope()
125 man_macro(n->tok)->fp == blk_exp) in man_unscope()
128 roff_name[n->tok]); in man_unscope()
160 rew_scope(struct roff_man *man, enum roff_tok tok) in rew_scope() argument
167 if (tok == MAN_RS && n->child == NULL && in rew_scope()
[all …]
H A Dman.c89 man_macro(man->last->parent->tok)->flags & MAN_ESCOPED) in man_descope()
96 roff_body_alloc(man, line, offs, man->last->tok); in man_descope()
128 if (man->last->tok == MAN_SH || man->last->tok == MAN_SS) in man_ptext()
182 enum roff_tok tok; in man_pmacro() local
189 tok = TOKEN_NONE; in man_pmacro()
193 tok = roffhash_find(man->manmac, buf + ppos, sz); in man_pmacro()
194 if (tok == TOKEN_NONE) { in man_pmacro()
232 man_breakscope(man, tok); in man_pmacro()
248 (*man_macro(tok)->fp)(man, tok, ln, ppos, &offs, buf); in man_pmacro()
252 if (man->quick && tok == MAN_SH) { in man_pmacro()
[all …]
H A Dmdoc.c85 mdoc_tail_alloc(struct roff_man *mdoc, int line, int pos, enum roff_tok tok) in mdoc_tail_alloc() argument
89 p = roff_node_alloc(mdoc, line, pos, ROFFT_TAIL, tok); in mdoc_tail_alloc()
96 enum roff_tok tok, struct roff_node *body) in mdoc_endbody_alloc() argument
102 p = roff_node_alloc(mdoc, line, pos, ROFFT_BODY, tok); in mdoc_endbody_alloc()
113 enum roff_tok tok, struct mdoc_arg *args) in mdoc_block_alloc() argument
117 p = roff_node_alloc(mdoc, line, pos, ROFFT_BLOCK, tok); in mdoc_block_alloc()
122 switch (tok) { in mdoc_block_alloc()
140 enum roff_tok tok, struct mdoc_arg *args) in mdoc_elem_alloc() argument
144 p = roff_node_alloc(mdoc, line, pos, ROFFT_ELEM, tok); in mdoc_elem_alloc()
149 switch (tok) { in mdoc_elem_alloc()
[all …]
H A Dmanpath.c171 size_t linesz, tok, toklen; in manconf_file() local
190 for (tok = 0; tok < sizeof(toks)/sizeof(toks[0]); tok++) { in manconf_file()
191 toklen = strlen(toks[tok]); in manconf_file()
194 strncmp(cp, toks[tok], toklen) == 0) { in manconf_file()
202 switch (tok) { in manconf_file()
238 size_t len, tok; in manconf_output() local
240 for (tok = 0; tok < ntoks; tok++) { in manconf_output()
241 len = strlen(toks[tok]); in manconf_output()
242 if (strncmp(cp, toks[tok], len) == 0 && in manconf_output()
253 if (tok < 8 && *cp == '\0') { in manconf_output()
[all …]
H A Dman_validate.c120 switch (n->tok) { in man_validate()
123 n->tok = MAN_PP; in man_validate()
159 if (n->tok < ROFF_MAX) { in man_validate()
163 assert(n->tok >= MAN_TH && n->tok < MAN_MAX); in man_validate()
164 cp = man_valids + (n->tok - MAN_TH); in man_validate()
343 if (nc->tok == MAN_PP && nc->body->child != NULL) { in post_SH()
351 if (nc->tok == MAN_PP || nc->tok == ROFF_sp || nc->tok == ROFF_br) { in post_SH()
353 "%s after %s", roff_name[nc->tok], roff_name[n->tok]); in post_SH()
362 if ((nc = n->last) != NULL && nc->tok == ROFF_br) { in post_SH()
365 roff_name[nc->tok], roff_name[n->tok]); in post_SH()
[all …]
H A Dmdoc_validate.c314 switch (n->tok) { in mdoc_validate()
316 n->tok = MDOC_Pp; in mdoc_validate()
320 n->tok = MDOC_Ft; in mdoc_validate()
348 (np->tok != MDOC_Cd && np->tok != MDOC_Fd)) in mdoc_validate()
351 (np->tok != MDOC_It || np->type != ROFFT_HEAD || in mdoc_validate()
354 if (np->tok == MDOC_It || (np->type == ROFFT_BODY && in mdoc_validate()
355 (np->tok == MDOC_Sh || np->tok == MDOC_Ss))) in mdoc_validate()
381 if (n->tok < ROFF_MAX) { in mdoc_validate()
386 assert(n->tok >= MDOC_Dd && n->tok < MDOC_MAX); in mdoc_validate()
387 p = mdoc_valids + (n->tok - MDOC_Dd); in mdoc_validate()
[all …]
/illumos-gate/usr/src/lib/libwrap/
H A Dhosts_access.c202 char *tok; local
211 for (tok = strtok(list, sep); tok != 0; tok = strtok((char *) 0, sep)) {
212 if (STR_EQ(tok, "EXCEPT")) /* EXCEPT: give up */
214 if (match_fn(tok, request)) { /* YES: look for exceptions */
215 while ((tok = strtok((char *) 0, sep)) && STR_NE(tok, "EXCEPT"))
217 return (tok == 0 || list_match((char *) 0, request, match_fn) == 0);
225 static int server_match(tok, request) in server_match() argument
226 char *tok; in server_match()
231 if ((host = split_at(tok + 1, '@')) == 0) { /* plain daemon */
232 return (string_match(tok, eval_daemon(request)));
[all …]
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/
H A DSLPV1SSrvMsg.java457 int tok = 0; in parseInternal() local
461 tok = eatWhite(tk); in parseInternal()
466 if (tok == OPEN_PAREN) { in parseInternal()
470 tok = eatWhite(tk); in parseInternal()
477 int logOp = tok; in parseInternal()
483 tok = tk.nextToken(); in parseInternal()
487 if (tok == StreamTokenizer.TT_WORD) { in parseInternal()
540 tok = eatWhite(tk); in parseInternal()
542 if (tok != StreamTokenizer.TT_EOF) { in parseInternal()
567 int tok = 0; in parseLogicalExpression() local
[all …]
H A DServiceType.java258 String tok = st.nextToken(); in parse() local
260 if (tok.equals(":") || tok.equals(".")) { in parse()
267 if (!tok.equalsIgnoreCase(Defaults.SERVICE_PREFIX)) { in parse()
273 type1 = type1 + tok.toLowerCase(); in parse()
282 tok = st.nextToken(); in parse()
301 tok = st.nextToken(); in parse()
303 if (!tok.equals(":")) { in parse()
326 tok = st.nextToken(); in parse()
330 if (tok.equals(".")) { in parse()
331 tok = st.nextToken(); in parse()
[all …]
H A DParser.java290 int tok = tk.nextToken(); in parseFilter() local
294 if (tok != OPAREN) { in parseFilter()
305 tok = tk.nextToken(); in parseFilter()
309 if (tok == AND || tok == OR) { in parseFilter()
310 ret = parseFilterlist(tk, ev, locale, (char)tok, invert, eval); in parseFilter()
312 } else if (tok == NOT) { in parseFilter()
315 } else if (tok == StreamTokenizer.TT_WORD) { in parseFilter()
330 tok = tk.nextToken(); in parseFilter()
334 if (tok != CPAREN) { in parseFilter()
390 int tok = tk.nextToken(); in parseFilterlist() local
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_dh/backend/mech/
H A DMICwrap.c57 dh_token_desc tok; in __dh_gss_sign() local
59 dh_mic_t mic = &tok.ver.dh_version_u.body.dh_token_body_desc_u.sign; in __dh_gss_sign()
86 tok.ver.verno = cntx->proto_version; in __dh_gss_sign()
87 tok.ver.dh_version_u.body.type = DH_MIC; in __dh_gss_sign()
100 if ((*minor = __make_token(token, message, &tok, &keys)) in __dh_gss_sign()
127 dh_token_desc tok; in __dh_gss_verify() local
129 dh_mic_t mic = &tok.ver.dh_version_u.body.dh_token_body_desc_u.sign; in __dh_gss_verify()
154 &tok, &keys)) != DH_SUCCESS) { in __dh_gss_verify()
166 if (tok.ver.verno != cntx->proto_version || in __dh_gss_verify()
167 tok.ver.dh_version_u.body.type != DH_MIC) { in __dh_gss_verify()
[all …]
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dmap_v2.c71 typedef void (* gts_efunc_t)(Mapfile *mf, Token tok, ld_map_tkval_t *tkv);
150 Token tok; in gettoken_eq() local
155 switch (tok = ld_map_gettoken(mf, 0, &tkv)) { in gettoken_eq()
158 return (tok); in gettoken_eq()
164 return (tok); in gettoken_eq()
170 return (tok); in gettoken_eq()
188 mf_fatal(mf, err, lhs, ld_map_tokenstr(tok, &tkv, &inv_buf)); in gettoken_eq()
454 Token tok; in gettoken_optattr() local
458 switch (tok = ld_map_gettoken(mf, 0, &tkv)) { in gettoken_optattr()
462 return (tok); in gettoken_optattr()
[all …]
H A Dmap.c73 Token tok; /* Current token. */ in map_cap() local
86 while ((tok = ld_map_gettoken(mf, TK_F_STRLC, &tkv)) != in map_cap()
88 if (tok != TK_STRING) { in map_cap()
89 if (tok != TK_ERROR) in map_cap()
319 Token tok; /* Current token. */ in map_equal() local
329 while ((tok = ld_map_gettoken(mf, TK_F_STRLC, &tkv)) != in map_equal()
331 if (tok != TK_STRING) { in map_equal()
332 if (tok != TK_ERROR) in map_equal()
599 Token tok; in map_colon() local
614 while (((tok = ld_map_gettoken(mf, 0, &tkv)) != TK_COLON) && in map_colon()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Dexpr.c192 register int tok; in getnode() local
268 tok = expr_or(state, np); in getnode()
269 if (tok != ')') in getnode()
296 register int tok = getnode(state, np); in expr_cond() local
298 while (tok==':') in expr_cond()
305 tok = getnode(state, &rp); in expr_cond()
342 return tok; in expr_cond()
347 register int tok = expr_cond(state, np); in expr_mult() local
349 while ((tok&~T_OP)==T_MULT) in expr_mult()
352 int op = (tok&T_OP); in expr_mult()
[all …]
/illumos-gate/usr/src/lib/libnsl/dial/
H A Dsysfiles.c159 char *tok, buf[BUFSIZ]; in scansys() local
194 tok = strtok(buf, " \t"); in scansys()
195 if (namematch("service=", tok, service)) { in scansys()
232 char *tok, buf[BUFSIZ]; in scancfg() local
244 tok = strtok(buf, " \t"); in scancfg()
245 if (namematch("service=", tok, service)) { in scancfg()
246 tok = strtok((char *)0, " \t"); in scancfg()
247 if (namematch("device=", tok, device)) { in scancfg()
326 char *tok; in tokenize() local
329 while ((tok = strtok(NULL, " \t")) != NULL) { in tokenize()
[all …]
/illumos-gate/usr/src/cmd/bnu/
H A Dsysfiles.c159 char *tok, buf[BUFSIZ]; local
166 tok = strtok(buf, " \t");
167 if (namematch("service=", tok, service)) {
203 char *tok, buf[BUFSIZ]; local
217 tok = strtok(buf, " \t");
218 if (namematch("service=", tok, service)) {
219 tok = strtok((char *)0, " \t");
220 if ( namematch("device=", tok, device)) {
302 { char *tok; in tokenize() local
305 while ((tok = strtok((char *) NULL, " \t")) != NULL) { in tokenize()
[all …]
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb2_fsctl_odx.c183 smb_odx_token_t *tok = NULL; in smb2_fsctl_odx_read() local
354 tok = smb_srm_zalloc(sr, sizeof (*tok)); in smb2_fsctl_odx_read()
355 tok->tok_type = tok_type; in smb2_fsctl_odx_read()
356 tok->tok_reserved = 0; in smb2_fsctl_odx_read()
358 tok->tok_len = sizeof (*tn1); in smb2_fsctl_odx_read()
359 tn1 = &tok->tok_u.u_tok_native1; in smb2_fsctl_odx_read()
367 rc = smb_odx_put_token(fsctl->out_mbc, tok); in smb2_fsctl_odx_read()
389 smb_odx_token_t *tok = NULL; in smb2_fsctl_odx_write() local
423 tok = smb_srm_zalloc(sr, sizeof (*tok)); in smb2_fsctl_odx_write()
424 rc = smb_odx_get_token(fsctl->in_mbc, tok); in smb2_fsctl_odx_write()
[all …]
/illumos-gate/usr/src/cmd/modload/
H A Dplcysubr.c312 char *tok; in delete_one_entry() local
324 tok = fep->entry; in delete_one_entry()
325 while (*tok && isspace(*tok)) in delete_one_entry()
326 tok++; in delete_one_entry()
328 if (*tok == '\0') { in delete_one_entry()
334 tail = strpbrk(tok, "\t\n "); in delete_one_entry()
336 tail = tok + strlen(tok); in delete_one_entry()
341 min = strchr(tok, ':'); in delete_one_entry()
346 len = strlen(tok); in delete_one_entry()
354 if (strncmp(entry, tok, len) == 0 && in delete_one_entry()
[all …]
/illumos-gate/usr/src/lib/abi/apptrace/common/
H A Dabienv.c56 char *tok; in build_env_list() local
64 tok = strtok(envstr, comma); in build_env_list()
65 while (tok != NULL) { in build_env_list()
71 lp->l_libname = tok; in build_env_list()
74 tok = strtok(NULL, comma); in build_env_list()
82 char *tok; in build_env_list1() local
99 tok = strtok(envstr, comma); in build_env_list1()
100 while (tok != NULL) { in build_env_list1()
101 appendlist(list, listend, tok, 1); in build_env_list1()
102 tok = strtok(NULL, comma); in build_env_list1()
[all …]
/illumos-gate/usr/src/cmd/sgs/crle/common/
H A Dutil.c246 char *tok, *_arg; in dlflags() local
261 if ((tok = strtok_r(_arg, separate, &lasts)) != NULL) { in dlflags()
264 if (strcmp(tok, MSG_ORIG(MSG_MOD_REL_RELATIVE)) == 0) in dlflags()
266 else if (strcmp(tok, MSG_ORIG(MSG_MOD_REL_EXEC)) == 0) in dlflags()
268 else if (strcmp(tok, MSG_ORIG(MSG_MOD_REL_DEPENDS)) == 0) in dlflags()
270 else if (strcmp(tok, MSG_ORIG(MSG_MOD_REL_PRELOAD)) == 0) in dlflags()
272 else if (strcmp(tok, MSG_ORIG(MSG_MOD_REL_SELF)) == 0) in dlflags()
274 else if (strcmp(tok, MSG_ORIG(MSG_MOD_REL_WEAK)) == 0) in dlflags()
276 else if (strcmp(tok, MSG_ORIG(MSG_MOD_REL_ALL)) == 0) in dlflags()
278 else if (strcmp(tok, MSG_ORIG(MSG_MOD_REL_MEMORY)) == 0) in dlflags()
[all …]
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Dgetfilter.c105 char *tag, **tok; in ldap_init_getfilter_buf() local
120 &buffer_len, &tok )) > 0 ) { in ldap_init_getfilter_buf()
126 tag = tok[ 0 ]; in ldap_init_getfilter_buf()
127 NSLDAPI_FREE( tok ); in ldap_init_getfilter_buf()
137 nextflp->lfl_pattern = tok[ 0 ]; in ldap_init_getfilter_buf()
145 ldap_free_strarray( tok ); in ldap_init_getfilter_buf()
149 nextflp->lfl_delims = tok[ 1 ]; in ldap_init_getfilter_buf()
160 tok[ i - 2 ] = tok[ i ]; in ldap_init_getfilter_buf()
170 ldap_free_strarray( tok ); in ldap_init_getfilter_buf()
180 nextfip->lfi_filter = tok[ 0 ]; in ldap_init_getfilter_buf()
[all …]
/illumos-gate/usr/src/cmd/picl/plugins/lib/picld_pluginutil/
H A Dpicld_pluginutil.c215 char *tok; in parse_version() local
221 tok = strtok_r(line, WHITESPACE, &last); in parse_version()
222 if (tok == NULL) in parse_version()
238 tok = strtok_r(last, WHITESPACE, &last); in parse_version()
239 if (tok != NULL) in parse_version()
263 char *tok; in parse_path() local
272 tok = strtok_r(last, WHITESPACE, &last); in parse_path()
273 if (tok != NULL) in parse_path()
312 char *tok; in parse_node() local
318 tok = strtok_r(line, WHITESPACE, &last); in parse_node()
[all …]
/illumos-gate/usr/src/common/definit/
H A Ddefinit.c169 char *tok; in definit_token() local
172 tok = NULL; in definit_token()
175 tok = strtok_r(NULL, SEPARATORS, &state->di_tok); in definit_token()
177 if (tok == NULL) in definit_token()
178 tok = definit_nextline(state); in definit_token()
180 if (tok == NULL) in definit_token()
183 if (strchr(tok, '=') != NULL && *tok != '=') in definit_token()
184 return (tok); in definit_token()

123456