ReactOS  0.4.13-dev-235-g7373cb3
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 52 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

Referenced by bad_name(), dump_boot(), and read_boot().

◆ backup_boot

uint16_t backup_boot

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

Referenced by check_backup_boot().

◆ cluster_size

uint8_t cluster_size

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

◆ dir_entries

uint8_t dir_entries[2]

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

◆ drive_number

uint8_t drive_number

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

◆ extended_sig

uint8_t extended_sig

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

◆ fat32_length

uint32_t fat32_length

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

◆ fat_length

uint16_t fat_length

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

◆ fats

uint8_t fats

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

◆ flags

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

◆ fs_type

uint8_t fs_type[8]

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

◆ heads

uint16_t heads

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

◆ hidden

uint32_t hidden

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

◆ ignored

◆ info_sector

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

◆ interactive

int interactive

Definition at line 63 of file main.c.

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

◆ junk

◆ label

◆ list

Definition at line 298 of file glfuncs.h.

Referenced by testQuery().

◆ media

uint8_t media

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

◆ mem_queue

void* mem_queue

Referenced by add_file(), and cnv_unicode().

◆ n_files

unsigned n_files

◆ reserved

uint16_t reserved

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

◆ reserved2

◆ reserved3

◆ root_cluster

uint32_t root_cluster

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

◆ rw

◆ secs_track

uint16_t secs_track

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

◆ sector_size

uint8_t sector_size[2]

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

◆ sectors

uint8_t sectors[2]

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

◆ serial

◆ system_id

uint8_t system_id[8]

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

◆ test

int test

Definition at line 14 of file enumwnd.c.

Referenced by MainWndProc().

◆ total_sect

uint32_t total_sect

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

◆ verbose

int verbose

Definition at line 60 of file main.c.

◆ version

uint8_t version[2]

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

◆ write_immed

int write_immed

Referenced by fs_write().