/illumos-gate/usr/src/cmd/acpi/iasl/ |
H A D | asltokens.y | 174 %token <i> PARSEOP_ACCESSAS 175 %token <i> PARSEOP_ACCESSATTRIB_BLOCK 176 %token <i> PARSEOP_ACCESSATTRIB_BLOCK_CALL 177 %token <i> PARSEOP_ACCESSATTRIB_BYTE 178 %token <i> PARSEOP_ACCESSATTRIB_MULTIBYTE 179 %token <i> PARSEOP_ACCESSATTRIB_QUICK 180 %token <i> PARSEOP_ACCESSATTRIB_RAW_BYTES 181 %token <i> PARSEOP_ACCESSATTRIB_RAW_PROCESS 182 %token <i> PARSEOP_ACCESSATTRIB_SND_RCV 183 %token <i> PARSEOP_ACCESSATTRIB_WORD [all …]
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | expression.c | 61 static struct token *comma_expression(struct token *, struct expression **); 63 struct token *parens_expression(struct token *token, struct expression **expr, const char *where) in parens_expression() argument 65 struct token *p; in parens_expression() 67 token = expect(token, '(', where); in parens_expression() 68 p = token; in parens_expression() 69 if (match_op(token, '{')) { in parens_expression() 70 struct expression *e = alloc_expression(token->pos, EXPR_STATEMENT); in parens_expression() 71 struct statement *stmt = alloc_statement(token->pos, STMT_COMPOUND); in parens_expression() 75 token = compound_statement(token->next, stmt); in parens_expression() 77 token = expect(token, '}', "at end of statement expression"); in parens_expression() [all …]
|
H A D | parse.c | 51 static struct token *statement(struct token *token, struct statement **tree); 52 static struct token *handle_attributes(struct token *token, struct decl_state *ctx, unsigned int ke… 54 typedef struct token *declarator_t(struct token *, struct decl_state *); 64 static struct token *parse_if_statement(struct token *token, struct statement *stmt); 65 static struct token *parse_return_statement(struct token *token, struct statement *stmt); 66 static struct token *parse_loop_iterator(struct token *token, struct statement *stmt); 67 static struct token *parse_default_statement(struct token *token, struct statement *stmt); 68 static struct token *parse_case_statement(struct token *token, struct statement *stmt); 69 static struct token *parse_switch_statement(struct token *token, struct statement *stmt); 70 static struct token *parse_for_statement(struct token *token, struct statement *stmt); [all …]
|
H A D | pre-process.c | 95 static struct token *alloc_token(struct position *pos) in alloc_token() 97 struct token *token = __alloc_token(0); in alloc_token() local 99 token->pos.stream = pos->stream; in alloc_token() 100 token->pos.line = pos->line; in alloc_token() 101 token->pos.pos = pos->pos; in alloc_token() 102 token->pos.whitespace = 1; in alloc_token() 103 return token; in alloc_token() 107 static int expand(struct token **, struct symbol *); 109 static void replace_with_string(struct token *token, const char *str) in replace_with_string() argument 116 token_type(token) = TOKEN_STRING; in replace_with_string() [all …]
|
H A D | smatch_project.c | 75 struct token *token; in register_no_return_funcs() local 81 token = get_tokens_file(name); in register_no_return_funcs() 82 if (!token) in register_no_return_funcs() 84 if (token_type(token) != TOKEN_STREAMBEGIN) in register_no_return_funcs() 86 token = token->next; in register_no_return_funcs() 87 while (token_type(token) != TOKEN_STREAMEND) { in register_no_return_funcs() 88 if (token_type(token) != TOKEN_IDENT) in register_no_return_funcs() 90 func = show_ident(token->ident); in register_no_return_funcs() 92 token = token->next; in register_no_return_funcs() 99 struct token *token; in register_ignored_macros() local [all …]
|
H A D | token_store.c | 35 struct token *token; member 39 __ALLOCATOR(struct token, "token store", perm_token); 42 static struct token *copy_token(struct token *token) in copy_token() argument 44 struct token *new; in copy_token() 47 memcpy(new, token, sizeof(*token)); in copy_token() 75 static void insert_into_line(struct token **current, struct token *new) in insert_into_line() 94 static void store_token(struct token *token) in store_token() argument 96 token = copy_token(token); in store_token() 98 find_line(token->pos); in store_token() 102 cursor->pos = token->pos; in store_token() [all …]
|
H A D | tokenize.c | 54 struct token **tokenlist; 55 struct token *token; member 185 const char *show_token(const struct token *token) in show_token() argument 189 if (!token) in show_token() 191 switch (token_type(token)) { in show_token() 199 return show_ident(token->ident); in show_token() 202 return token->number; in show_token() 205 return show_special(token->special); in show_token() 208 return show_char(token->string->data, in show_token() 209 token->string->length - 1, 0, '\''); in show_token() [all …]
|
H A D | check_wrong_size_arg.c | 43 struct token *token; in register_funcs_from_file() local 51 token = get_tokens_file(name); in register_funcs_from_file() 52 if (!token) in register_funcs_from_file() 54 if (token_type(token) != TOKEN_STREAMBEGIN) in register_funcs_from_file() 56 token = token->next; in register_funcs_from_file() 57 while (token_type(token) != TOKEN_STREAMEND) { in register_funcs_from_file() 58 if (token_type(token) != TOKEN_IDENT) in register_funcs_from_file() 60 func = show_ident(token->ident); in register_funcs_from_file() 62 token = token->next; in register_funcs_from_file() 63 if (token_type(token) != TOKEN_NUMBER) in register_funcs_from_file() [all …]
|
H A D | token.h | 61 struct token *ifndef; 62 struct token *top_if; 187 struct token { struct 189 struct token *next; argument 203 static inline struct token *containing_token(struct token **p) in containing_token() argument 205 void *addr = (char *)p - ((char *)&((struct token *)0)->next - (char *)0); in containing_token() 216 extern struct token eof_token_entry; 224 extern struct token *built_in_token(int, struct ident *); 228 extern const char *show_token(const struct token *); 229 extern const char *quote_token(const struct token *); [all …]
|
H A D | check_unreachable.c | 83 struct token *token; in prev_line_was_endif() local 89 token = pos_get_token(pos); in prev_line_was_endif() 90 if (token && token_type(token) == TOKEN_IDENT && in prev_line_was_endif() 91 strcmp(show_ident(token->ident), "endif") == 0) in prev_line_was_endif() 95 token = pos_get_token(pos); in prev_line_was_endif() 96 if (token && token_type(token) == TOKEN_IDENT && in prev_line_was_endif() 97 strcmp(show_ident(token->ident), "endif") == 0) in prev_line_was_endif() 231 struct token *token; in register_turn_off_macros() local 240 token = get_tokens_file(name); in register_turn_off_macros() 241 if (!token) in register_turn_off_macros() [all …]
|
H A D | expression.h | 278 struct token *parse_expression(struct token *token, struct expression **tree); 279 struct token *conditional_expression(struct token *token, struct expression **tree); 280 struct token *primary_expression(struct token *token, struct expression **tree); 281 struct token *parens_expression(struct token *token, struct expression **expr, const char *where); 282 struct token *assignment_expression(struct token *token, struct expression **tree); 312 struct token *typename(struct token *, struct symbol **, int *); 314 static inline int lookup_type(struct token *token) in lookup_type() argument 316 if (token->pos.type == TOKEN_IDENT) { in lookup_type() 317 struct symbol *sym = lookup_symbol(token->ident, NS_SYMBOL | NS_TYPEDEF); in lookup_type() 325 struct token *initializer(struct expression **tree, struct token *token); [all …]
|
H A D | check_memcpy_overflow.c | 281 struct token *token; in register_funcs_from_file() local 288 token = get_tokens_file(name); in register_funcs_from_file() 289 if (!token) in register_funcs_from_file() 291 if (token_type(token) != TOKEN_STREAMBEGIN) in register_funcs_from_file() 293 token = token->next; in register_funcs_from_file() 294 while (token_type(token) != TOKEN_STREAMEND) { in register_funcs_from_file() 295 if (token_type(token) != TOKEN_IDENT) in register_funcs_from_file() 297 func = show_ident(token->ident); in register_funcs_from_file() 299 token = token->next; in register_funcs_from_file() 300 if (token_type(token) != TOKEN_NUMBER) in register_funcs_from_file() [all …]
|
H A D | char.c | 69 void get_char_constant(struct token *token, unsigned long long *val) in get_char_constant() argument 71 const char *p = token->embedded, *end; in get_char_constant() 73 int type = token_type(token); in get_char_constant() 77 p = token->string->data; in get_char_constant() 78 end = p + token->string->length - 1; in get_char_constant() 87 type < TOKEN_WIDE_CHAR ? bits_in_char : wchar_ctype->bit_size, token->pos); in get_char_constant() 89 warning(token->pos, in get_char_constant() 94 struct token *get_string_constant(struct token *token, struct expression *expr) in get_string_constant() argument 96 struct string *string = token->string; in get_string_constant() 97 struct token *next = token->next, *done = NULL; in get_string_constant() [all …]
|
H A D | smatch_expressions.c | 181 struct token *token, *prev, *end; in get_expression_from_base_and_str() local 189 token = tokenize_buffer(alloc, strlen(alloc), &end); in get_expression_from_base_and_str() 190 if (!token) in get_expression_from_base_and_str() 192 if (token_type(token) != TOKEN_STREAMBEGIN) in get_expression_from_base_and_str() 194 token = token->next; in get_expression_from_base_and_str() 197 while (token_type(token) == TOKEN_SPECIAL && in get_expression_from_base_and_str() 198 (token->special == SPECIAL_DEREFERENCE || token->special == '.')) { in get_expression_from_base_and_str() 199 prev = token; in get_expression_from_base_and_str() 200 token = token->next; in get_expression_from_base_and_str() 201 if (token_type(token) != TOKEN_IDENT) in get_expression_from_base_and_str() [all …]
|
H A D | check_freeing_devm.c | 45 struct token *token; in register_funcs_from_file() local 49 token = get_tokens_file("kernel.frees_argument"); in register_funcs_from_file() 50 if (!token) in register_funcs_from_file() 52 if (token_type(token) != TOKEN_STREAMBEGIN) in register_funcs_from_file() 54 token = token->next; in register_funcs_from_file() 55 while (token_type(token) != TOKEN_STREAMEND) { in register_funcs_from_file() 56 if (token_type(token) != TOKEN_IDENT) in register_funcs_from_file() 58 func = show_ident(token->ident); in register_funcs_from_file() 59 token = token->next; in register_funcs_from_file() 60 if (token_type(token) != TOKEN_NUMBER) in register_funcs_from_file() [all …]
|
H A D | check_dma_on_stack.c | 54 struct token *token; in register_funcs_from_file() local 58 token = get_tokens_file("kernel.dma_funcs"); in register_funcs_from_file() 59 if (!token) in register_funcs_from_file() 61 if (token_type(token) != TOKEN_STREAMBEGIN) in register_funcs_from_file() 63 token = token->next; in register_funcs_from_file() 64 while (token_type(token) != TOKEN_STREAMEND) { in register_funcs_from_file() 65 if (token_type(token) != TOKEN_IDENT) in register_funcs_from_file() 67 func = show_ident(token->ident); in register_funcs_from_file() 68 token = token->next; in register_funcs_from_file() 69 if (token_type(token) != TOKEN_NUMBER) in register_funcs_from_file() [all …]
|
/illumos-gate/usr/src/cmd/localedef/ |
H A D | parser.y | 33 char *token; member 38 %token T_CODE_SET 39 %token T_MB_CUR_MAX 40 %token T_MB_CUR_MIN 41 %token T_COM_CHAR 42 %token T_ESC_CHAR 43 %token T_LT 44 %token T_GT 45 %token T_NL 46 %token T_SEMI [all …]
|
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | smb_logon.c | 59 static uint32_t smb_token_setup_anon(smb_token_t *token); 71 smb_token_idmap(smb_token_t *token, smb_idmap_batch_t *sib) in smb_token_idmap() argument 78 if (!token || !sib) in smb_token_idmap() 83 if (token->tkn_flags & SMB_ATF_ANON) { in smb_token_idmap() 84 token->tkn_user.i_id = UID_NOBODY; in smb_token_idmap() 85 token->tkn_owner.i_id = UID_NOBODY; in smb_token_idmap() 88 id = &token->tkn_user; in smb_token_idmap() 97 id = &token->tkn_owner; in smb_token_idmap() 107 id = &token->tkn_primary_grp; in smb_token_idmap() 116 for (i = 0; i < token->tkn_win_grps.i_cnt; i++, sim++) { in smb_token_idmap() [all …]
|
/illumos-gate/usr/src/lib/libbsm/common/ |
H A D | au_to.c | 59 token_t *token; /* Resultant token */ in get_token() local 61 if ((token = (token_t *)malloc(sizeof (token_t))) == NULL) in get_token() 63 if ((token->tt_data = malloc(s)) == NULL) { in get_token() 64 free(token); in get_token() 67 token->tt_size = s; in get_token() 68 token->tt_next = NULL; in get_token() 69 return (token); in get_token() 81 token_t *token; /* token pointer */ in au_to_header() local 88 token = get_token(2 * sizeof (char) + sizeof (int32_t) + in au_to_header() 93 token = get_token(2 * sizeof (char) + 3 * sizeof (int32_t) + in au_to_header() [all …]
|
/illumos-gate/usr/src/cmd/abi/spectrans/spec2map/ |
H A D | versions.c | 175 char *token = currtok(); in comment() local 177 if (token == NULL || *token != '#') { in comment() 181 token = nexttok(); in comment() 189 char *token = currtok(); in arch_name() local 193 token ? token : "<NULL>"); in arch_name() 195 if (token == NULL) { in arch_name() 199 } else if (in_specials(*token)) { in arch_name() 206 *token); in arch_name() 214 } else if (!eq(token, TargetArchStr)) { in arch_name() 216 errlog(VERBOSE, "Begin unselected architecture: %s", token); in arch_name() [all …]
|
/illumos-gate/usr/src/cmd/iconv/ |
H A D | parser.y | 30 char *token; member 35 %token T_CODE_SET 36 %token T_MB_CUR_MAX 37 %token T_MB_CUR_MIN 38 %token T_COM_CHAR 39 %token T_ESC_CHAR 40 %token T_LT 41 %token T_GT 42 %token T_NL 43 %token T_SEMI [all …]
|
/illumos-gate/usr/src/lib/udapl/libdat/common/ |
H A D | udat_sr_parser.c | 100 DAT_SR_TOKEN token; member 229 DAT_SR_TOKEN *token); 234 DAT_SR_TOKEN *token); 239 DAT_SR_TOKEN *token); 244 DAT_SR_TOKEN *token, 250 DAT_SR_TOKEN *token, 402 DAT_SR_TOKEN token; in dat_sr_parse_eof() local 404 if (DAT_SUCCESS != dat_sr_get_token(file, &token)) { in dat_sr_parse_eof() 408 if (DAT_SR_TOKEN_EOF == token.type) { in dat_sr_parse_eof() 411 (void) dat_sr_put_token(file, &token); in dat_sr_parse_eof() [all …]
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/ |
H A D | k5unseal.c | 76 gss_buffer_desc token; local 269 token.length = tmsglen; 289 token.length = tmsglen - conflen - plain[tmsglen-1]; 292 if (token.length) { 293 if ((token.value = (void *) xmalloc(token.length)) == NULL) { 300 (void) memcpy(token.value, plain+conflen, token.length); 302 token.value = NULL; 306 token = *message_buffer; 307 plain = token.value; 308 plainlen = token.length; [all …]
|
/illumos-gate/usr/src/tools/sgs/sgsmsg/ |
H A D | sgsmsg.c | 191 char *buffer, *token, *_mesgid = 0, *_setid = 0, *_domain = 0; in getmesgid() local 216 if ((token = strstr(buffer, id)) == NULL) in getmesgid() 223 _mesgid = token; in getmesgid() 224 while (!(isspace(*token))) in getmesgid() 225 token++; in getmesgid() 226 *token++ = 0; in getmesgid() 228 while (isspace(*token)) in getmesgid() 229 token++; in getmesgid() 230 _setid = token; in getmesgid() 231 while (!(isspace(*token))) in getmesgid() [all …]
|
/illumos-gate/usr/src/cmd/boot/bootadm/ |
H A D | bootadm_hyper.c | 142 get_token(char **token, char *str, char *delim) in get_token() argument 148 *token = NULL; in get_token() 173 if ((*token = malloc(len)) == NULL) { in get_token() 179 (void) strlcpy(*token, start, len); in get_token() 189 *token = s_strdup(start); in get_token() 512 char *token, *parsestr; in cvt_metal_kernel() local 532 if ((parsestr = get_token(&token, parsestr, " \t,")) == NULL) { in cvt_metal_kernel() 533 if (token != NULL) in cvt_metal_kernel() 534 free(token); in cvt_metal_kernel() 539 if (strncmp(token, BFLAG, strlen(BFLAG)) != 0) { in cvt_metal_kernel() [all …]
|