Lines Matching refs:fat_header

351     struct fat_header *fat_header;
484 if(sizeof(struct fat_header) > file_size){
489 fat_header = (struct fat_header *)file_addr;
491 if(fat_header->magic == FAT_MAGIC)
494 if(fat_header->magic == SWAP_LONG(FAT_MAGIC))
674 struct fat_header *fat_header;
676 struct fat_header struct_fat_header;
687 fat_header = (struct fat_header *)file_addr;
689 struct_fat_header = *fat_header;
691 fat_header = &struct_fat_header;
694 if(sizeof(struct fat_header) + fat_header->nfat_arch *
702 fat_archs = (struct fat_arch *)(file_addr + sizeof(struct fat_header));
705 fat_archs = allocate(fat_header->nfat_arch * sizeof(struct fat_arch));
706 memcpy(fat_archs, file_addr + sizeof(struct fat_header),
707 fat_header->nfat_arch * sizeof(struct fat_arch));
708 swap_fat_arch(fat_archs, fat_header->nfat_arch, host_byte_sex);
719 check_fat(file_name, file_size, fat_header, fat_archs, NULL, 0);
732 fat_archs, fat_header->nfat_arch);
796 if(fat_header->nfat_arch == 1){
827 fat_archs, fat_header->nfat_arch);
871 struct fat_header *fat_header,
878 if(fat_header->nfat_arch == 0){
888 for(i = 0; i < fat_header->nfat_arch; i++){
944 for(i = 0; i < fat_header->nfat_arch; i++){
945 for(j = i + 1; j < fat_header->nfat_arch; j++){
1001 struct fat_header *fat_header;
1003 struct fat_header struct_fat_header;
1105 fat_header = (struct fat_header *)(file_addr + offset);
1106 if(ar_size >= sizeof(struct fat_header) &&
1108 fat_header->magic == FAT_MAGIC)
1111 fat_header->magic == SWAP_LONG(FAT_MAGIC))
1115 struct_fat_header = *fat_header;
1117 fat_header = &struct_fat_header;
1119 if(sizeof(struct fat_header) + fat_header->nfat_arch *
1128 sizeof(struct fat_header));
1131 fat_archs = allocate(fat_header->nfat_arch *
1134 sizeof(struct fat_header),
1135 fat_header->nfat_arch * sizeof(struct fat_arch));
1136 swap_fat_arch(fat_archs, fat_header->nfat_arch,
1140 check_fat(file_name, ar_size, fat_header, fat_archs,
1154 fat_archs, fat_header->nfat_arch);
1198 else if(fat_header->nfat_arch == 1){
1215 fat_archs, fat_header->nfat_arch);
3610 struct fat_header *fat_header;
3714 if(sizeof(struct fat_header) > file_size){
3719 fat_header = (struct fat_header *)file_addr;
3721 if(fat_header->magic == FAT_MAGIC)
3724 if(fat_header->magic == SWAP_LONG(FAT_MAGIC))