Lines Matching refs:offsetof

314   filetype = (*fetch_32) (b + offsetof (struct mach_o_header_32, filetype));  in simple_object_mach_o_match()
326 omr->cputype = (*fetch_32) (b + offsetof (struct mach_o_header_32, cputype)); in simple_object_mach_o_match()
328 + offsetof (struct mach_o_header_32, in simple_object_mach_o_match()
330 omr->ncmds = (*fetch_32) (b + offsetof (struct mach_o_header_32, ncmds)); in simple_object_mach_o_match()
331 omr->flags = (*fetch_32) (b + offsetof (struct mach_o_header_32, flags)); in simple_object_mach_o_match()
336 + offsetof (struct mach_o_header_64, in simple_object_mach_o_match()
366 + offsetof (struct mach_o_section_32, offset)); in simple_object_mach_o_section_info()
368 + offsetof (struct mach_o_section_32, size)); in simple_object_mach_o_section_info()
373 + offsetof (struct mach_o_section_64, offset)); in simple_object_mach_o_section_info()
375 + offsetof (struct mach_o_section_64, size)); in simple_object_mach_o_section_info()
447 segname_offset = offsetof (struct mach_o_section_32, segname); in simple_object_mach_o_segment()
448 sectname_offset = offsetof (struct mach_o_section_32, sectname); in simple_object_mach_o_segment()
450 + offsetof (struct mach_o_segment_command_32, in simple_object_mach_o_segment()
457 segname_offset = offsetof (struct mach_o_section_64, segname); in simple_object_mach_o_segment()
458 sectname_offset = offsetof (struct mach_o_section_64, sectname); in simple_object_mach_o_segment()
460 + offsetof (struct mach_o_segment_command_64, in simple_object_mach_o_segment()
781 cmd = (*fetch_32) (loadbuf + offsetof (struct mach_o_load_command, cmd)); in simple_object_mach_o_find_sections()
783 + offsetof (struct mach_o_load_command, cmdsize)); in simple_object_mach_o_find_sections()
909 set_32 (hdr + offsetof (struct mach_o_header_32, magic), attrs->magic); in simple_object_mach_o_write_header()
910 set_32 (hdr + offsetof (struct mach_o_header_32, cputype), attrs->cputype); in simple_object_mach_o_write_header()
911 set_32 (hdr + offsetof (struct mach_o_header_32, cpusubtype), in simple_object_mach_o_write_header()
913 set_32 (hdr + offsetof (struct mach_o_header_32, filetype), MACH_O_MH_OBJECT); in simple_object_mach_o_write_header()
914 set_32 (hdr + offsetof (struct mach_o_header_32, ncmds), 1); in simple_object_mach_o_write_header()
915 set_32 (hdr + offsetof (struct mach_o_header_32, flags), attrs->flags); in simple_object_mach_o_write_header()
919 set_32 (hdr + offsetof (struct mach_o_header_32, sizeofcmds), in simple_object_mach_o_write_header()
925 set_32 (hdr + offsetof (struct mach_o_header_64, sizeofcmds), in simple_object_mach_o_write_header()
928 set_32 (hdr + offsetof (struct mach_o_header_64, reserved), in simple_object_mach_o_write_header()
964 strncpy ((char *) hdr + offsetof (struct mach_o_section_32, sectname), in simple_object_mach_o_write_section_header()
966 strncpy ((char *) hdr + offsetof (struct mach_o_section_32, segname), in simple_object_mach_o_write_section_header()
968 set_32 (hdr + offsetof (struct mach_o_section_32, addr), secaddr); in simple_object_mach_o_write_section_header()
969 set_32 (hdr + offsetof (struct mach_o_section_32, size), secsize); in simple_object_mach_o_write_section_header()
970 set_32 (hdr + offsetof (struct mach_o_section_32, offset), offset); in simple_object_mach_o_write_section_header()
971 set_32 (hdr + offsetof (struct mach_o_section_32, align), align); in simple_object_mach_o_write_section_header()
974 set_32 (hdr + offsetof (struct mach_o_section_32, flags), in simple_object_mach_o_write_section_header()
989 strncpy ((char *) hdr + offsetof (struct mach_o_section_64, sectname), in simple_object_mach_o_write_section_header()
991 strncpy ((char *) hdr + offsetof (struct mach_o_section_64, segname), in simple_object_mach_o_write_section_header()
993 set_64 (hdr + offsetof (struct mach_o_section_64, addr), secaddr); in simple_object_mach_o_write_section_header()
994 set_64 (hdr + offsetof (struct mach_o_section_64, size), secsize); in simple_object_mach_o_write_section_header()
995 set_32 (hdr + offsetof (struct mach_o_section_64, offset), offset); in simple_object_mach_o_write_section_header()
996 set_32 (hdr + offsetof (struct mach_o_section_64, align), align); in simple_object_mach_o_write_section_header()
999 set_32 (hdr + offsetof (struct mach_o_section_64, flags), in simple_object_mach_o_write_section_header()
1286 set_32 (hdr + offsetof (struct mach_o_segment_command_32, cmd), in simple_object_mach_o_write_segment()
1288 set_32 (hdr + offsetof (struct mach_o_segment_command_32, cmdsize), in simple_object_mach_o_write_segment()
1294 set_32 (hdr + offsetof (struct mach_o_segment_command_32, fileoff), in simple_object_mach_o_write_segment()
1296 set_32 (hdr + offsetof (struct mach_o_segment_command_32, filesize), in simple_object_mach_o_write_segment()
1300 set_32 (hdr + offsetof (struct mach_o_segment_command_32, nsects), in simple_object_mach_o_write_segment()
1313 set_32 (hdr + offsetof (struct mach_o_segment_command_64, cmd), in simple_object_mach_o_write_segment()
1315 set_32 (hdr + offsetof (struct mach_o_segment_command_64, cmdsize), in simple_object_mach_o_write_segment()
1321 set_64 (hdr + offsetof (struct mach_o_segment_command_64, fileoff), in simple_object_mach_o_write_segment()
1323 set_64 (hdr + offsetof (struct mach_o_segment_command_64, filesize), in simple_object_mach_o_write_segment()
1327 set_32 (hdr + offsetof (struct mach_o_segment_command_64, nsects), in simple_object_mach_o_write_segment()