Lines Matching refs:elf
37 elf_cntl(Elf * elf, Elf_Cmd cmd) in elf_cntl() argument
40 if (elf == 0) in elf_cntl()
42 ELFWLOCK(elf); in elf_cntl()
48 if ((elf->ed_myflags & EDF_READ) == 0) { in elf_cntl()
50 ELFUNLOCK(elf); in elf_cntl()
53 if ((elf->ed_status != ES_FROZEN) && in elf_cntl()
54 ((_elf_cook(elf) != OK_YES) || in elf_cntl()
55 (_elf_vm(elf, (size_t)0, elf->ed_fsz) != OK_YES))) in elf_cntl()
57 elf->ed_fd = -1; in elf_cntl()
58 ELFUNLOCK(elf); in elf_cntl()
63 if ((elf->ed_myflags & EDF_READ) == 0) { in elf_cntl()
65 ELFUNLOCK(elf); in elf_cntl()
68 elf->ed_fd = -1; in elf_cntl()
69 ELFUNLOCK(elf); in elf_cntl()
76 ELFUNLOCK(elf); in elf_cntl()