/illumos-gate/usr/src/tools/smatch/src/ |
H A D | smatch_function_hashtable.h | 88 struct token *token; in load_hashtable_helper() local 92 token = get_tokens_file(filename); in load_hashtable_helper() 93 if (!token) in load_hashtable_helper() 95 if (token_type(token) != TOKEN_STREAMBEGIN) in load_hashtable_helper() 97 token = token->next; in load_hashtable_helper() 98 while (token_type(token) != TOKEN_STREAMEND) { in load_hashtable_helper() 99 if (token_type(token) != TOKEN_IDENT) in load_hashtable_helper() 101 name = alloc_string(show_ident(token->ident)); in load_hashtable_helper() 103 token = token->next; in load_hashtable_helper()
|
H A D | check_sizeof.c | 127 struct token *token; in register_macro_takes_sizeof_argument() local 133 token = get_tokens_file(name); in register_macro_takes_sizeof_argument() 134 if (!token) in register_macro_takes_sizeof_argument() 136 if (token_type(token) != TOKEN_STREAMBEGIN) in register_macro_takes_sizeof_argument() 138 token = token->next; in register_macro_takes_sizeof_argument() 139 while (token_type(token) != TOKEN_STREAMEND) { in register_macro_takes_sizeof_argument() 140 if (token_type(token) != TOKEN_IDENT) in register_macro_takes_sizeof_argument() 142 macro = alloc_string(show_ident(token->ident)); in register_macro_takes_sizeof_argument() 144 token = token->next; in register_macro_takes_sizeof_argument()
|
H A D | check_deref.c | 254 struct token *token; in register_allocation_funcs() local 259 if (!token) in register_allocation_funcs() 261 if (token_type(token) != TOKEN_STREAMBEGIN) in register_allocation_funcs() 263 token = token->next; in register_allocation_funcs() 265 if (token_type(token) != TOKEN_IDENT) in register_allocation_funcs() 267 func = show_ident(token->ident); in register_allocation_funcs() 268 token = token->next; in register_allocation_funcs() 269 if (token_type(token) == TOKEN_IDENT) in register_allocation_funcs() 271 else if (token_type(token) == TOKEN_NUMBER) in register_allocation_funcs() 272 arg = atoi(token->number); in register_allocation_funcs() [all …]
|
H A D | lib.c | 75 struct token *skip_to(struct token *token, int op) in skip_to() argument 77 while (!match_op(token, op) && !eof_token(token)) in skip_to() 78 token = token->next; in skip_to() 83 struct token *expect(struct token *token, int op, const char *where) in expect() argument 89 sparse_error(token->pos, "got %s", show_token(token)); in expect() 105 void unexpected(struct token *token, const char *errmsg) in unexpected() argument 110 sparse_error(token->pos, "got %s", show_token(token)); in unexpected() 1454 int builtin = token && !token->pos.stream; in sparse_tokenstream() 1457 token = preprocess(token); in sparse_tokenstream() 1469 struct token *next = token->next; in sparse_tokenstream() [all …]
|
H A D | check_unwind.c | 158 struct token *token; in register_unwind_functions() local 161 token = get_tokens_file("kernel.unwind_functions"); in register_unwind_functions() 162 if (!token) in register_unwind_functions() 164 if (token_type(token) != TOKEN_STREAMBEGIN) in register_unwind_functions() 166 token = token->next; in register_unwind_functions() 167 while (token_type(token) != TOKEN_STREAMEND) { in register_unwind_functions() 168 if (token_type(token) != TOKEN_IDENT) in register_unwind_functions() 170 func = show_ident(token->ident); in register_unwind_functions() 172 token = token->next; in register_unwind_functions()
|
H A D | check_uninitialized.c | 352 struct token *token; in register_ignored_params_from_file() local 360 token = get_tokens_file(name); in register_ignored_params_from_file() 361 if (!token) in register_ignored_params_from_file() 363 if (token_type(token) != TOKEN_STREAMBEGIN) in register_ignored_params_from_file() 365 token = token->next; in register_ignored_params_from_file() 367 if (token_type(token) != TOKEN_IDENT) in register_ignored_params_from_file() 369 func = show_ident(token->ident); in register_ignored_params_from_file() 371 token = token->next; in register_ignored_params_from_file() 372 if (token_type(token) != TOKEN_NUMBER) in register_ignored_params_from_file() 374 param = atoi(token->number); in register_ignored_params_from_file() [all …]
|
/illumos-gate/usr/src/cmd/localedef/ |
H A D | scanner.c | 48 static char *token = NULL; variable 67 static struct token { struct 338 if ((token = realloc(token, toksz)) == NULL) { in add_tok() 347 token[tokidx] = 0; in add_tok() 514 if (token == NULL) { in get_symbol() 551 yylval.token = strdup(token); in get_symbol() 552 token = NULL; in get_symbol() 577 if (token == NULL) in consume_token() 613 if (isdigit(*token) || (*token == '-' && isdigit(token[1]))) { in consume_token() 631 yylval.token = strdup(token); in consume_token() [all …]
|
/illumos-gate/usr/src/cmd/smbsrv/smbd/ |
H A D | smbd_logon.c | 88 smb_token_t *token = NULL; in smbd_user_auth_logon() local 130 token = smb_logon(&tmp_user); in smbd_user_auth_logon() 144 smb_token_destroy(token); in smbd_user_auth_logon() 145 token = NULL; in smbd_user_auth_logon() 147 return (token); in smbd_user_auth_logon() 169 if (token == NULL) { in smbd_logon_audit() 177 uid = token->tkn_user.i_id; in smbd_logon_audit() 178 gid = token->tkn_primary_grp.i_id; in smbd_logon_audit() 182 domain = token->tkn_domain_name; in smbd_logon_audit() 226 if (token) { in smbd_logon_audit() [all …]
|
/illumos-gate/usr/src/lib/cfgadm_plugins/ib/common/ |
H A D | cfga_conf.c | 168 token = STAR; in ib_lex() 171 token = POUND; in ib_lex() 174 token = COLON; in ib_lex() 180 token = COMMA; in ib_lex() 183 token = SLASH; in ib_lex() 244 token = EOF; in ib_lex() 306 token = NAME; in ib_lex() 489 while ((token != EOF) && (token != SEMICOLON)) { in ib_get_services() 490 if (token == STAR || token == POUND) { in ib_get_services() 495 } else if (token == NAME || token == STRING) { in ib_get_services() [all …]
|
/illumos-gate/usr/src/lib/libsrpt/common/ |
H A D | libsrpt.c | 102 *token = stmf_token; in srpt_GetConfig() 128 STMF_PORT_PROVIDER_TYPE, &token); in srpt_SetConfig() 162 uint64_t token; in srpt_GetDefaultState() local 169 ret = srpt_GetConfig(&cfgnv, &token); in srpt_GetDefaultState() 206 uint64_t token; in srpt_SetDefaultState() local 208 ret = srpt_GetConfig(&cfgnv, &token); in srpt_SetDefaultState() 224 ret = srpt_SetConfig(cfgnv, token); in srpt_SetDefaultState() 251 uint64_t token; in srpt_SetTargetState() local 297 ret = srpt_SetConfig(cfgnv, token); in srpt_SetTargetState() 324 uint64_t token; in srpt_GetTargetState() local [all …]
|
/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | ckparam.c | 97 char *token; in proc_arch() local 100 token = strtok(value, ", "); in proc_arch() 102 while (token) { in proc_arch() 103 ret_val += too_long(param, token, TOKLEN); in proc_arch() 104 ret_val += not_ascii(param, token); in proc_arch() 105 token = strtok(NULL, ", "); in proc_arch() 130 char *token; in proc_category() local 133 token = strtok(value, ", "); in proc_category() 135 while (token) { in proc_category() 137 ret_val += not_alnum(param, token); in proc_category() [all …]
|
H A D | mappath.c | 66 char *token; in mappath() local 95 if ((token = getenv(varname)) != NULL && in mappath() 96 *token != '\0') { in mappath() 98 while (*token) in mappath() 99 *copy++ = *token++; in mappath() 200 char *token; in mapvar() local 211 if (((token = getenv(&varname[1])) != NULL) && in mapvar() 212 *token) { in mapvar() 214 while (*token) in mapvar() 215 *varname++ = *token++; in mapvar()
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_cred.c | 62 smb_cred_create(smb_token_t *token) in smb_cred_create() argument 70 ASSERT(token); in smb_cred_create() 71 ASSERT(token->tkn_posix_grps); in smb_cred_create() 72 posix_grps = token->tkn_posix_grps; in smb_cred_create() 83 if (!IDMAP_ID_IS_EPHEMERAL(token->tkn_user.i_id) && in smb_cred_create() 87 gid = token->tkn_primary_grp.i_id; in smb_cred_create() 90 if (crsetugid(cr, token->tkn_user.i_id, gid) != 0) { in smb_cred_create() 100 smb_cred_set_sid(&token->tkn_user, &ksid); in smb_cred_create() 102 smb_cred_set_sid(&token->tkn_primary_grp, &ksid); in smb_cred_create() 104 smb_cred_set_sid(&token->tkn_owner, &ksid); in smb_cred_create() [all …]
|
H A D | smb_authenticate.c | 427 smb_token_t *token = NULL; in smb_auth_get_token() local 467 ok = smb_token_xdr(&xdrs, token); in smb_auth_get_token() 479 cr = smb_cred_create(token); in smb_auth_get_token() 486 token->tkn_domain_name, token->tkn_account_name, in smb_auth_get_token() 487 token->tkn_flags, privileges, token->tkn_audit_sid); in smb_auth_get_token() 505 smb2_sign_begin(sr, token); in smb_auth_get_token() 507 smb_sign_begin(sr, token); in smb_auth_get_token() 511 smb_token_free(token); in smb_auth_get_token() 519 if (token != NULL) in smb_auth_get_token() 520 smb_token_free(token); in smb_auth_get_token() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | parse.c | 539 if(sym!=ELSESYM || (lexp->token!=ELIFSYM && lexp->token!=FISYM)) in sh_cmd() 557 while(t && ((token=lexp->token)==ANDFSYM || token==ORFSYM)) in list() 576 if(token==TIMESYM || token==NOTSYM) in term() 852 if((flag && lexp->token!=LBRACE) || lexp->token==EOFSYM) in funct() 1228 if(lexp->token != NL && lexp->token !=';') in item() 1244 if(lexp->token != NL && lexp->token !=';') in item() 1342 if(lexp->token=='&' || lexp->token=='|') in item() 1666 return(token); in skipnl() 1676 register int iof = lexp->digits, token=lexp->token; in inout() local 1934 switch(token) in test_primary() [all …]
|
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | netr_logon.c | 111 if (token->tkn_user.i_sid == NULL) in smb_decode_krb5_pac() 116 if (token->tkn_primary_grp.i_sid == NULL) in smb_decode_krb5_pac() 120 token->tkn_account_name = in smb_decode_krb5_pac() 122 if (token->tkn_account_name == NULL) in smb_decode_krb5_pac() 127 token->tkn_domain_name = in smb_decode_krb5_pac() 129 if (token->tkn_domain_name == NULL) in smb_decode_krb5_pac() 402 if (token->tkn_user.i_sid == NULL) in netr_setup_token() 427 if (token->tkn_account_name == NULL || token->tkn_domain_name == NULL) in netr_setup_token() 886 smb_token_t *token) in netr_setup_token_wingrps() argument 891 &token->tkn_win_grps); in netr_setup_token_wingrps() [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_dh/backend/mech/ |
H A D | context.c | 98 gss_buffer_t token /* GSS token */) in __dh_gss_delete_sec_context() argument 120 if (token) { in __dh_gss_delete_sec_context() 121 token->length = 0; in __dh_gss_delete_sec_context() 122 token->value = NULL; in __dh_gss_delete_sec_context() 161 gss_ctx_id_t *context, gss_buffer_t token) in __dh_gss_export_sec_context() argument 261 gss_ctx_id_t context, gss_buffer_t token) in __dh_gss_process_context_token() argument 287 dh_token_desc token; in __dh_gss_wrap_size_limit() local 320 token.ver.verno = DH_PROTO_VERSION; in __dh_gss_wrap_size_limit() 321 token.ver.dh_version_u.body.type = DH_WRAP; in __dh_gss_wrap_size_limit() 327 token.verifier.dh_signature_len = sigsize; in __dh_gss_wrap_size_limit() [all …]
|
/illumos-gate/usr/src/tools/cscope-fast/ |
H A D | scanner.l | 159 token = FCNDEF; 165 token = FCNCALL; 357 token = DEFINE; 404 token = FCNDEF; 416 token = FCNDEF; 446 token = IDENT; 493 token = IDENT; 554 token = t; 730 token = DEFINE; 940 switch (token) { [all …]
|
/illumos-gate/usr/src/lib/libsqlite/src/ |
H A D | tokenize.c | 577 token = tkSEMI; in sqlite_complete() 585 token = tkWS; in sqlite_complete() 590 token = tkOTHER; in sqlite_complete() 597 token = tkWS; in sqlite_complete() 602 token = tkOTHER; in sqlite_complete() 607 token = tkWS; in sqlite_complete() 614 token = tkOTHER; in sqlite_complete() 623 token = tkOTHER; in sqlite_complete() 654 token = tkEND; in sqlite_complete() 663 token = tkOTHER; in sqlite_complete() [all …]
|
/illumos-gate/usr/src/cmd/format/ |
H A D | startup.c | 417 TOKEN token; in sup_prxfile() local 491 TOKEN token; in sup_setpath() local 625 clean_token(ident, token); in sup_setdtype() 832 TOKEN token; in sup_change_spec() local 866 clean_token(ident, token); in sup_change_spec() 914 i = sup_gettoken(token); in sup_change_spec() 920 clean_token(ident, token); in sup_change_spec() 1033 clean_token(ident, token); in sup_setpart() 1193 token); in sup_setpart() 1210 token); in sup_setpart() [all …]
|
/illumos-gate/usr/src/uts/common/fs/zfs/lua/ |
H A D | llex.c | 73 const char *luaX_token2str (LexState *ls, int token) { in luaX_token2str() argument 75 lua_assert(token == cast(unsigned char, token)); in luaX_token2str() 76 return (lisprint(token)) ? luaO_pushfstring(ls->L, LUA_QL("%c"), token) : in luaX_token2str() 80 const char *s = luaX_tokens[token - FIRST_RESERVED]; in luaX_token2str() 89 static const char *txtToken (LexState *ls, int token) { in txtToken() argument 90 switch (token) { in txtToken() 97 return luaX_token2str(ls, token); in txtToken() 106 if (token) in lexerror() 113 lexerror(ls, msg, ls->t.token); in luaX_syntaxerror() 525 lua_assert(ls->lookahead.token == TK_EOS); in luaX_lookahead() [all …]
|
/illumos-gate/usr/src/cmd/oawk/ |
H A D | awk.g.y | 33 %token FINAL FATAL 34 %token LT LE GT GE EQ NE 35 %token MATCH NOTMATCH 36 %token APPEND 39 %token JUMP 40 %token XBEGIN XEND 41 %token NL 42 %token PRINT PRINTF SPRINTF SPLIT 44 %token PROGRAM PASTAT PASTAT2 64 %token NEWSTAT [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_grammar.y | 91 %token <l_string> MDB_TOK_SYMBOL 92 %token <l_string> MDB_TOK_STRING 93 %token <l_char> MDB_TOK_CHAR 94 %token <l_immediate> MDB_TOK_IMMEDIATE 95 %token <l_dcmd> MDB_TOK_DCMD 96 %token <l_var> MDB_TOK_VAR_REF 97 %token <l_immediate> MDB_TOK_LEXPR 98 %token <l_immediate> MDB_TOK_REXPR 99 %token <l_immediate> MDB_TOK_COR1_DEREF 100 %token <l_immediate> MDB_TOK_COR2_DEREF [all …]
|
/illumos-gate/usr/src/test/libmlrpc-tests/tests/netrlogon/krb5_pac_tests/ |
H A D | krb5_pac_decode.c | 40 smb_token_t *token; in main() local 57 token = calloc(1, sizeof (*token)); in main() 58 if (token == NULL) { in main() 66 status = smb_decode_krb5_pac(token, (char *)pac_buf, buflen); in main() 73 smb_token_log(token); in main()
|
/illumos-gate/usr/src/cmd/acpi/iasl/ |
H A D | prparser.y | 196 %token <op> EXPOP_EOF 197 %token <op> EXPOP_NEW_LINE 198 %token <op> EXPOP_NUMBER 199 %token <op> EXPOP_HEX_NUMBER 200 %token <op> EXPOP_RESERVED1 201 %token <op> EXPOP_RESERVED2 202 %token <op> EXPOP_PAREN_OPEN 203 %token <op> EXPOP_PAREN_CLOSE 219 %token <op> EXPOP_DEFINE 220 %token <op> EXPOP_IDENTIFIER
|