Lines Matching defs:hdr
101 } hdr;
137 read(io, (void *)&hdr.aout, sizeof(hdr.aout));
138 if (N_GETMAGIC(hdr.aout) == OMAGIC && N_GETMID(hdr.aout) == MID_VAX) {
140 entry = hdr.aout.a_entry;
141 if (entry < sizeof(hdr.aout))
142 entry = sizeof(hdr.aout);
143 read(io, (void *) entry, hdr.aout.a_text + hdr.aout.a_data);
144 memset((void *) (entry + hdr.aout.a_text + hdr.aout.a_data),
145 0, hdr.aout.a_bss);
146 } else if (memcmp(hdr.elf.e_ident, ELFMAG, SELFMAG) == 0) {
148 size_t off = sizeof(hdr.elf);
150 read(io, (char *)&hdr.elf + sizeof(hdr.aout),
151 sizeof(hdr.elf) - sizeof(hdr.aout));
152 if (hdr.elf.e_machine != EM_VAX || hdr.elf.e_type != ET_EXEC
153 || hdr.elf.e_phnum != 1)
156 entry = hdr.elf.e_entry;
157 if (hdr.elf.e_phoff != sizeof(hdr.elf))
170 read(io, (void *) hdr.elf.e_entry, ph.p_filesz);
171 memset((void *) (hdr.elf.e_entry + ph.p_filesz), 0,