/illumos-gate/usr/src/contrib/ast/src/lib/libpp/ |
H A D | ppmacref.c | 31 ppmacref(struct ppsymbol* sym, char* file, int line, int type, unsigned long sum) in ppmacref() argument 39 …p += sfsprintf(p, MAXTOKEN, "\n#%s %s:%s %s %d", dirname(PRAGMA), pp.pass, keyname(X_MACREF), sym-… in ppmacref() 42 if (sym->macro && sym->macro->value) in ppmacref() 43 sum = strsum(sym->macro->value, (long)sym->macro->arity); in ppmacref()
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | smatch_extra.h | 23 struct symbol *sym; member 111 int get_implied_rl_var_sym(const char *var, struct symbol *sym, struct range_list **rl); 183 int implied_not_equal_name_sym(char *name, struct symbol *sym, long long val); 184 int parent_is_null_var_sym(const char *name, struct symbol *sym); 186 int parent_is_free_var_sym_strict(const char *name, struct symbol *sym); 187 int parent_is_free_var_sym(const char *name, struct symbol *sym); 202 void remove_from_equiv(const char *name, struct symbol *sym); 218 struct expression *symbol_expression(struct symbol *sym); 224 struct expression *gen_expression_from_name_sym(const char *name, struct symbol *sym); 233 struct smatch_state *get_orig_estate(const char *name, struct symbol *sym); [all …]
|
H A D | smatch_real_absolute.c | 44 static void extra_mod_hook(const char *name, struct symbol *sym, struct expression *expr, struct sm… in extra_mod_hook() argument 49 abs = get_state(my_id, name, sym); in extra_mod_hook() 53 set_state(my_id, name, sym, alloc_estate_rl(clone_rl(rl))); in extra_mod_hook() 61 extra = get_state(SMATCH_EXTRA, cur->name, cur->sym); in pre_merge_hook() 65 set_state(my_id, cur->name, cur->sym, clone_estate(extra)); in pre_merge_hook() 69 set_state(my_id, cur->name, cur->sym, alloc_estate_rl(clone_rl(rl))); in pre_merge_hook() 135 struct smatch_state *get_real_absolute_state_var_sym(const char *name, struct symbol *sym) in get_real_absolute_state_var_sym() argument 137 return __get_state(my_id, name, sym); in get_real_absolute_state_var_sym()
|
H A D | smatch_scope.c | 42 struct symbol *sym; in match_end_of_block() local 51 FOR_EACH_PTR(tmp->declaration, sym) { in match_end_of_block() 52 if (!sym->ident) in match_end_of_block() 54 __delete_all_states_sym(sym); in match_end_of_block() 55 } END_FOR_EACH_PTR(sym); in match_end_of_block() 99 static void match_end_func(struct symbol *sym) in match_end_func() argument
|
H A D | smatch_function_ptrs.c | 132 static int is_local_symbol(struct symbol *sym) in is_local_symbol() argument 134 if (!sym || in is_local_symbol() 135 !(sym->ctype.modifiers & MOD_TOPLEVEL)) in is_local_symbol() 140 static char *ptr_prefix(struct symbol *sym) in ptr_prefix() argument 145 if (is_local_symbol(sym)) in ptr_prefix() 147 else if (sym && toplevel(sym->scope)) in ptr_prefix() 212 struct symbol *sym; in get_fnptr_name() local 221 name = expr_to_var_sym(expr, &sym); in get_fnptr_name() 432 if (!sym->ident) in global_variable() 434 if (!sym->initializer || sym->initializer->type != EXPR_INITIALIZER) in global_variable() [all …]
|
H A D | test-linearize.c | 43 struct symbol *sym; in clean_up_symbols() local 45 FOR_EACH_PTR(list, sym) { in clean_up_symbols() 48 expand_symbol(sym); in clean_up_symbols() 49 ep = linearize_symbol(sym); in clean_up_symbols() 54 } END_FOR_EACH_PTR(sym); in clean_up_symbols()
|
H A D | expression.c | 138 struct symbol *sym; in parse_type() local 141 if (sym->ident) in parse_type() 145 (*tree)->symbol = sym; in parse_type() 180 struct symbol *sym; in builtin_offsetof_expr() local 189 if (sym->ident) in builtin_offsetof_expr() 201 expr->in = sym; in builtin_offsetof_expr() 406 if (!sym) { in primary_expression() 434 if (sym && sym->namespace == NS_TYPEDEF) { in primary_expression() 436 sym = NULL; in primary_expression() 439 expr->symbol = sym; in primary_expression() [all …]
|
H A D | check_deref_check.c | 27 set_state(my_id, sm->name, sm->sym, &undefined); in underef() 51 struct symbol *sym; in set_param_dereferenced() local 54 name = get_variable_from_key(arg, key, &sym); in set_param_dereferenced() 55 if (!name || !sym) in set_param_dereferenced() 58 if (implied_not_equal_name_sym(name, sym, 0)) in set_param_dereferenced() 60 set_state(my_id, name, sym, &derefed); in set_param_dereferenced()
|
H A D | compile.c | 46 struct symbol *sym; in clean_up_symbols() local 48 FOR_EACH_PTR(list, sym) { in clean_up_symbols() 49 expand_symbol(sym); in clean_up_symbols() 50 emit_one_symbol(sym); in clean_up_symbols() 51 } END_FOR_EACH_PTR(sym); in clean_up_symbols()
|
H A D | smatch_param_compare_limit.c | 72 static void save_link_var_sym(const char *var, struct symbol *sym, const char *link) in save_link_var_sym() argument 78 old_state = get_state(link_id, var, sym); in save_link_var_sym() 88 set_state(link_id, var, sym, new_state); in save_link_var_sym() 116 save_link_var_sym(vs->var, vs->sym, state_name); in add_comparison_var_sym() 119 save_link_var_sym(vs->var, vs->sym, state_name); in add_comparison_var_sym() 202 if (left->sym == right->sym && in print_return_comparison() 209 if (left->sym != tmp->sym || in print_return_comparison() 213 left_param = get_param_num_from_sym(left->sym); in print_return_comparison() 214 right_param = get_param_num_from_sym(right->sym); in print_return_comparison() 218 tmp_name = get_param_name_var_sym(left->var, left->sym); in print_return_comparison() [all …]
|
H A D | smatch_assigned_expr.c | 37 set_state(my_id, sm->name, sm->sym, &undefined); in undef() 50 struct expression *get_assigned_expr_name_sym(const char *name, struct symbol *sym) in get_assigned_expr_name_sym() argument 54 state = __get_state(my_id, name, sym); in get_assigned_expr_name_sym() 105 struct symbol *sym; in record_param_assignment() local 128 name = get_variable_from_key(arg, key, &sym); in record_param_assignment() 129 if (!name || !sym) in record_param_assignment() 133 set_state(my_id, name, sym, alloc_state_expr(right)); in record_param_assignment()
|
H A D | check_stack.c | 41 static void match_declarations(struct symbol *sym) in match_declarations() argument 46 base = get_base_type(sym); in match_declarations() 47 if (sym->ctype.modifiers & MOD_STATIC) in match_declarations() 49 name = sym->ident->name; in match_declarations() 62 static void match_end_func(struct symbol *sym) in match_end_func() argument
|
H A D | check_all_func_returns.c | 28 struct symbol *sym = get_real_base_type(get_type(expr->fn)); in check_func_return() local 32 if (sym == NULL) { in check_func_return() 71 if (sym == &void_ctype || (sym->type == SYM_FN && in check_func_return() 72 get_real_base_type(sym) == &void_ctype)) in check_func_return()
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_gelf.c | 912 (ELF32_ST_BIND(sym->st_info) != STB_LOCAL || sym->st_size)) in gelf32_symtab_sort() 913 *sympp++ = sym; in gelf32_symtab_sort() 964 sym->st_name = 0; in gelf32_symtab_init() 972 (ELF32_ST_BIND(sym->st_info) != STB_LOCAL || sym->st_size)) in gelf32_symtab_init() 980 for (sym = gst->gst_dsect->gs_data, i = 0; i < n; i++, sym++) { in gelf32_symtab_init() 981 if (sym->st_shndx > SHN_UNDEF && sym->st_shndx < smax) { in gelf32_symtab_init() 1009 (ELF64_ST_BIND(sym->st_info) != STB_LOCAL || sym->st_size)) in gelf64_symtab_sort() 1010 *sympp++ = sym; in gelf64_symtab_sort() 1069 (ELF64_ST_BIND(sym->st_info) != STB_LOCAL || sym->st_size)) in gelf64_symtab_init() 1077 for (sym = gst->gst_dsect->gs_data, i = 0; i < n; i++, sym++) { in gelf64_symtab_init() [all …]
|
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/ |
H A D | bindings.c | 84 const char *sym, uint_t binfo) in Dbg_bind_global() argument 115 Dbg_demangle_name(sym)); in Dbg_bind_global() 145 EC_ADDR(tabs), EC_OFF(toff), Dbg_demangle_name(sym), in Dbg_bind_global() 154 EC_ADDR(tabs), EC_OFF(toff), Dbg_demangle_name(sym), in Dbg_bind_global() 162 Dbg_demangle_name(sym), binfostr); in Dbg_bind_global() 167 Dbg_bind_reject(Rt_map *flmp, Rt_map *tlmp, const char *sym, int why) in Dbg_bind_reject() argument 179 sym, MSG_INTL(reason[why])); in Dbg_bind_reject() 183 Dbg_bind_weak(Rt_map *flmp, Addr fabs, Addr frel, const char *sym) in Dbg_bind_weak() argument 193 Dbg_demangle_name(sym)); in Dbg_bind_weak() 196 EC_ADDR(frel), Dbg_demangle_name(sym)); in Dbg_bind_weak()
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_module.c | 87 if (sym->st_name == 0 || sym->st_name >= ss_size) in dt_module_syminit32() 91 (ELF32_ST_BIND(sym->st_info) != STB_LOCAL || sym->st_size)) in dt_module_syminit32() 120 if (sym->st_name == 0 || sym->st_name >= ss_size) in dt_module_syminit64() 124 (ELF64_ST_BIND(sym->st_info) != STB_LOCAL || sym->st_size)) in dt_module_syminit64() 202 (ELF32_ST_BIND(sym->st_info) != STB_LOCAL || sym->st_size)) in dt_module_symsort32() 346 sym = asmap[i]; in dt_module_symaddr32() 356 if (addr - sym->st_value < MAX(sym->st_size, 1)) { in dt_module_symaddr32() 388 sym = asmap[i]; in dt_module_symaddr64() 398 if (addr - sym->st_value < MAX(sym->st_size, 1)) { in dt_module_symaddr64() 1254 GElf_Sym sym; in dtrace_lookup_by_name() local [all …]
|
H A D | dt_link.c | 118 Elf32_Sym *sym; in prepare_elf32() local 189 sym++; in prepare_elf32() 242 sym++; in prepare_elf32() 257 sym++; in prepare_elf32() 298 Elf64_Sym *sym; in prepare_elf64() local 365 sym++; in prepare_elf64() 414 sym++; in prepare_elf64() 429 sym++; in prepare_elf64() 727 addr < sym->st_value + sym->st_size) { in dt_symtab_lookup() 732 s = *sym; in dt_symtab_lookup() [all …]
|
H A D | dt_pid.c | 255 GElf_Sym sym; in dt_pid_per_mod() local 313 sym.st_name = 0; in dt_pid_per_mod() 314 sym.st_info = in dt_pid_per_mod() 316 sym.st_other = 0; in dt_pid_per_mod() 317 sym.st_value = 0; in dt_pid_per_mod() 335 sym.st_shndx == SHN_UNDEF || sym.st_size == 0) in dt_pid_per_mod() 346 DTRACE_FUNCNAMELEN, &sym); in dt_pid_per_mod() 521 GElf_Sym sym; in dt_pid_usdt_mapping() local 554 dh.dofhp_dof = sym.st_value; in dt_pid_usdt_mapping() 782 GElf_Sym sym; in dt_pid_get_types() local [all …]
|
/illumos-gate/usr/src/cmd/sh/ |
H A D | cmd.c | 109 cmd(sym, flg) in cmd() argument 110 int sym; in cmd() 142 if (sym == NL) 146 if (sym) 147 chksym(sym); 571 chksym(int sym) in chksym() argument 580 prsym(int sym) in prsym() argument 582 if (sym & SYMFLG) in prsym() 595 prc(sym); in prsym() 596 if (sym == NL) in prsym() [all …]
|
/illumos-gate/usr/src/cmd/sgs/libld/common/ |
H A D | update.c | 346 sym->st_value = 0; in update_osym() 347 sym->st_size = 0; in update_osym() 349 sym->st_other = 0; in update_osym() 361 sym->st_size = 0; in update_osym() 409 sym = &_sym; in update_osym() 1234 Sym *sym; in update_osym() local 1549 ADD_TO_DYNSORT(sdp, sym, ELF_ST_TYPE(sym->st_info), in update_osym() 1594 ADD_TO_DYNSORT(sdp, sym, ELF_ST_TYPE(sym->st_info), in update_osym() 1976 __sym = sym; in update_osym() 1985 __sym = sym; in update_osym() [all …]
|
H A D | map_support.c | 479 sym->st_shndx = SHN_ABS; in ld_map_seg_size_symbol() 480 sym->st_size = 0; in ld_map_seg_size_symbol() 494 sym = sdp->sd_sym; in ld_map_seg_size_symbol() 499 sym->st_size = 0; in ld_map_seg_size_symbol() 1067 Sym *sym; in ld_map_sym_enter() local 1109 sym->st_value = ms->ms_value; in ld_map_sym_enter() 1110 sym->st_size = ms->ms_size; in ld_map_sym_enter() 1152 sym = sdp->sd_sym; in ld_map_sym_enter() 1161 if (sym->st_value) { in ld_map_sym_enter() 1167 if (sym->st_size) { in ld_map_sym_enter() [all …]
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Pservice.c | 388 GElf_Sym sym; in ps_pglobal_lookup() local 390 if (Plookup_by_name(P, object_name, sym_name, &sym) == 0) { in ps_pglobal_lookup() 392 sym_name, (void *)(uintptr_t)sym.st_value); in ps_pglobal_lookup() 393 *sym_addr = (psaddr_t)sym.st_value; in ps_pglobal_lookup() 412 GElf_Sym sym; in ps_pglobal_sym() local 415 symp->st_name = (Elf32_Word)sym.st_name; in ps_pglobal_sym() 416 symp->st_value = (Elf32_Addr)sym.st_value; in ps_pglobal_sym() 417 symp->st_size = (Elf32_Word)sym.st_size; in ps_pglobal_sym() 419 GELF_ST_BIND(sym.st_info), GELF_ST_TYPE(sym.st_info)); in ps_pglobal_sym() 420 symp->st_other = sym.st_other; in ps_pglobal_sym() [all …]
|
/illumos-gate/usr/src/boot/sys/sys/ |
H A D | cdefs.h | 561 extern __typeof (sym) aliassym __attribute__ ((__alias__ (#sym))) 564 #define __weak_reference(sym,alias) \ argument 566 __asm__(".equ " #alias ", " #sym) 567 #define __warn_references(sym,msg) \ argument 571 #define __sym_compat(sym,impl,verid) \ argument 573 #define __sym_default(sym,impl,verid) \ argument 576 #define __weak_reference(sym,alias) \ argument 579 #define __warn_references(sym,msg) \ argument 583 #define __sym_compat(sym,impl,verid) \ argument 590 #define __GLOBL(sym) __asm__(".globl " __XSTRING(sym)) argument [all …]
|
/illumos-gate/usr/src/data/locale/tools/ |
H A D | mkwidths.py | 50 (sym, val) = (items[0], items[1]) 51 SYMBOLS[val] = sym 70 sym = SYMBOLS.get(key, None) 71 if sym == None: 73 print("%s\t%d" % (sym, width))
|
/illumos-gate/usr/src/uts/common/fs/objfs/ |
H A D | objfs_data.c | 510 Elf64_Sym sym, *symtab; in read_symtab() local 512 Elf32_Sym sym, *symtab; in read_symtab() 526 index = offset / sizeof (sym); in read_symtab() 528 sym = symtab[index]; in read_symtab() 529 if (sym.st_shndx != SHN_UNDEF) in read_symtab() 530 sym.st_shndx = SHN_ABS; in read_symtab() 542 for (index = offset / sizeof (sym); index < size / sizeof (sym); in read_symtab() 545 sym = symtab[index]; in read_symtab() 546 if (sym.st_shndx != SHN_UNDEF) in read_symtab() 547 sym.st_shndx = SHN_ABS; in read_symtab() [all …]
|