/third_party/elfio/examples/c_wrapper/ |
D | c_example.c | 70 psection_t psection = elfio_get_section_by_index( pelfio, i ); in main() local 72 elfio_section_get_name( psection, buff, 100 ); in main() 97 psection_t psection = elfio_get_section_by_name( pelfio, ".symtab" ); in main() local 98 psymbol_t psymbols = elfio_symbol_section_accessor_new( pelfio, psection ); in main() 117 psection = elfio_get_section_by_name( pelfio, ".rela.dyn" ); in main() 119 elfio_relocation_section_accessor_new( pelfio, psection ); in main() 135 psection = elfio_get_section_by_name( pelfio, ".strtab" ); in main() 136 pstring_t pstring = elfio_string_section_accessor_new( psection ); in main() 149 psection = elfio_get_section_by_name( pelfio, ".note.gnu.build-id" ); in main() 150 pnote_t pnote = elfio_note_section_accessor_new( pelfio, psection ); in main() [all …]
|
D | elfio_c_wrapper.cpp | 137 void elfio_section_get_name( psection_t psection, char* buffer, int len ) in elfio_section_get_name() argument 139 strncpy( buffer, psection->get_name().c_str(), (size_t)len - 1 ); in elfio_section_get_name() 142 void elfio_section_set_name( psection_t psection, char* buffer ) in elfio_section_set_name() argument 144 psection->set_name( buffer ); in elfio_section_set_name() 147 char* elfio_section_get_data( psection_t psection ) in elfio_section_get_data() argument 149 return (char*)psection->get_data(); in elfio_section_get_data() 152 void elfio_section_set_data( psection_t psection, in elfio_section_set_data() argument 156 psection->set_data( pData, size ); in elfio_section_set_data() 159 void elfio_section_append_data( psection_t psection, in elfio_section_append_data() argument 163 psection->append_data( pData, size ); in elfio_section_append_data() [all …]
|
D | elfio_c_wrapper.h | 155 void elfio_section_get_name( psection_t psection, char* buffer, int len ); 156 void elfio_section_set_name( psection_t psection, char* buffer ); 157 char* elfio_section_get_data( psection_t psection ); 158 void elfio_section_set_data( psection_t psection, 161 void elfio_section_append_data( psection_t psection, 190 psection_t psection ); 218 psection_t psection ); 245 pstring_t elfio_string_section_accessor_new( psection_t psection ); 254 psection_t psection ); 273 pmodinfo_t elfio_modinfo_section_accessor_new( psection_t psection ); [all …]
|
/third_party/elfio/c_wrapper/ |
D | elfio_c_wrapper.cpp | 137 void elfio_section_get_name( psection_t psection, char* buffer, int len ) in elfio_section_get_name() argument 139 strncpy( buffer, psection->get_name().c_str(), (size_t)len - 1 ); in elfio_section_get_name() 142 void elfio_section_set_name( psection_t psection, char* buffer ) in elfio_section_set_name() argument 144 psection->set_name( buffer ); in elfio_section_set_name() 147 char* elfio_section_get_data( psection_t psection ) in elfio_section_get_data() argument 149 return (char*)psection->get_data(); in elfio_section_get_data() 152 void elfio_section_set_data( psection_t psection, in elfio_section_set_data() argument 156 psection->set_data( pData, size ); in elfio_section_set_data() 159 void elfio_section_append_data( psection_t psection, in elfio_section_append_data() argument 163 psection->append_data( pData, size ); in elfio_section_append_data() [all …]
|
D | elfio_c_wrapper.h | 157 void elfio_section_get_name( psection_t psection, char* buffer, int len ); 158 void elfio_section_set_name( psection_t psection, char* buffer ); 159 char* elfio_section_get_data( psection_t psection ); 160 void elfio_section_set_data( psection_t psection, 163 void elfio_section_append_data( psection_t psection, 192 psection_t psection ); 220 psection_t psection ); 247 pstring_t elfio_string_section_accessor_new( psection_t psection ); 256 psection_t psection ); 275 pmodinfo_t elfio_modinfo_section_accessor_new( psection_t psection ); [all …]
|
/third_party/openssl/crypto/conf/ |
D | conf_def.c | 222 char *start, *psection, *pname; in def_load_bio() local 385 psection = pname; in def_load_bio() 389 psection = section; in def_load_bio() 453 if (!str_copy(conf, psection, &include, p)) in def_load_bio() 532 if (!str_copy(conf, psection, &(v->value), start)) in def_load_bio() 535 if (strcmp(psection, section) != 0) { in def_load_bio() 536 if ((tv = _CONF_get_section(conf, psection)) in def_load_bio() 538 tv = _CONF_new_section(conf, psection); in def_load_bio()
|
/third_party/libbpf/src/ |
D | btf.c | 940 psection_t psection = elfio_get_section_by_index(elf, idx); in elf_sec_hdr_by_idx() local 942 sheader->sh_name = elfio_section_get_name_string_offset(psection); in elf_sec_hdr_by_idx() 943 sheader->sh_type = elfio_section_get_type(psection); in elf_sec_hdr_by_idx() 944 sheader->sh_flags = elfio_section_get_flags(psection); in elf_sec_hdr_by_idx() 945 sheader->sh_addr = elfio_section_get_address(psection); in elf_sec_hdr_by_idx() 946 sheader->sh_offset = elfio_section_get_offset(psection); in elf_sec_hdr_by_idx() 947 sheader->sh_size = elfio_section_get_size(psection); in elf_sec_hdr_by_idx() 948 sheader->sh_link = elfio_section_get_link(psection); in elf_sec_hdr_by_idx() 949 sheader->sh_info = elfio_section_get_info(psection); in elf_sec_hdr_by_idx() 950 sheader->sh_addralign = elfio_section_get_addr_align(psection); in elf_sec_hdr_by_idx() [all …]
|
D | libbpf.c | 615 psection_t psection; member 3418 psection_t psection = elfio_get_section_by_index(obj->efile.elf, idx); local 3420 sheader->sh_name = elfio_section_get_name_string_offset(psection); 3421 sheader->sh_type = elfio_section_get_type(psection); 3422 sheader->sh_flags = elfio_section_get_flags(psection); 3423 sheader->sh_addr = elfio_section_get_address(psection); 3424 sheader->sh_offset = elfio_section_get_offset(psection); 3425 sheader->sh_size = elfio_section_get_size(psection); 3426 sheader->sh_link = elfio_section_get_link(psection); 3427 sheader->sh_info = elfio_section_get_info(psection); [all …]
|