ReactOS 0.4.15-dev-7958-gcd0bb1a
fsck.fat.h File Reference
#include <sys/types.h>
#include <fcntl.h>
#include <stddef.h>
#include <stdint.h>
#include "endian_compat.h"
#include "msdos_fs.h"
Include dependency graph for fsck.fat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  boot_sector
 
struct  boot_sector_16
 
struct  info_sector
 
struct  __attribute__
 
struct  _dos_file
 
struct  FAT_ENTRY
 
struct  DOS_FS
 

Macros

#define VFAT_LN_ATTR   (ATTR_RO | ATTR_HIDDEN | ATTR_SYS | ATTR_VOLUME)
 
#define FAT_STATE_DIRTY   0x01
 
#define FAT_EOF(fs)   ((atari_format ? 0xfff : 0xff8) | FAT_EXTD(fs))
 
#define FAT_IS_EOF(fs, v)   ((uint32_t)(v) >= (0xff8|FAT_EXTD(fs)))
 
#define FAT_BAD(fs)   (0xff7 | FAT_EXTD(fs))
 
#define FAT_MIN_BAD(fs)   ((atari_format ? 0xff0 : 0xff7) | FAT_EXTD(fs))
 
#define FAT_MAX_BAD(fs)   ((atari_format ? 0xff7 : 0xff7) | FAT_EXTD(fs))
 
#define FAT_IS_BAD(fs, v)   ((v) >= FAT_MIN_BAD(fs) && (v) <= FAT_MAX_BAD(fs))
 
#define FAT_EXTD(fs)   (((1 << fs->eff_fat_bits)-1) & ~0xf)
 
#define FAT_NO_83NAME   32
 

Typedefs

typedef struct _dos_file DOS_FILE
 

Functions

struct boot_sector __attribute__ ((packed))
 

Variables

uint8_t ignored [3]
 
uint8_t system_id [8]
 
uint8_t sector_size [2]
 
uint8_t cluster_size
 
uint16_t reserved
 
uint8_t fats
 
uint8_t dir_entries [2]
 
uint8_t sectors [2]
 
uint8_t media
 
uint16_t fat_length
 
uint16_t secs_track
 
uint16_t heads
 
uint32_t hidden
 
uint32_t total_sect
 
uint32_t fat32_length
 
uint16_t flags
 
uint8_t version [2]
 
uint32_t root_cluster
 
uint16_t info_sector
 
uint16_t backup_boot
 
uint8_t reserved2 [12]
 
uint8_t drive_number
 
uint8_t reserved3
 
uint8_t extended_sig
 
uint32_t serial
 
uint8_t label [11]
 
uint8_t fs_type [8]
 
uint8_t junk [422]
 
struct info_sector __attribute__
 
int interactive
 
int rw
 
int list
 
int verbose
 
int test
 
int write_immed
 
int atari_format
 
unsigned n_files
 
voidmem_queue
 

Macro Definition Documentation

◆ FAT_BAD

#define FAT_BAD (   fs)    (0xff7 | FAT_EXTD(fs))

Definition at line 228 of file fsck.fat.h.

◆ FAT_EOF

#define FAT_EOF (   fs)    ((atari_format ? 0xfff : 0xff8) | FAT_EXTD(fs))

Definition at line 225 of file fsck.fat.h.

◆ FAT_EXTD

#define FAT_EXTD (   fs)    (((1 << fs->eff_fat_bits)-1) & ~0xf)

Definition at line 235 of file fsck.fat.h.

◆ FAT_IS_BAD

#define FAT_IS_BAD (   fs,
  v 
)    ((v) >= FAT_MIN_BAD(fs) && (v) <= FAT_MAX_BAD(fs))

Definition at line 232 of file fsck.fat.h.

◆ FAT_IS_EOF

#define FAT_IS_EOF (   fs,
  v 
)    ((uint32_t)(v) >= (0xff8|FAT_EXTD(fs)))

Definition at line 226 of file fsck.fat.h.

◆ FAT_MAX_BAD

#define FAT_MAX_BAD (   fs)    ((atari_format ? 0xff7 : 0xff7) | FAT_EXTD(fs))

Definition at line 231 of file fsck.fat.h.

◆ FAT_MIN_BAD

#define FAT_MIN_BAD (   fs)    ((atari_format ? 0xff0 : 0xff7) | FAT_EXTD(fs))

Definition at line 230 of file fsck.fat.h.

◆ FAT_NO_83NAME

#define FAT_NO_83NAME   32

Definition at line 238 of file fsck.fat.h.

◆ FAT_STATE_DIRTY

#define FAT_STATE_DIRTY   0x01

Definition at line 80 of file fsck.fat.h.

◆ VFAT_LN_ATTR

#define VFAT_LN_ATTR   (ATTR_RO | ATTR_HIDDEN | ATTR_SYS | ATTR_VOLUME)

Definition at line 78 of file fsck.fat.h.

Typedef Documentation

◆ DOS_FILE

Function Documentation

◆ __attribute__()

Definition at line 43 of file framebased-gcchack.c.

57{
58 return trampoline_->STR_MovEcx == 0xb9 && trampoline_->STR_Jmp == 0xe9;
59}

Variable Documentation

◆ __attribute__

◆ atari_format

int atari_format
extern

◆ backup_boot

uint16_t backup_boot

Definition at line 22 of file fsck.fat.h.

◆ cluster_size

uint8_t cluster_size

Definition at line 4 of file fsck.fat.h.

◆ dir_entries

uint8_t dir_entries[2]

Definition at line 7 of file fsck.fat.h.

◆ drive_number

uint8_t drive_number

Definition at line 25 of file fsck.fat.h.

◆ extended_sig

uint8_t extended_sig

Definition at line 28 of file fsck.fat.h.

◆ fat32_length

uint32_t fat32_length

Definition at line 17 of file fsck.fat.h.

◆ fat_length

uint16_t fat_length

Definition at line 10 of file fsck.fat.h.

◆ fats

uint8_t fats

Definition at line 6 of file fsck.fat.h.

◆ flags

Definition at line 18 of file fsck.fat.h.

◆ fs_type

uint8_t fs_type[8]

Definition at line 31 of file fsck.fat.h.

◆ heads

uint16_t heads

Definition at line 12 of file fsck.fat.h.

◆ hidden

uint32_t hidden

Definition at line 13 of file fsck.fat.h.

◆ ignored

◆ info_sector

Definition at line 21 of file fsck.fat.h.

◆ interactive

int interactive
extern

Definition at line 63 of file main.c.

Referenced by interact(), main(), and WinMain().

◆ junk

◆ label

uint8_t label

Definition at line 30 of file fsck.fat.h.

◆ list

Definition at line 218 of file fsck.fat.h.

◆ media

uint8_t media

Definition at line 9 of file fsck.fat.h.

◆ mem_queue

void* mem_queue
extern

◆ n_files

unsigned n_files
extern

◆ reserved

uint16_t reserved

Definition at line 5 of file fsck.fat.h.

◆ reserved2

◆ reserved3

◆ root_cluster

uint32_t root_cluster

Definition at line 20 of file fsck.fat.h.

◆ rw

int rw

Definition at line 218 of file fsck.fat.h.

◆ secs_track

uint16_t secs_track

Definition at line 11 of file fsck.fat.h.

◆ sector_size

uint8_t sector_size[2]

Definition at line 3 of file fsck.fat.h.

◆ sectors

uint8_t sectors[2]

Definition at line 8 of file fsck.fat.h.

◆ serial

◆ system_id

uint8_t system_id[8]

Definition at line 1 of file fsck.fat.h.

◆ test

int test

Definition at line 218 of file fsck.fat.h.

◆ total_sect

uint32_t total_sect

Definition at line 14 of file fsck.fat.h.

◆ verbose

int verbose

Definition at line 218 of file fsck.fat.h.

◆ version

uint8_t version[2]

Definition at line 19 of file fsck.fat.h.

◆ write_immed

int write_immed

Definition at line 218 of file fsck.fat.h.