Lines Matching refs:fat_header
80 struct fat_header *fat_header;
144 static struct fat_header fat_header = { 0 };
559 if(input_files[0].fat_header == NULL)
599 if(input_files[0].fat_header == NULL)
649 if(input_files[0].fat_header == NULL)
699 if(input_files[0].fat_header == NULL)
733 if(input_files[i].fat_header != NULL){
736 for(j = 0; j < input_files[i].fat_header->nfat_arch; j++){
760 if(input_files[i].fat_header != NULL){
763 (unsigned int)(input_files[i].fat_header->magic));
765 input_files[i].fat_header->nfat_arch);
766 for(j = 0; j < input_files[i].fat_header->nfat_arch; j++){
872 fat_header.magic = FAT_MAGIC;
873 fat_header.nfat_arch = nthin_files;
874 offset = sizeof(struct fat_header) +
893 swap_fat_header(&fat_header, BIG_ENDIAN_BYTE_SEX);
895 if(write(fd, &fat_header, sizeof(struct fat_header)) !=
896 sizeof(struct fat_header))
900 swap_fat_header(&fat_header, LITTLE_ENDIAN_BYTE_SEX);
1008 if(size >= sizeof(struct fat_header) &&
1022 input->fat_header = (struct fat_header *)addr;
1024 swap_fat_header(input->fat_header, LITTLE_ENDIAN_BYTE_SEX);
1026 big_size = input->fat_header->nfat_arch;
1028 big_size += sizeof(struct fat_header);
1033 sizeof(struct fat_header));
1035 swap_fat_arch(input->fat_arches, input->fat_header->nfat_arch,
1038 for(i = 0; i < input->fat_header->nfat_arch; i++){
1062 for(i = 0; i < input->fat_header->nfat_arch; i++){
1063 for(j = i + 1; j < input->fat_header->nfat_arch; j++){
1076 for(i = 0; i < input->fat_header->nfat_arch; i++){
1263 if(size >= sizeof(struct fat_header) &&