Home
last modified time | relevance | path

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

123456

/titanic_41/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 …]
/titanic_41/usr/src/lib/libwrap/
H A Dhosts_access.c204 char *tok; local
213 for (tok = strtok(list, sep); tok != 0; tok = strtok((char *) 0, sep)) {
214 if (STR_EQ(tok, "EXCEPT")) /* EXCEPT: give up */
216 if (match_fn(tok, request)) { /* YES: look for exceptions */
217 while ((tok = strtok((char *) 0, sep)) && STR_NE(tok, "EXCEPT"))
219 return (tok == 0 || list_match((char *) 0, request, match_fn) == 0);
227 static int server_match(tok, request) in server_match() argument
228 char *tok; in server_match()
233 if ((host = split_at(tok + 1, '@')) == 0) { /* plain daemon */
234 return (string_match(tok, eval_daemon(request)));
[all …]
/titanic_41/usr/src/cmd/mandoc/
H A Dmdoc_macro.c236 MDOC_EXPLICIT & mdoc_macros[n->tok].flags) in mdoc_macroend()
308 rew_alt(enum mdoct tok) in rew_alt() argument
310 switch (tok) { in rew_alt()
344 return(tok); in rew_alt()
361 rew_dohalt(enum mdoct tok, enum mdoc_type type, in rew_dohalt() argument
373 MDOC_EXPLICIT & mdoc_macros[tok].flags ? in rew_dohalt()
387 tok = rew_alt(tok); in rew_dohalt()
388 if (tok == p->tok) in rew_dohalt()
403 switch (tok) { in rew_dohalt()
405 if (MDOC_It == p->tok) in rew_dohalt()
[all …]
H A Dman_macro.c110 if ( ! (MAN_EXPLICIT & man_macros[n->tok].flags)) in rew_warn()
160 if (MAN_BLOCK == type && ntok == n->parent->tok && in rew_block()
163 return(ntok == n->tok ? REW_HALT : REW_NOHALT); in rew_block()
173 rew_dohalt(enum mant tok, enum man_type type, const struct man_node *n) in rew_dohalt() argument
192 if (type == n->type && tok == n->tok) { in rew_dohalt()
193 if (MAN_EXPLICIT & man_macros[n->tok].flags) in rew_dohalt()
204 switch (tok) { in rew_dohalt()
214 if (0 == n->nchild && (MAN_P == n->tok || in rew_dohalt()
215 MAN_PP == n->tok || MAN_LP == n->tok)) in rew_dohalt()
247 rew_scope(enum man_type type, struct man *man, enum mant tok) in rew_scope() argument
[all …]
H A Dman.c169 man->last->tok = MAN_MAX; in man_alloc1()
239 enum man_type type, enum mant tok) in man_node_alloc() argument
247 p->tok = tok; in man_node_alloc()
257 man_elem_alloc(struct man *man, int line, int pos, enum mant tok) in man_elem_alloc() argument
261 p = man_node_alloc(man, line, pos, MAN_ELEM, tok); in man_elem_alloc()
270 man_tail_alloc(struct man *man, int line, int pos, enum mant tok) in man_tail_alloc() argument
274 p = man_node_alloc(man, line, pos, MAN_TAIL, tok); in man_tail_alloc()
283 man_head_alloc(struct man *man, int line, int pos, enum mant tok) in man_head_alloc() argument
287 p = man_node_alloc(man, line, pos, MAN_HEAD, tok); in man_head_alloc()
296 man_body_alloc(struct man *man, int line, int pos, enum mant tok) in man_body_alloc() argument
[all …]
H A Dmdoc.c163 mdoc->last->tok = MDOC_MAX; in mdoc_alloc1()
311 assert(tok < MDOC_MAX); in mdoc_macro()
315 if (MDOC_PROLOGUE & mdoc_macros[tok].flags && in mdoc_macro()
323 if ( ! (MDOC_PROLOGUE & mdoc_macros[tok].flags) && in mdoc_macro()
340 return((*mdoc_macros[tok].fp)(mdoc, tok, line, ppos, pos, buf)); in mdoc_macro()
429 enum mdoct tok, enum mdoc_type type) in node_alloc() argument
438 p->tok = tok; in node_alloc()
456 mdoc_tail_alloc(struct mdoc *mdoc, int line, int pos, enum mdoct tok) in mdoc_tail_alloc() argument
460 p = node_alloc(mdoc, line, pos, tok, MDOC_TAIL); in mdoc_tail_alloc()
469 mdoc_head_alloc(struct mdoc *mdoc, int line, int pos, enum mdoct tok) in mdoc_head_alloc() argument
[all …]
/titanic_41/usr/src/lib/libslp/javalib/com/sun/slp/
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 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 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 …]
/titanic_41/usr/src/cmd/sgs/libld/common/
H A Dmap_v2.c66 typedef void (* gts_efunc_t)(Mapfile *mf, Token tok, ld_map_tkval_t *tkv);
144 Token tok; in gettoken_eq() local
149 switch (tok = ld_map_gettoken(mf, 0, &tkv)) { in gettoken_eq()
152 return (tok); in gettoken_eq()
158 return (tok); in gettoken_eq()
164 return (tok); in gettoken_eq()
182 mf_fatal(mf, err, lhs, ld_map_tokenstr(tok, &tkv, &inv_buf)); in gettoken_eq()
448 Token tok; in gettoken_optattr() local
452 switch (tok = ld_map_gettoken(mf, 0, &tkv)) { in gettoken_optattr()
456 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 …]
/titanic_41/usr/src/lib/gss_mechs/mech_dh/backend/mech/
H A DMICwrap.c59 dh_token_desc tok; in __dh_gss_sign() local
61 dh_mic_t mic = &tok.ver.dh_version_u.body.dh_token_body_desc_u.sign; in __dh_gss_sign()
88 tok.ver.verno = cntx->proto_version; in __dh_gss_sign()
89 tok.ver.dh_version_u.body.type = DH_MIC; in __dh_gss_sign()
102 if ((*minor = __make_token(token, message, &tok, &keys)) in __dh_gss_sign()
129 dh_token_desc tok; in __dh_gss_verify() local
131 dh_mic_t mic = &tok.ver.dh_version_u.body.dh_token_body_desc_u.sign; in __dh_gss_verify()
156 &tok, &keys)) != DH_SUCCESS) { in __dh_gss_verify()
168 if (tok.ver.verno != cntx->proto_version || in __dh_gss_verify()
169 tok.ver.dh_version_u.body.type != DH_MIC) { in __dh_gss_verify()
[all …]
/titanic_41/usr/src/lib/libcmd/common/
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 …]
/titanic_41/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 …]
/titanic_41/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 …]
/titanic_41/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 …]
/titanic_41/usr/src/cmd/sgs/crle/common/
H A Dutil.c245 char *tok, *_arg; in dlflags() local
260 if ((tok = strtok_r(_arg, separate, &lasts)) != NULL) { in dlflags()
263 if (strcmp(tok, MSG_ORIG(MSG_MOD_REL_RELATIVE)) == 0) in dlflags()
265 else if (strcmp(tok, MSG_ORIG(MSG_MOD_REL_EXEC)) == 0) in dlflags()
267 else if (strcmp(tok, MSG_ORIG(MSG_MOD_REL_DEPENDS)) == 0) in dlflags()
269 else if (strcmp(tok, MSG_ORIG(MSG_MOD_REL_PRELOAD)) == 0) in dlflags()
271 else if (strcmp(tok, MSG_ORIG(MSG_MOD_REL_SELF)) == 0) in dlflags()
273 else if (strcmp(tok, MSG_ORIG(MSG_MOD_REL_WEAK)) == 0) in dlflags()
275 else if (strcmp(tok, MSG_ORIG(MSG_MOD_REL_ALL)) == 0) in dlflags()
277 else if (strcmp(tok, MSG_ORIG(MSG_MOD_REL_MEMORY)) == 0) in dlflags()
[all …]
/titanic_41/usr/src/lib/abi/apptrace/common/
H A Dabienv.c58 char *tok; in build_env_list() local
66 tok = strtok(envstr, comma); in build_env_list()
67 while (tok != NULL) { in build_env_list()
73 lp->l_libname = tok; in build_env_list()
76 tok = strtok(NULL, comma); in build_env_list()
84 char *tok; in build_env_list1() local
101 tok = strtok(envstr, comma); in build_env_list1()
102 while (tok != NULL) { in build_env_list1()
103 appendlist(list, listend, tok, 1); in build_env_list1()
104 tok = strtok(NULL, comma); in build_env_list1()
[all …]
/titanic_41/usr/src/lib/libldap5/sources/ldap/common/
H A Dgetfilter.c108 char *tag, **tok; in ldap_init_getfilter_buf() local
123 &buffer_len, &tok )) > 0 ) { in ldap_init_getfilter_buf()
129 tag = tok[ 0 ]; in ldap_init_getfilter_buf()
130 NSLDAPI_FREE( tok ); in ldap_init_getfilter_buf()
140 nextflp->lfl_pattern = tok[ 0 ]; in ldap_init_getfilter_buf()
148 ldap_free_strarray( tok ); in ldap_init_getfilter_buf()
152 nextflp->lfl_delims = tok[ 1 ]; in ldap_init_getfilter_buf()
163 tok[ i - 2 ] = tok[ i ]; in ldap_init_getfilter_buf()
173 ldap_free_strarray( tok ); in ldap_init_getfilter_buf()
183 nextfip->lfi_filter = tok[ 0 ]; in ldap_init_getfilter_buf()
[all …]
/titanic_41/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 …]
/titanic_41/usr/src/cmd/awk/
H A Dmaketab.c115 int i, n, tok; in main() local
130 n = sscanf(buf, "%1c %s %s %d", &c, def, name, &tok); in main()
134 if (tok < FIRSTTOKEN || tok > LASTTOKEN) { in main()
136 tok, buf); in main()
139 names[tok-FIRSTTOKEN] = malloc(strlen(name)+1); in main()
140 strcpy(names[tok-FIRSTTOKEN], name); in main()
141 printf("\t(uchar *) \"%s\",\t/* %d */\n", name, tok); in main()
/titanic_41/usr/src/cmd/fm/eversholt/common/
H A Desclex.c86 static int record(int tok, const char *s);
89 static void dopragma(const char *tok);
679 int tok; member
685 record(int tok, const char *s) in record() argument
699 Recorded[Recordnext].tok = tok; in record()
702 yylval.tok.s = s; in record()
703 yylval.tok.file = File; in record()
704 yylval.tok.line = Line; in record()
705 return (tok); in record()
715 if (Recorded[i].s && Recorded[i].tok != ARROW) in dumpline()
[all …]
/titanic_41/usr/src/cmd/sgs/link_audit/common/
H A Denv.c37 char *tok; in build_env_list() local
43 tok = strtok_r(envstr, token, &lasts); in build_env_list()
44 while (tok) { in build_env_list()
50 lp->l_libname = strdup(tok); in build_env_list()
53 tok = strtok_r(NULL, token, &lasts); in build_env_list()
/titanic_41/usr/src/cmd/oawk/
H A Dtoken.c30 struct tok struct
33 } tok[] = { variable
124 else if (n < LASTTOKEN) printf("lex: %s\n", tok[n-257].tnm); in ptoken()
133 return (tok[n-257].tnm); in tokname()
/titanic_41/usr/src/uts/common/fs/sockfs/
H A Dnl7c.c360 char *tok; in ncaportconf_read() local
404 tok = ncaport; in ncaportconf_read()
415 if (c != *tok++) { in ncaportconf_read()
420 if (*tok != NULL) { in ncaportconf_read()
526 char *tok; in ncakmodconf_read() local
566 tok = status; in ncakmodconf_read()
576 if (c != *tok++) { in ncakmodconf_read()
585 if (*tok == NULL) { in ncakmodconf_read()
643 char *tok; in ncalogdconf_read() local
692 tok = NULL; in ncalogdconf_read()
[all …]

123456