Lines Matching refs:swap
42 #include <mach-o/swap.h>
287 boolean_t swap = FALSE;
302 swap = TRUE;
324 /* Validate and potentially swap the load commands */
333 if (swap) {
346 /* Get and swap the segment header */
349 if (swap) swap_segment_command(seg_hdr, host_order);
352 /* Get and swap the section headers */
355 if (swap) swap_section(sects, seg_hdr->nsects, host_order);
387 if (swap) {
396 /* Get and swap the symtab header */
399 if (swap) swap_symtab_command(symtab_hdr, host_order);
416 if (swap) swap_nlist(symtab, symtab_hdr->nsyms, host_order);
423 if (swap) swap_load_command(load_hdr, host_order);
458 boolean_t swap = FALSE;
473 swap = TRUE;
495 /* Validate and potentially swap the load commands */
503 if (swap) {
515 /* Get and swap the segment header */
518 if (swap) swap_segment_command_64(seg_hdr, host_order);
521 /* Get and swap the section headers */
524 if (swap) swap_section_64(sects, seg_hdr->nsects, host_order);
556 if (swap) {
565 /* Get and swap the symtab header */
568 if (swap) swap_symtab_command(symtab_hdr, host_order);
585 if (swap) swap_nlist_64(symtab, symtab_hdr->nsyms, host_order);
592 if (swap) swap_load_command(load_hdr, host_order);