Searched refs:namesz (Results 1 – 5 of 5) sorted by relevance
39 Elf32_Word namesz = NOTE_ALIGN (n->n_namesz); in elf_cvt_note() local46 if (namesz > len) in elf_cvt_note()48 len -= namesz; in elf_cvt_note()54 memcpy (dest, src, namesz + descsz); in elf_cvt_note()56 src += namesz + descsz; in elf_cvt_note()57 dest += namesz + descsz; in elf_cvt_note()
73 GElf_Word namesz = NOTE_ALIGN (n->n_namesz); in gelf_getnote() local77 || data->d_size - offset < namesz in gelf_getnote()78 || (namesz == 0 && n->n_namesz != 0))) in gelf_getnote()83 offset += namesz; in gelf_getnote()
102 const size_t namesz = 4; in TEST() local105 .n_namesz = namesz, in TEST()110 const char note_name[namesz] = ELF_NOTE_GNU; in TEST()
210 int namesz; in check_for_modules() local220 namesz = strlen(fs_name); in check_for_modules()233 if (!strncmp(cp, fs_name, namesz) && in check_for_modules()234 (!strcmp(cp + namesz, ".ko") || in check_for_modules()235 !strcmp(cp + namesz, ".ko.gz"))) { in check_for_modules()
2022 size_t namesz; in kmod_module_get_sections() local2046 namesz = strlen(dent->d_name) + 1; in kmod_module_get_sections()2047 section = malloc(sizeof(*section) + namesz); in kmod_module_get_sections()2055 memcpy(section->name, dent->d_name, namesz); in kmod_module_get_sections()