/illumos-gate/usr/src/lib/libnsl/ipsec/ |
H A D | algs.c | 84 char *lasts, *token; in build_keysizes() local 103 if (token == NULL || (key_default = atoi(token)) == 0) in build_keysizes() 108 if (token == NULL || (key_low = atoi(token)) == 0) in build_keysizes() 113 if (token == NULL || (key_high = atoi(token)) == 0 || in build_keysizes() 119 if (token == NULL || (key_increment = atoi(token)) == 0) in build_keysizes() 140 if (token == NULL) { in build_keysizes() 234 if (token == NULL || (new_num = atoi(token)) == 0) { in build_list() 257 token[strlen(token) - 1] = '\0'; in build_list() 301 if (token == NULL || (new_num = atoi(token)) == 0) { in build_list() 336 alg_names = token; in build_list() [all …]
|
/illumos-gate/usr/src/cmd/eqn/ |
H A D | lex.c | 20 char token[SSIZE]; variable 117 token[sp++] = '\\'; in yylex() 118 token[sp++] = c; in yylex() 123 token[sp] = '\0'; in yylex() 124 yylval = (int)&token[0]; in yylex() 133 getstr(token, SSIZE); in yylex() 235 p1 = strsave(token); in define() 239 p2 = strsave(token); in define() 251 getstr(token, SSIZE); in space() 282 lefteq = token[0]; in delim() [all …]
|
/illumos-gate/usr/src/cmd/cron/ |
H A D | att1.y | 45 %token TIME 46 %token NOW 47 %token NOON 50 %token HOUR 51 %token DAY 52 %token WEEK 54 %token YEAR 55 %token UNIT 56 %token SUFF 58 %token AM [all …]
|
/illumos-gate/usr/src/cmd/fm/fminject/common/ |
H A D | inj_grammar.y | 80 %token INJ_TOK_EVDEF 85 %token INJ_TOK_INT8 86 %token INJ_TOK_INT16 87 %token INJ_TOK_INT32 88 %token INJ_TOK_INT64 89 %token INJ_TOK_UINT8 95 %token INJ_TOK_ENUM 97 %token INJ_TOK_EVENT 98 %token INJ_TOK_FMRI 99 %token INJ_TOK_AUTH [all …]
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_grammar.y | 71 %token DT_KEY_AUTO 73 %token DT_KEY_CASE 74 %token DT_KEY_CHAR 79 %token DT_KEY_DO 81 %token DT_KEY_ELSE 82 %token DT_KEY_ENUM 85 %token DT_KEY_FOR 86 %token DT_KEY_GOTO 87 %token DT_KEY_IF 90 %token DT_KEY_INT [all …]
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | smatch_ignore.c | 81 struct token *token; in load_ignores() local 87 token = get_tokens_file(buf); in load_ignores() 88 if (!token) in load_ignores() 90 if (token_type(token) != TOKEN_STREAMBEGIN) in load_ignores() 92 token = token->next; in load_ignores() 94 if (token_type(token) != TOKEN_IDENT) in load_ignores() 96 name = show_ident(token->ident); in load_ignores() 97 token = token->next; in load_ignores() 100 if (token_type(token) != TOKEN_IDENT) in load_ignores() 102 str = show_ident(token->ident); in load_ignores() [all …]
|
H A D | check_dev_queue_xmit.c | 101 struct token *token; in register_funcs_from_file() local 106 if (!token) in register_funcs_from_file() 108 if (token_type(token) != TOKEN_STREAMBEGIN) in register_funcs_from_file() 110 token = token->next; in register_funcs_from_file() 111 while (token_type(token) != TOKEN_STREAMEND) { in register_funcs_from_file() 112 if (token_type(token) != TOKEN_IDENT) in register_funcs_from_file() 114 func = show_ident(token->ident); in register_funcs_from_file() 115 token = token->next; in register_funcs_from_file() 116 if (token_type(token) != TOKEN_NUMBER) in register_funcs_from_file() 118 arg = atoi(token->number); in register_funcs_from_file() [all …]
|
H A D | check_return.c | 34 struct token *token; in register_must_check_funcs() local 41 token = get_tokens_file(name); in register_must_check_funcs() 42 if (!token) in register_must_check_funcs() 44 if (token_type(token) != TOKEN_STREAMBEGIN) in register_must_check_funcs() 46 token = token->next; in register_must_check_funcs() 47 while (token_type(token) != TOKEN_STREAMEND) { in register_must_check_funcs() 48 if (token_type(token) != TOKEN_IDENT) in register_must_check_funcs() 50 func = show_ident(token->ident); in register_must_check_funcs() 52 token = token->next; in register_must_check_funcs()
|
H A D | check_rosenberg.c | 342 struct token *token; in register_clears_argument() local 347 if (!token) in register_clears_argument() 351 token = token->next; in register_clears_argument() 356 token = token->next; in register_clears_argument() 359 arg = atoi(token->number); in register_clears_argument() 362 token = token->next; in register_clears_argument() 369 struct token *token; in register_copy_funcs_from_file() local 374 if (!token) in register_copy_funcs_from_file() 378 token = token->next; in register_copy_funcs_from_file() 383 token = token->next; in register_copy_funcs_from_file() [all …]
|
H A D | check_bit_shift.c | 89 struct token *token; in register_shifters() local 94 token = get_tokens_file(filename); in register_shifters() 95 if (!token) in register_shifters() 97 if (token_type(token) != TOKEN_STREAMBEGIN) in register_shifters() 99 token = token->next; in register_shifters() 100 while (token_type(token) != TOKEN_STREAMEND) { in register_shifters() 101 if (token_type(token) != TOKEN_IDENT) in register_shifters() 104 token = token->next; in register_shifters() 105 if (token_type(token) != TOKEN_NUMBER) in register_shifters() 108 *val = atoi(token->number); in register_shifters() [all …]
|
H A D | check_indenting.c | 70 struct token *token; in prev_lines_say_endif() local 78 token = pos_get_token(pos); in prev_lines_say_endif() 79 if (token && token_type(token) == TOKEN_IDENT && in prev_lines_say_endif() 209 struct token *token; in register_ignored_macros() local 215 token = get_tokens_file(name); in register_ignored_macros() 216 if (!token) in register_ignored_macros() 218 if (token_type(token) != TOKEN_STREAMBEGIN) in register_ignored_macros() 220 token = token->next; in register_ignored_macros() 221 while (token_type(token) != TOKEN_STREAMEND) { in register_ignored_macros() 222 if (token_type(token) != TOKEN_IDENT) in register_ignored_macros() [all …]
|
H A D | check_macro_side_effects.c | 54 if (!sym->scope || !sym->scope->token) in defined_inside_macro() 56 if (positions_eq(macro_pos, sym->scope->token->pos)) in defined_inside_macro() 137 struct token *token; in register_ignored_macros() local 143 token = get_tokens_file(name); in register_ignored_macros() 144 if (!token) in register_ignored_macros() 146 if (token_type(token) != TOKEN_STREAMBEGIN) in register_ignored_macros() 148 token = token->next; in register_ignored_macros() 149 while (token_type(token) != TOKEN_STREAMEND) { in register_ignored_macros() 150 if (token_type(token) != TOKEN_IDENT) in register_ignored_macros() 152 macro = alloc_string(show_ident(token->ident)); in register_ignored_macros() [all …]
|
H A D | smatch_param_cleared.c | 105 struct token *token; in register_clears_param() local 115 token = get_tokens_file(name); in register_clears_param() 116 if (!token) in register_clears_param() 118 if (token_type(token) != TOKEN_STREAMBEGIN) in register_clears_param() 120 token = token->next; in register_clears_param() 122 if (token_type(token) != TOKEN_IDENT) in register_clears_param() 124 function = show_ident(token->ident); in register_clears_param() 125 token = token->next; in register_clears_param() 126 if (token_type(token) != TOKEN_NUMBER) in register_clears_param() 128 param = atoi(token->number); in register_clears_param() [all …]
|
H A D | check_held_dev.c | 103 struct token *token; in register_returns_held_funcs() local 106 token = get_tokens_file("kernel.returns_held_funcs"); in register_returns_held_funcs() 107 if (!token) in register_returns_held_funcs() 109 if (token_type(token) != TOKEN_STREAMBEGIN) in register_returns_held_funcs() 111 token = token->next; in register_returns_held_funcs() 112 while (token_type(token) != TOKEN_STREAMEND) { in register_returns_held_funcs() 113 if (token_type(token) != TOKEN_IDENT) in register_returns_held_funcs() 115 func = show_ident(token->ident); in register_returns_held_funcs() 120 token = token->next; in register_returns_held_funcs()
|
/illumos-gate/usr/src/cmd/sgs/tsort/common/ |
H A D | errtext.c | 161 char *token; in errverb() local 167 for (token = errstrtok(buf, space); token; in errverb() 168 token = errstrtok((char *)0, space)) { in errverb() 169 if (strcmp(token, "nochange") == 0) { in errverb() 177 } else if (strcmp(token, "silent") == 0) { in errverb() 204 } else if (strcmp(token, "bell") == 0) { in errverb() 208 } else if (strcmp(token, "tag") == 0) { in errverb() 210 } else if (strcmp(token, "notag") == 0) { in errverb() 212 } else if (strcmp(token, "text") == 0) { in errverb() 216 } else if (strcmp(token, "tofix") == 0) { in errverb() [all …]
|
/illumos-gate/usr/src/test/libmlrpc-tests/tests/netrlogon/samlogon_tests/ |
H A D | samlogon.c | 255 token = calloc(1, sizeof (*token)); in main() 256 if (token == NULL) { in main() 266 smb_token_log(token); in main() 269 cmp_token = *token; in main() 272 token = calloc(1, sizeof (*token)); in main() 273 if (token == NULL) { in main() 294 smb_token_log(token); in main() 297 token = calloc(1, sizeof (*token)); in main() 298 if (token == NULL) { in main() 318 token = calloc(1, sizeof (*token)); in main() [all …]
|
/illumos-gate/usr/src/common/smbsrv/ |
H A D | smb_token.c | 58 if ((token == NULL) || (token->tkn_privileges == NULL)) in smb_token_query_privilege() 61 privset = token->tkn_privileges; in smb_token_query_privilege() 78 smb_token_valid(smb_token_t *token) in smb_token_valid() argument 80 if (token == NULL) in smb_token_valid() 83 if ((token->tkn_user.i_sid == NULL) || in smb_token_valid() 84 (token->tkn_owner.i_sid == NULL) || in smb_token_valid() 86 (token->tkn_account_name == NULL) || in smb_token_valid() 87 (token->tkn_domain_name == NULL) || in smb_token_valid() 88 (token->tkn_posix_grps == NULL)) in smb_token_valid() 91 if ((token->tkn_win_grps.i_cnt != 0) && in smb_token_valid() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libpp/ |
H A D | ppbuiltin.c | 46 char* token; in ppbuiltin() local 57 token = pp.token; in ppbuiltin() 89 *pp.token = 0; in ppbuiltin() 90 pp.token = token; in ppbuiltin() 113 pp.token = token; in ppbuiltin() 137 p = pp.token; in ppbuiltin() 138 if (pp.token > pp.valbuf) *pp.token++ = ' '; in ppbuiltin() 143 pp.token = p; in ppbuiltin() 160 pp.token = token; in ppbuiltin() 164 pp.token = token; in ppbuiltin() [all …]
|
H A D | ppcall.c | 109 *pp.token++ = ' '; in ppcall() 129 if (streq(pp.token, tp->token)) in ppcall() 154 c = pp.token - p; in ppcall() 157 pp.token = p + c; in ppcall() 159 *pp.token++ = ' '; in ppcall() 161 if (pp.token > p && *(pp.token - 1) == ' ') in ppcall() 162 pp.token--; in ppcall() 164 *pp.token++ = '\n'; in ppcall() 166 *pp.token++ = ' '; in ppcall() 167 *pp.token = 0; in ppcall() [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_dh/backend/mech/ |
H A D | token.c | 125 if ((stat = __alloc_sig(get_qop(token), in __make_ap_token() 126 &token->verifier)) in __make_ap_token() 159 __free_signature(&token->verifier); in __make_ap_token() 193 __free_signature(&token->verifier); in __make_ap_token() 198 __free_signature(&token->verifier); in __make_ap_token() 221 if ((stat = __alloc_sig(get_qop(token), in __make_token() 222 &token->verifier)) in __make_token() 232 __free_signature(&token->verifier); in __make_token() 246 __free_signature(&token->verifier); in __make_token() 251 __free_signature(&token->verifier); in __make_token() [all …]
|
/illumos-gate/usr/src/cmd/rpcgen/ |
H A D | rpc_scan.h | 100 struct token { struct 104 typedef struct token token; argument 109 extern void scan(tok_kind, token *); 110 extern void scan2(tok_kind, tok_kind, token *); 111 extern void scan3(tok_kind, tok_kind, tok_kind, token *); 112 extern void scan_num(token *); 113 extern void peek(token *); 114 extern int peekscan(tok_kind, token *); 115 extern void get_token(token *);
|
/illumos-gate/usr/src/lib/cfgadm_plugins/usb/common/ |
H A D | cfga_configfile.c | 182 token++; in getvalue() 185 token++; in getvalue() 188 token++; in getvalue() 189 c = *token; in getvalue() 198 token++; in getvalue() 274 token_t token; in lex() local 296 token = STAR; in lex() 299 token = POUND; in lex() 373 token = EOF; in lex() 471 token_t token; in usb_get_conf_rec() local [all …]
|
/illumos-gate/usr/src/cmd/iconv/ |
H A D | scanner.c | 47 static char *token = NULL; variable 59 static struct token { struct 236 if ((token = realloc(token, toksz)) == NULL) { in add_tok() 245 token[tokidx] = 0; in add_tok() 366 if (token == NULL) { in get_symbol() 387 yylval.token = strdup(token); in get_symbol() 392 token = NULL; in get_symbol() 412 if (token == NULL) in consume_token() 448 if (isdigit(*token) || (*token == '-' && isdigit(token[1]))) { in consume_token() 468 yylval.token = strdup(token); in consume_token() [all …]
|
/illumos-gate/usr/src/uts/common/c2/ |
H A D | audit_token.c | 362 return (token); in au_to_text() 434 return (token); in au_to_zonename() 471 return (token); in au_to_strings() 527 return (token); in au_to_arg32() 562 return (token); in au_to_arg64() 593 token = m; in au_to_path() 601 token = au_append_token(token, m); in au_to_path() 604 return (token); in au_to_path() 719 return (token); in au_to_opaque() 1149 return (token); in au_to_privset() [all …]
|
/illumos-gate/usr/src/lib/libpri/common/ |
H A D | pri.c | 132 pri_get(uint8_t wait, uint64_t *token, uint64_t **buf, in pri_get() argument 147 if (ioctl(pri_fd, DSPRI_WAIT, token) < 0) { in pri_get() 162 *token = pri_info.token; in pri_get() 188 if (pri_info2.token != pri_info.token) in pri_get() 191 } while (pri_info2.token != pri_info.token); in pri_get() 195 *token = pri_info.token; in pri_get()
|