Home
last modified time | relevance | path

Searched refs:symtab (Results 1 – 25 of 1068) sorted by relevance

12345678910>>...43

/netbsd-src/external/mpl/dhcp/bind/dist/lib/isc/
H A Dsymtab.c56 isc_symtab_t *symtab; in isc_symtab_create() local
63 symtab = isc_mem_get(mctx, sizeof(*symtab)); in isc_symtab_create()
65 symtab->mctx = NULL; in isc_symtab_create()
66 isc_mem_attach(mctx, &symtab->mctx); in isc_symtab_create()
67 symtab->table = isc_mem_get(mctx, size * sizeof(eltlist_t)); in isc_symtab_create()
69 INIT_LIST(symtab->table[i]); in isc_symtab_create()
71 symtab->size = size; in isc_symtab_create()
72 symtab->count = 0; in isc_symtab_create()
73 symtab->maxload = size * 3 / 4; in isc_symtab_create()
74 symtab->undefine_action = undefine_action; in isc_symtab_create()
[all …]
/netbsd-src/external/mpl/bind/dist/lib/isc/
H A Dsymtab.c1 /* $NetBSD: symtab.c,v 1.7 2025/01/26 16:25:38 christos Exp $ */
24 #include <isc/symtab.h>
56 isc_symtab_t *symtab; in isc_symtab_create() local
63 symtab = isc_mem_get(mctx, sizeof(*symtab)); in isc_symtab_create()
65 symtab->mctx = NULL; in isc_symtab_create()
66 isc_mem_attach(mctx, &symtab->mctx); in isc_symtab_create()
67 symtab->table = isc_mem_cget(mctx, size, sizeof(eltlist_t)); in isc_symtab_create()
69 INIT_LIST(symtab->table[i]); in isc_symtab_create()
71 symtab in isc_symtab_create()
86 isc_symtab_t *symtab; isc_symtab_destroy() local
155 isc_symtab_lookup(isc_symtab_t * symtab,const char * key,unsigned int type,isc_symvalue_t * value) isc_symtab_lookup() argument
177 grow_table(isc_symtab_t * symtab) grow_table() argument
216 isc_symtab_define(isc_symtab_t * symtab,const char * key,unsigned int type,isc_symvalue_t value,isc_symexists_t exists_policy) isc_symtab_define() argument
268 isc_symtab_undefine(isc_symtab_t * symtab,const char * key,unsigned int type) isc_symtab_undefine() argument
293 isc_symtab_count(isc_symtab_t * symtab) isc_symtab_count() argument
[all...]
/netbsd-src/external/mpl/bind/dist/lib/isccc/
H A Dsymtab.c1 /* $NetBSD: symtab.c,v 1.9 2025/01/26 16:25:44 christos Exp $ */
43 #include <isccc/symtab.h>
72 isccc_symtab_t *symtab; in isccc_symtab_create() local
78 symtab = malloc(sizeof(*symtab)); in isccc_symtab_create()
79 if (symtab == NULL) { in isccc_symtab_create()
82 symtab->table = calloc(size, sizeof(eltlist_t)); in isccc_symtab_create()
83 if (symtab->table == NULL) { in isccc_symtab_create()
84 free(symtab); in isccc_symtab_create()
88 ISC_LIST_INIT(symtab in isccc_symtab_create()
102 free_elt(isccc_symtab_t * symtab,unsigned int bucket,elt_t * elt) free_elt() argument
113 isccc_symtab_t *symtab; isccc_symtab_destroy() local
192 isccc_symtab_lookup(isccc_symtab_t * symtab,const char * key,unsigned int type,isccc_symvalue_t * value) isccc_symtab_lookup() argument
214 isccc_symtab_define(isccc_symtab_t * symtab,char * key,unsigned int type,isccc_symvalue_t value,isccc_symexists_t exists_policy) isccc_symtab_define() argument
257 isccc_symtab_undefine(isccc_symtab_t * symtab,const char * key,unsigned int type) isccc_symtab_undefine() argument
277 isccc_symtab_foreach(isccc_symtab_t * symtab,isccc_symtabforeachaction_t action,void * arg) isccc_symtab_foreach() argument
[all...]
/netbsd-src/external/gpl3/binutils/dist/gprof/
H A Dcorefile.c531 symtab.len = num_of_syms_in (f); in core_create_syms_from()
533 if (symtab.len == 0) in core_create_syms_from()
538 else if (symtab.len == -1U) in core_create_syms_from()
545 symtab.base = (Sym *) xmalloc (symtab.len * sizeof (Sym)); in core_create_syms_from()
548 symtab.limit = symtab.base; in core_create_syms_from()
563 sym_init (symtab.limit); in core_create_syms_from()
567 symtab.limit->addr = addr; in core_create_syms_from()
569 symtab.limit->name = (char *) xmalloc (strlen (name) + 1); in core_create_syms_from()
570 strcpy ((char *) symtab.limit->name, name); in core_create_syms_from()
571 symtab.limit->mapped = 0; in core_create_syms_from()
[all …]
/netbsd-src/external/gpl3/binutils.old/dist/gprof/
H A Dcorefile.c531 symtab.len = num_of_syms_in (f); in core_create_syms_from()
533 if (symtab.len == 0) in core_create_syms_from()
538 else if (symtab.len == -1U) in core_create_syms_from()
545 symtab.base = (Sym *) xmalloc (symtab.len * sizeof (Sym)); in core_create_syms_from()
548 symtab.limit = symtab.base; in core_create_syms_from()
563 sym_init (symtab.limit); in core_create_syms_from()
565 sscanf (address, "%" BFD_VMA_FMT "x", &(symtab.limit->addr) ); in core_create_syms_from()
567 symtab.limit->name = (char *) xmalloc (strlen (name) + 1); in core_create_syms_from()
568 strcpy ((char *) symtab.limit->name, name); in core_create_syms_from()
569 symtab.limit->mapped = 0; in core_create_syms_from()
[all …]
/netbsd-src/external/bsd/pcc/dist/pcc/cc/cxxcom/
H A Dpass1.h114 struct symtab;
149 struct symtab { struct
150 struct symtab *snext; /* link to other symbols in the same scope */ argument
151 struct symtab *sdown; /* link to parent class */ argument
152 struct symtab *sup; /* link to child class */ argument
183 extern struct symtab *cftnsp; argument
235 void locctr(int type, struct symtab *sp);
238 void symdirec(struct symtab *sp);
257 *xbcon(CONSZ, struct symtab *, TWORD),
272 *doacall(struct symtab *, NODE *, NODE *, int);
[all …]
H A Dcxxdefs.h12 extern struct symtab *spole, *nscur;
31 char *decoratename(struct symtab *sp, int type);
35 struct symtab *cxxlookup(NODE *p, int declare);
36 void cxxsetname(struct symtab *sp);
37 void cxxmember(struct symtab *sp);
38 struct symtab *cxxstrvar(struct symtab *so);
39 struct symtab *cxxdclstr(char *n);
40 struct symtab *cxxftnfind(NODE *p, int flags);
41 struct symtab *cxxdeclvar(NODE *p);
H A Dcxxcode.c31 struct symtab spole0 = { 0, 0, 0, 0, 0, 0, 0, "base", "base", };
32 struct symtab *spole = &spole0;
33 struct symtab *nscur = &spole0;
36 static struct symtab *sfind(char *n, struct symtab *sp);
43 struct symtab *sp; in dclns()
76 struct symtab *sp = getsymtab(n, 0); in callftn()
263 recnpsh(struct symtab *sp) in recnpsh()
305 decoratename(struct symtab *sp, int type) in decoratename()
354 static struct symtab *
355 sfind(char *n, struct symtab *sp) in sfind()
[all …]
/netbsd-src/external/gpl3/binutils/dist/gold/
H A Dgold.cc113 Symbol_table* symtab, in Middle_runner() argument
115 : options_(options), input_objects_(input_objects), symtab_(symtab), in Middle_runner()
144 Symbol_table* symtab, in Gc_runner() argument
146 : options_(options), input_objects_(input_objects), symtab_(symtab), in Gc_runner()
176 Symbol_table* symtab, Layout* layout, Mapfile* mapfile) in queue_initial_tasks() argument
241 workqueue->queue(new Read_symbols(input_objects, symtab, layout, in queue_initial_tasks()
261 Task* t = process_incremental_input(ibase, i, input_objects, symtab, in queue_initial_tasks()
276 workqueue->queue(new Plugin_hook(options, input_objects, symtab, layout, in queue_initial_tasks()
290 symtab, in queue_initial_tasks()
300 symtab, in queue_initial_tasks()
[all …]
/netbsd-src/external/gpl3/binutils.old/dist/gold/
H A Dgold.cc113 Symbol_table* symtab, in Middle_runner() argument
115 : options_(options), input_objects_(input_objects), symtab_(symtab), in Middle_runner()
144 Symbol_table* symtab, in Gc_runner() argument
146 : options_(options), input_objects_(input_objects), symtab_(symtab), in Gc_runner()
176 Symbol_table* symtab, Layout* layout, Mapfile* mapfile) in queue_initial_tasks() argument
241 workqueue->queue(new Read_symbols(input_objects, symtab, layout, in queue_initial_tasks()
261 Task* t = process_incremental_input(ibase, i, input_objects, symtab, in queue_initial_tasks()
276 workqueue->queue(new Plugin_hook(options, input_objects, symtab, layout, in queue_initial_tasks()
290 symtab, in queue_initial_tasks()
300 symtab, in queue_initial_tasks()
[all …]
/netbsd-src/external/bsd/pcc/dist/pcc/cc/ccom/
H A Dpass1.h115 struct symtab;
148 struct symtab { struct
149 struct symtab *snext; /* link to other symbols in the same scope */ argument
179 extern struct symtab *cftnsp; argument
230 void locctr(int type, struct symtab *sp);
233 void symdirec(struct symtab *sp);
256 struct symtab *_sp;
288 *xbcon(CONSZ, struct symtab *, TWORD),
302 *doacall(struct symtab *, P1ND *, P1ND *);
314 int oalloc(struct symtab *, int *);
[all …]
/netbsd-src/sys/ddb/
H A Ddb_elf.c102 void *symtab, /* pointer to start of symbol table */ in db_elf_sym_init() argument
115 if (ALIGNED_POINTER(symtab, long) == 0) { in db_elf_sym_init()
117 name, symtab); in db_elf_sym_init()
141 elf = (Elf_Ehdr *)symtab; in db_elf_sym_init()
160 shp = (Elf_Shdr *)((char *)symtab + elf->e_shoff); in db_elf_sym_init()
166 symtab_start = (Elf_Sym *)((char *)symtab + in db_elf_sym_init()
168 symtab_end = (Elf_Sym *)((char *)symtab + in db_elf_sym_init()
174 strtab_start = (char *)symtab + shp[j].sh_offset; in db_elf_sym_init()
175 strtab_end = (char *)symtab + shp[j].sh_offset + in db_elf_sym_init()
197 (char *)symtab_end, name, (char *)symtab) != -1) { in db_elf_sym_init()
[all …]
/netbsd-src/external/gpl3/gcc/dist/gcc/
H A Dcgraphunit.cc497 if (symtab->state == CONSTRUCTION in finalize_function()
536 switch (symtab->state) in add_new_function()
563 if (!lowered && symtab->state == EXPANSION) in add_new_function()
858 for (node = symtab->first_function (); node != first; in process_function_and_variable_attributes()
859 node = symtab->next_function (node)) in process_function_and_variable_attributes()
916 for (vnode = symtab->first_variable (); vnode != first_var; in process_function_and_variable_attributes()
917 vnode = symtab->next_variable (vnode)) in process_function_and_variable_attributes()
974 if (symtab->state == CONSTRUCTION in finalize_decl()
977 if (symtab->state >= IPA_SSA) in finalize_decl()
981 if (symtab->state == FINISHED in finalize_decl()
[all …]
H A Dipa-utils.cc169 env.stack = XCNEWVEC (struct cgraph_node *, symtab->cgraph_count); in ipa_reduced_postorder()
286 XCNEWVEC (struct postorder_stack, symtab->cgraph_count); in ipa_reverse_postorder()
449 if (symtab->dump_file) in ipa_merge_profiles()
451 fprintf (symtab->dump_file, "Merging profiles of %s count:", in ipa_merge_profiles()
453 src->count.dump (symtab->dump_file); in ipa_merge_profiles()
454 fprintf (symtab->dump_file, " to %s count:", in ipa_merge_profiles()
456 orig_count.dump (symtab->dump_file); in ipa_merge_profiles()
457 fprintf (symtab->dump_file, " resulting count:"); in ipa_merge_profiles()
458 dst->count.dump (symtab->dump_file); in ipa_merge_profiles()
459 fprintf (symtab->dump_file, "\n"); in ipa_merge_profiles()
[all …]
H A Dsymtab-clones.cc53 if (!symtab->m_clones) in get_create()
55 symtab->m_clones in get_create()
57 function_summary <clone_info *> (symtab, true); in get_create()
58 symtab->m_clones->disable_insertion_hook (); in get_create()
59 symtab->m_clones->disable_duplication_hook (); in get_create()
61 return symtab->m_clones->get_create (node); in get_create()
H A Dsymtab-clones.h55 if (!symtab->m_clones) in get()
57 return symtab->m_clones->get (node); in get()
65 symtab->m_clones->remove (node); in remove()
72 if (symtab->m_clones) in release()
73 ggc_delete (symtab->m_clones); in release()
74 symtab->m_clones = NULL; in release()
/netbsd-src/external/gpl3/gcc.old/dist/lto-plugin/
H A Dlto-plugin.c137 struct plugin_symtab symtab; member
414 struct plugin_symtab *symtab = &info->symtab; in free_1() local
416 for (j = 0; j < symtab->nsyms; j++) in free_1()
418 struct ld_plugin_symbol *s = &symtab->syms[j]; in free_1()
422 free (symtab->syms); in free_1()
423 symtab->syms = NULL; in free_1()
436 struct plugin_symtab *symtab = &info->symtab; in free_2() local
437 free (symtab->aux); in free_2()
464 dump_symtab (FILE *f, struct plugin_symtab *symtab) in dump_symtab() argument
468 for (j = 0; j < symtab->nsyms; j++) in dump_symtab()
[all …]
/netbsd-src/external/gpl3/gcc/dist/lto-plugin/
H A Dlto-plugin.c137 struct plugin_symtab symtab; member
421 struct plugin_symtab *symtab = &info->symtab; in free_1() local
423 for (j = 0; j < symtab->nsyms; j++) in free_1()
425 struct ld_plugin_symbol *s = &symtab->syms[j]; in free_1()
429 free (symtab->syms); in free_1()
430 symtab->syms = NULL; in free_1()
443 struct plugin_symtab *symtab = &info->symtab; in free_2() local
444 free (symtab->aux); in free_2()
471 dump_symtab (FILE *f, struct plugin_symtab *symtab) in dump_symtab() argument
475 for (j = 0; j < symtab->nsyms; j++) in dump_symtab()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libobjc/
H A Dinit.c578 struct objc_symtab *symtab = module->symtab; in __objc_exec_class() local
582 = symtab->defs[symtab->cls_def_cnt + symtab->cat_def_cnt]; in __objc_exec_class()
588 struct objc_selector *selectors = symtab->refs; in __objc_exec_class()
635 for (i = 0; i < symtab->cls_def_cnt; ++i) in __objc_exec_class()
637 Class class = (Class) symtab->defs[i]; in __objc_exec_class()
668 for (i = 0; i < symtab->cat_def_cnt; ++i) in __objc_exec_class()
670 struct objc_category *category = symtab->defs[i + symtab->cls_def_cnt]; in __objc_exec_class()
839 struct objc_symtab *symtab = module->symtab; in __objc_create_classes_tree() local
844 for (i = 0; i < symtab->cls_def_cnt; i++) in __objc_create_classes_tree()
846 Class class = (Class) symtab->defs[i]; in __objc_create_classes_tree()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libobjc/
H A Dinit.c578 struct objc_symtab *symtab = module->symtab; in __objc_exec_class() local
582 = symtab->defs[symtab->cls_def_cnt + symtab->cat_def_cnt]; in __objc_exec_class()
588 struct objc_selector *selectors = symtab->refs; in __objc_exec_class()
635 for (i = 0; i < symtab->cls_def_cnt; ++i) in __objc_exec_class()
637 Class class = (Class) symtab->defs[i]; in __objc_exec_class()
668 for (i = 0; i < symtab->cat_def_cnt; ++i) in __objc_exec_class()
670 struct objc_category *category = symtab->defs[i + symtab->cls_def_cnt]; in __objc_exec_class()
839 struct objc_symtab *symtab = module->symtab; in __objc_create_classes_tree() local
844 for (i = 0; i < symtab->cls_def_cnt; i++) in __objc_create_classes_tree()
846 Class class = (Class) symtab->defs[i]; in __objc_create_classes_tree()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/gcc/
H A Dipa-utils.c169 env.stack = XCNEWVEC (struct cgraph_node *, symtab->cgraph_count); in ipa_reduced_postorder()
286 XCNEWVEC (struct postorder_stack, symtab->cgraph_count); in ipa_reverse_postorder()
449 if (symtab->dump_file) in ipa_merge_profiles()
451 fprintf (symtab->dump_file, "Merging profiles of %s count:", in ipa_merge_profiles()
453 src->count.dump (symtab->dump_file); in ipa_merge_profiles()
454 fprintf (symtab->dump_file, " to %s count:", in ipa_merge_profiles()
456 orig_count.dump (symtab->dump_file); in ipa_merge_profiles()
457 fprintf (symtab->dump_file, " resulting count:"); in ipa_merge_profiles()
458 dst->count.dump (symtab->dump_file); in ipa_merge_profiles()
459 fprintf (symtab->dump_file, "\n"); in ipa_merge_profiles()
[all …]
H A Dcgraphunit.c497 if (symtab->state == CONSTRUCTION in finalize_function()
536 switch (symtab->state) in add_new_function()
561 if (!lowered && symtab->state == EXPANSION) in add_new_function()
851 for (node = symtab->first_function (); node != first; in process_function_and_variable_attributes()
852 node = symtab->next_function (node)) in process_function_and_variable_attributes()
909 for (vnode = symtab->first_variable (); vnode != first_var; in process_function_and_variable_attributes()
910 vnode = symtab->next_variable (vnode)) in process_function_and_variable_attributes()
966 if (symtab->state == CONSTRUCTION in finalize_decl()
969 if (symtab->state >= IPA_SSA) in finalize_decl()
973 if (symtab->state == FINISHED in finalize_decl()
[all …]
/netbsd-src/external/bsd/elftoolchain/dist/libelf/
H A Dlibelf_ar.c327 Elf_Arsym *symtab, *sym; in _libelf_ar_process_bsd_symtab() local
338 symtab = NULL; in _libelf_ar_process_bsd_symtab()
375 if ((symtab = malloc(sizeof(Elf_Arsym) * (nentries + 1))) == NULL) { in _libelf_ar_process_bsd_symtab()
381 for (n = 0, sym = symtab; n < nentries; n++, sym++) { in _libelf_ar_process_bsd_symtab()
405 e->e_u.e_ar.e_symtab = symtab; in _libelf_ar_process_bsd_symtab()
409 return (symtab); in _libelf_ar_process_bsd_symtab()
412 if (symtab) in _libelf_ar_process_bsd_symtab()
413 free(symtab); in _libelf_ar_process_bsd_symtab()
443 Elf_Arsym *symtab, *sym; in _libelf_ar_process_svr4_symtab() local
450 symtab = NULL; in _libelf_ar_process_svr4_symtab()
[all …]
/netbsd-src/external/gpl3/gcc/dist/gcc/lto/
H A Dlto.cc345 if (symtab->dump_file) in lto_wpa_write_files()
349 fprintf (symtab->dump_file, in lto_wpa_write_files()
352 fprintf (symtab->dump_file, " Symbols in partition: "); in lto_wpa_write_files()
358 fprintf (symtab->dump_file, "%s ", node->dump_asm_name ()); in lto_wpa_write_files()
360 fprintf (symtab->dump_file, "\n Symbols in boundary: "); in lto_wpa_write_files()
367 fprintf (symtab->dump_file, "%s ", node->dump_asm_name ()); in lto_wpa_write_files()
372 fprintf (symtab->dump_file, "(body included)"); in lto_wpa_write_files()
379 fprintf (symtab->dump_file, "(initializer included)"); in lto_wpa_write_files()
383 fprintf (symtab->dump_file, "\n"); in lto_wpa_write_files()
488 symtab->function_flags_ready = true; in do_whole_program_analysis()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/gcc/lto/
H A Dlto.c345 if (symtab->dump_file) in lto_wpa_write_files()
349 fprintf (symtab->dump_file, in lto_wpa_write_files()
352 fprintf (symtab->dump_file, " Symbols in partition: "); in lto_wpa_write_files()
358 fprintf (symtab->dump_file, "%s ", node->dump_asm_name ()); in lto_wpa_write_files()
360 fprintf (symtab->dump_file, "\n Symbols in boundary: "); in lto_wpa_write_files()
367 fprintf (symtab->dump_file, "%s ", node->dump_asm_name ()); in lto_wpa_write_files()
372 fprintf (symtab->dump_file, "(body included)"); in lto_wpa_write_files()
379 fprintf (symtab->dump_file, "(initializer included)"); in lto_wpa_write_files()
383 fprintf (symtab->dump_file, "\n"); in lto_wpa_write_files()
462 symtab->function_flags_ready = true; in do_whole_program_analysis()
[all …]

12345678910>>...43