/illumos-gate/usr/src/cmd/acpi/iasl/ |
H A D | asltypes.y | 161 %type <n> ArgList 162 %type <n> AslCode 163 %type <n> BufferData 164 %type <n> BufferTermData 165 %type <n> CompilerDirective 166 %type <n> DataObject 167 %type <n> DefinitionBlockTerm 168 %type <n> DefinitionBlockList 169 %type <n> IntegerData 170 %type <n> NamedObject [all …]
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | symbol.h | 56 enum type { enum 117 enum keyword type; member 139 enum type type:8; member 305 extern struct symbol *create_symbol(int stream, const char *name, int type, int namespace); 311 extern struct symbol *alloc_symbol(struct position, int type); 328 extern const char* get_type_name(enum type type); 350 static inline int is_int_type(const struct symbol *type) in is_int_type() argument 352 if (type->type == SYM_NODE) in is_int_type() 353 type = type->ctype.base_type; in is_int_type() 354 if (type->type == SYM_ENUM) in is_int_type() [all …]
|
H A D | smatch_function_ptrs.c | 42 if (expr->type != EXPR_CALL) in get_from__symbol_get() 47 if (!arg || arg->type != EXPR_STRING) in get_from__symbol_get() 55 struct symbol *type; in xxx_is_array() local 61 if (expr->type == EXPR_PREOP && expr->op == '*') { in xxx_is_array() 65 if (expr->type == EXPR_BINOP && expr->op == '+') in xxx_is_array() 69 if (expr->type != EXPR_BINOP || expr->op != '+') in xxx_is_array() 72 type = get_type(expr->left); in xxx_is_array() 73 if (!type) in xxx_is_array() 75 if (type->type != SYM_ARRAY && type->type != SYM_PTR) in xxx_is_array() 86 if (expr->type == EXPR_PREOP && expr->op == '*') in xxx_get_array_base() [all …]
|
H A D | smatch_type.c | 32 if (sym->type == SYM_BASETYPE) in get_real_base_type() 37 if (ret->type == SYM_RESTRICT || ret->type == SYM_NODE) in get_real_base_type() 42 int type_bytes(struct symbol *type) in type_bytes() argument 46 if (type && type->type == SYM_ARRAY) in type_bytes() 47 return array_bytes(type); in type_bytes() 49 bits = type_bits(type); in type_bytes() 55 int array_bytes(struct symbol *type) in array_bytes() argument 57 if (!type || type->type != SYM_ARRAY) in array_bytes() 59 return bits_to_bytes(type->bit_size); in array_bytes() 102 if (left->type == SYM_PTR || left->type == SYM_ARRAY) in get_binop_type() [all …]
|
H A D | smatch_sval.c | 57 ret.type = get_type(expr); in sval_blank() 58 if (!ret.type) in sval_blank() 59 ret.type = &int_ctype; in sval_blank() 65 sval_t sval_type_val(struct symbol *type, long long val) in sval_type_val() argument 69 if (!type) in sval_type_val() 70 type = &llong_ctype; in sval_type_val() 72 ret.type = type; in sval_type_val() 77 sval_t sval_type_fval(struct symbol *type, long double fval) in sval_type_fval() argument 81 ret.type = &ldouble_ctype; in sval_type_fval() 83 return sval_cast(type, ret); in sval_type_fval() [all …]
|
H A D | smatch_address.c | 24 struct symbol *type; in is_non_null_array() local 29 type = get_type(expr); in is_non_null_array() 30 if (!type || type->type != SYM_ARRAY) in is_non_null_array() 32 if (expr->type == EXPR_SYMBOL) in is_non_null_array() 38 if (expr->type != EXPR_DEREF || !expr->member) in is_non_null_array() 43 type = get_real_base_type(sym); in is_non_null_array() 44 if (!type || type->type != SYM_PTR) in is_non_null_array() 46 type = get_real_base_type(type); in is_non_null_array() 47 if (type->type != SYM_STRUCT) in is_non_null_array() 51 FOR_EACH_PTR(type->symbol_list, tmp) { in is_non_null_array() [all …]
|
H A D | check_memcpy_overflow.c | 52 struct symbol *type; in bytes_to_end_of_struct() local 56 if (expr->type == EXPR_PREOP && expr->op == '&') in bytes_to_end_of_struct() 59 type = get_type(expr); in bytes_to_end_of_struct() 60 if (!type || type->type != SYM_ARRAY) in bytes_to_end_of_struct() 63 if (expr->type != EXPR_DEREF || !expr->member) in bytes_to_end_of_struct() 66 if (deref->type == EXPR_PREOP && deref->op == '*') in bytes_to_end_of_struct() 70 type = get_type(expr->deref); in bytes_to_end_of_struct() 71 struct_bytes = type_bytes(type); in bytes_to_end_of_struct() 81 struct symbol *type; in size_of_union() local 83 if (expr->type != EXPR_PREOP || expr->op != '&') in size_of_union() [all …]
|
H A D | smatch_buf_size.c | 36 if (expr->type != EXPR_CALL) in get_fn_name() 38 if (expr->fn->type != EXPR_SYMBOL) in get_fn_name() 77 sval.type = &int_ctype; in size_to_estate() 87 sval.type = &int_ctype; in size_to_rl() 128 struct symbol *type; in bytes_per_element() local 132 if (expr->type == EXPR_STRING) in bytes_per_element() 134 if (expr->type == EXPR_PREOP && expr->op == '&') { in bytes_per_element() 135 type = get_type(expr->unop); in bytes_per_element() 136 if (type && type->type == SYM_ARRAY) in bytes_per_element() 139 type = get_type(expr); in bytes_per_element() [all …]
|
H A D | smatch_container_of.c | 28 struct symbol *type; in get_param_from_container_of() local 33 type = get_type(expr); in get_param_from_container_of() 34 if (!type || type->type != SYM_PTR) in get_param_from_container_of() 38 if (expr->type != EXPR_BINOP || expr->op != '-') in get_param_from_container_of() 59 struct symbol *type; in get_offset_from_container_of() local 62 type = get_type(expr); in get_offset_from_container_of() 63 if (!type || type->type != SYM_PTR) in get_offset_from_container_of() 67 if (expr->type != EXPR_BINOP || expr->op != '-') in get_offset_from_container_of() 108 while (expr && expr->type == EXPR_DEREF) { in get_deref_count() 110 if (expr->type == EXPR_PREOP && expr->op == '*') in get_deref_count() [all …]
|
H A D | smatch_struct_assignment.c | 71 struct symbol *type; in get_struct_type() local 73 type = get_type(expr); in get_struct_type() 74 if (!type) in get_struct_type() 76 if (type->type == SYM_PTR) { in get_struct_type() 77 type = get_real_base_type(type); in get_struct_type() 78 if (!type) in get_struct_type() 81 if (type->type == SYM_STRUCT) in get_struct_type() 82 return type; in get_struct_type() 83 if (type->type == SYM_UNION) in get_struct_type() 84 return type; in get_struct_type() [all …]
|
H A D | smatch_array_values.c | 26 struct symbol *type; member 35 str_to_rl(db_info->type, argv[0], &rl); in get_vals() 65 if (!array || array->type != EXPR_SYMBOL) in get_toplevel_name() 92 struct symbol *type; in get_array_name() local 95 type = get_type(array); in get_array_name() 96 if (!type || type->type != SYM_ARRAY) in get_array_name() 112 struct symbol *type; in get_array_rl() local 116 type = get_type(expr); in get_array_rl() 117 if (!type || type->type != SYM_BASETYPE) in get_array_rl() 119 db_info.type = type; in get_array_rl() [all …]
|
H A D | check_kernel_printf.c | 76 unsigned int type:8; /* format_type enum */ member 104 if (spec->type == FORMAT_TYPE_WIDTH) { in format_decode() 109 spec->type = FORMAT_TYPE_NONE; in format_decode() 114 if (spec->type == FORMAT_TYPE_PRECISION) { in format_decode() 118 spec->type = FORMAT_TYPE_NONE; in format_decode() 123 spec->type = FORMAT_TYPE_NONE; in format_decode() 162 spec->type = FORMAT_TYPE_WIDTH; in format_decode() 177 spec->type = FORMAT_TYPE_PRECISION; in format_decode() 208 spec->type = FORMAT_TYPE_CHAR; in format_decode() 215 spec->type = FORMAT_TYPE_STR; in format_decode() [all …]
|
H A D | smatch_ranges.c | 33 if (!type_is_ptr(sval.type)) in is_err_ptr() 81 sval_to_str(sval_type_max(prev_drange->min.type))); in show_rl() 108 static int sval_too_big(struct symbol *type, sval_t sval) in sval_too_big() argument 110 if (type_bits(type) >= 32 && in sval_too_big() 111 type_bits(sval.type) <= type_bits(type)) in sval_too_big() 113 if (sval.uvalue <= ((1ULL << type_bits(type)) - 1)) in sval_too_big() 115 if (type_signed(sval.type)) { in sval_too_big() 116 if (type_unsigned(type)) { in sval_too_big() 118 if (neg <= sval_type_max(type).uvalue) in sval_too_big() 121 if (sval.value < sval_type_min(type).value) in sval_too_big() [all …]
|
H A D | check_syscall_arg_type.c | 66 if (!node || node->type != SYM_NODE) in _typedef_lookup() 83 struct symbol *type; in is_mode_t() local 88 type = get_base_type(sym); in is_mode_t() 89 if (type == umode_t.sym) in is_mode_t() 97 struct symbol *type; in is_pid_t() local 102 type = get_base_type(sym); in is_pid_t() 103 if (type == pid_t.sym) in is_pid_t() 110 struct symbol *type; in get_arg_type_from_type() local 117 type = get_real_base_type(sym); in get_arg_type_from_type() 118 if (!type || type->type != SYM_PTR) in get_arg_type_from_type() [all …]
|
H A D | smatch_mtag_data.c | 86 struct symbol *type; in is_head_next() local 93 if (expr->type != EXPR_DEREF) in is_head_next() 99 type = get_type(expr->deref); in is_head_next() 100 if (!type) in is_head_next() 102 if (type->type == SYM_PTR) in is_head_next() 103 type = get_real_base_type(type); in is_head_next() 104 if (type->type != SYM_STRUCT) in is_head_next() 106 if (!type->ident || !type->ident->name || in is_head_next() 107 strcmp(type->ident->name, "list_head") != 0) in is_head_next() 133 static bool invalid_type(struct symbol *type) in invalid_type() argument [all …]
|
H A D | smatch_type_val.c | 96 struct symbol *type; in get_db_type_rl() local 115 type = get_type(expr); in get_db_type_rl() 116 str_to_rl(type, db_vals, &tmp); in get_db_type_rl() 188 struct symbol *type; in is_ignored_fake_assignment() local 193 if (!expr || expr->type != EXPR_ASSIGNMENT) in is_ignored_fake_assignment() 201 type = get_type(expr->left); in is_ignored_fake_assignment() 202 if (!type || type->type != SYM_PTR) in is_ignored_fake_assignment() 204 type = get_real_base_type(type); in is_ignored_fake_assignment() 205 if (!type || type->type != SYM_STRUCT) in is_ignored_fake_assignment() 210 TYPE_LINK, member_name, type_to_str(type)); in is_ignored_fake_assignment() [all …]
|
H A D | smatch_about_fn_ptr_arg.c | 53 struct symbol *type; in link_function_arg() local 60 type = get_type(arg); in link_function_arg() 61 if (!type || type->type != SYM_PTR) in link_function_arg() 63 type = get_real_base_type(type); in link_function_arg() 64 if (!type) in link_function_arg() 67 sql_insert_fn_data_link(fn, PASSES_TYPE, param, "$", type_to_str(type)); in link_function_arg() 152 struct symbol *type; in match_assign_function() local 156 if (right->type == EXPR_PREOP && right->op == '&') in match_assign_function() 159 type = get_type(right); in match_assign_function() 160 if (type && type->type == SYM_PTR) in match_assign_function() [all …]
|
H A D | smatch_math.c | 31 static sval_t zero = {.type = &int_ctype, {.value = 0} }; 32 static sval_t one = {.type = &int_ctype, {.value = 1} }; 72 if (stmt->type == STMT_LABEL) { in last_stmt_rl() 74 stmt->label_statement->type == STMT_EXPRESSION) in last_stmt_rl() 78 } else if (stmt->type == STMT_EXPRESSION) { in last_stmt_rl() 165 if (!sval.type && !rl_to_sval(rl, &sval)) in handle_bitwise_negate() 185 struct symbol *type; in handle_minus_preop() local 195 if (sval.type) { in handle_minus_preop() 205 type = rl_type(rl); in handle_minus_preop() 206 neg_one.type = zero.type = type; in handle_minus_preop() [all …]
|
/illumos-gate/usr/src/lib/libdwarf/common/ |
H A D | dwarf_elf_rel_detector.c | 39 _dwarf_is_32bit_abs_reloc(unsigned int type, unsigned machine) in _dwarf_is_32bit_abs_reloc() argument 48 | (type == R_MIPS_32) in _dwarf_is_32bit_abs_reloc() 51 | (type == R_MIPS_TLS_DTPREL32) in _dwarf_is_32bit_abs_reloc() 60 | (type == R_SPARC_UA32) in _dwarf_is_32bit_abs_reloc() 63 | (type == R_SPARC_TLS_DTPOFF32) in _dwarf_is_32bit_abs_reloc() 70 r = (type == R_SPARC_UA32); in _dwarf_is_32bit_abs_reloc() 77 | (type == R_SPARC_UA32) in _dwarf_is_32bit_abs_reloc() 80 | (type == R_SPARC_TLS_DTPOFF32) in _dwarf_is_32bit_abs_reloc() 89 | (type == R_386_32) in _dwarf_is_32bit_abs_reloc() 92 | (type == R_386_PC32) in _dwarf_is_32bit_abs_reloc() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/telnet/ |
H A D | encrypt.c | 137 findencryption(int type) in findencryption() argument 141 if (!(I_SUPPORT_ENCRYPT & remote_supports_decrypt & typemask(type))) in findencryption() 143 for (; (ep->type != 0) && (ep->type != type); ep++); in findencryption() 144 return (ep->type ? ep : NULL); in findencryption() 148 finddecryption(int type) in finddecryption() argument 152 if (!(I_SUPPORT_DECRYPT & remote_supports_encrypt & typemask(type))) in finddecryption() 154 while (ep->type && ep->type != type) in finddecryption() 156 return (ep->type ? ep : NULL); in finddecryption() 192 while (ep->type) { in encrypt_init() 196 Name, ENCTYPE_NAME(ep->type)); in encrypt_init() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/db/include/ |
H A D | shqueue.h | 53 #define SH_LIST_FIRSTP(head, type) \ argument 54 ((struct type *)(((u_int8_t *)(head)) + (head)->slh_first)) 56 #define SH_LIST_FIRST(head, type) \ argument 58 ((struct type *)(((u_int8_t *)(head)) + (head)->slh_first))) 60 #define SH_LIST_NEXTP(elm, field, type) \ argument 61 ((struct type *)(((u_int8_t *)(elm)) + (elm)->field.sle_next)) 63 #define SH_LIST_NEXT(elm, field, type) \ argument 65 ((struct type *)(((u_int8_t *)(elm)) + (elm)->field.sle_next))) 85 #define SH_LIST_INSERT_AFTER(listelm, elm, field, type) do { \ argument 88 SH_LIST_NEXTP(listelm, field, type)); \ [all …]
|
/illumos-gate/usr/src/cmd/geniconvtbl/ |
H A D | itm_comp.y | 60 %type <intval> itm_def 61 %type <obj> def_element_list 62 %type <tbl_hdr> def_element 64 %type <tbl_hdr> direction 65 %type <obj> direction_unit_list 66 %type <obj> direction_unit 68 %type <action> action 70 %type <itmc_ref> condition 71 %type <obj> condition_list 72 %type <obj> condition_expr [all …]
|
/illumos-gate/usr/src/uts/common/io/sfxge/ |
H A D | sfxge_nvram.c | 40 sfxge_nvram_rw(sfxge_t *sp, sfxge_nvram_ioc_t *snip, efx_nvram_type_t type, in sfxge_nvram_rw() argument 51 if ((rc = efx_nvram_rw_start(enp, type, &chunk_size)) != 0) in sfxge_nvram_rw() 59 if ((rc = op(enp, type, snip->sni_offset + off, buf, len)) != 0) in sfxge_nvram_rw() 66 efx_nvram_rw_finish(enp, type); in sfxge_nvram_rw() 71 efx_nvram_rw_finish(enp, type); in sfxge_nvram_rw() 79 sfxge_nvram_erase(sfxge_t *sp, sfxge_nvram_ioc_t *snip, efx_nvram_type_t type) in sfxge_nvram_erase() argument 86 if ((rc = efx_nvram_rw_start(enp, type, &chunk_size)) != 0) in sfxge_nvram_erase() 89 if ((rc = efx_nvram_erase(enp, type)) != 0) in sfxge_nvram_erase() 92 efx_nvram_rw_finish(enp, type); in sfxge_nvram_erase() 97 efx_nvram_rw_finish(enp, type); in sfxge_nvram_erase() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/regex/ |
H A D | regdecomp.c | 72 decomp(register Rex_t* e, Sfio_t* sp, int type, int delimiter, regflags_t flags) in decomp() argument 91 switch (e->type) in decomp() 94 if (decomp(e->re.group.expr.binary.left, sp, type, delimiter, flags)) in decomp() 97 …if (e->re.group.expr.binary.right && decomp(e->re.group.expr.binary.right, sp, type, delimiter, fl… in decomp() 104 if (type < SRE) in decomp() 108 if (type < SRE) in decomp() 112 meta(sp, '<', type, 1, delimiter); in decomp() 115 meta(sp, '<', type, 1, delimiter); in decomp() 125 if (type >= SRE) in decomp() 144 switch (e->type) in decomp() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/Documentation/ |
H A D | IR.rst | 21 * .type: (symbol*) usually the type of .result, sometimes of the operands 29 * .type: type of .src 40 * .type: type of .cond, must be an integral type 47 * .type: type of .cond, must be an integral type 60 * .target: result of the operation (must be an integral type) 61 * .type: type of .target 97 * .target: result of the operation (must be a floating-point type) 98 * .type: type of .target 117 * .type: type of .target, must be an integral type 133 * .type: type of .target, must be an integral type [all …]
|