ReactOS 0.4.15-dev-7961-gdcf9eb0
msdos_fs.h File Reference
#include <stdint.h>
Include dependency graph for msdos_fs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  msdos_dir_entry
 

Macros

#define SECTOR_SIZE   512 /* sector size (bytes) */
 
#define MSDOS_DPS   (SECTOR_SIZE / sizeof(struct msdos_dir_entry))
 
#define MSDOS_DPS_BITS   4 /* log2(MSDOS_DPS) */
 
#define MSDOS_DIR_BITS   5 /* log2(sizeof(struct msdos_dir_entry)) */
 
#define ATTR_NONE   0 /* no attribute bits */
 
#define ATTR_RO   1 /* read-only */
 
#define ATTR_HIDDEN   2 /* hidden */
 
#define ATTR_SYS   4 /* system */
 
#define ATTR_VOLUME   8 /* volume label */
 
#define ATTR_DIR   16 /* directory */
 
#define ATTR_ARCH   32 /* archived */
 
#define ATTR_UNUSED   (ATTR_VOLUME | ATTR_ARCH | ATTR_SYS | ATTR_HIDDEN)
 
#define DELETED_FLAG   0xe5 /* marks file as deleted when in name[0] */
 
#define IS_FREE(n)   (!*(n) || *(n) == DELETED_FLAG)
 
#define MSDOS_NAME   11 /* maximum name length */
 
#define MSDOS_DOT   ". " /* ".", padded to MSDOS_NAME chars */
 
#define MSDOS_DOTDOT   ".. " /* "..", padded to MSDOS_NAME chars */
 

Functions

struct msdos_dir_entry __attribute__ ((packed))
 

Variables

uint8_t name [MSDOS_NAME]
 
uint8_t attr
 
uint8_t lcase
 
uint8_t ctime_cs
 
uint16_t ctime
 
uint16_t cdate
 
uint16_t adate
 
uint16_t starthi
 
uint16_t time
 
uint16_t date
 
uint16_t start
 
uint32_t size
 

Macro Definition Documentation

◆ ATTR_ARCH

#define ATTR_ARCH   32 /* archived */

Definition at line 38 of file msdos_fs.h.

◆ ATTR_DIR

#define ATTR_DIR   16 /* directory */

Definition at line 37 of file msdos_fs.h.

◆ ATTR_HIDDEN

#define ATTR_HIDDEN   2 /* hidden */

Definition at line 34 of file msdos_fs.h.

◆ ATTR_NONE

#define ATTR_NONE   0 /* no attribute bits */

Definition at line 32 of file msdos_fs.h.

◆ ATTR_RO

#define ATTR_RO   1 /* read-only */

Definition at line 33 of file msdos_fs.h.

◆ ATTR_SYS

#define ATTR_SYS   4 /* system */

Definition at line 35 of file msdos_fs.h.

◆ ATTR_UNUSED

#define ATTR_UNUSED   (ATTR_VOLUME | ATTR_ARCH | ATTR_SYS | ATTR_HIDDEN)

Definition at line 41 of file msdos_fs.h.

◆ ATTR_VOLUME

#define ATTR_VOLUME   8 /* volume label */

Definition at line 36 of file msdos_fs.h.

◆ DELETED_FLAG

#define DELETED_FLAG   0xe5 /* marks file as deleted when in name[0] */

Definition at line 43 of file msdos_fs.h.

◆ IS_FREE

#define IS_FREE (   n)    (!*(n) || *(n) == DELETED_FLAG)

Definition at line 44 of file msdos_fs.h.

◆ MSDOS_DIR_BITS

#define MSDOS_DIR_BITS   5 /* log2(sizeof(struct msdos_dir_entry)) */

Definition at line 30 of file msdos_fs.h.

◆ MSDOS_DOT

#define MSDOS_DOT   ". " /* ".", padded to MSDOS_NAME chars */

Definition at line 47 of file msdos_fs.h.

◆ MSDOS_DOTDOT

#define MSDOS_DOTDOT   ".. " /* "..", padded to MSDOS_NAME chars */

Definition at line 48 of file msdos_fs.h.

◆ MSDOS_DPS

Definition at line 28 of file msdos_fs.h.

◆ MSDOS_DPS_BITS

#define MSDOS_DPS_BITS   4 /* log2(MSDOS_DPS) */

Definition at line 29 of file msdos_fs.h.

◆ MSDOS_NAME

#define MSDOS_NAME   11 /* maximum name length */

Definition at line 46 of file msdos_fs.h.

◆ SECTOR_SIZE

#define SECTOR_SIZE   512 /* sector size (bytes) */

Definition at line 27 of file msdos_fs.h.

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

◆ adate

uint16_t adate

Definition at line 6 of file msdos_fs.h.

◆ attr

Definition at line 1 of file msdos_fs.h.

◆ cdate

uint16_t cdate

Definition at line 5 of file msdos_fs.h.

◆ ctime

uint16_t ctime

Definition at line 4 of file msdos_fs.h.

◆ ctime_cs

uint8_t ctime_cs

Definition at line 3 of file msdos_fs.h.

◆ date

uint16_t date

Definition at line 8 of file msdos_fs.h.

◆ lcase

uint8_t lcase

Definition at line 2 of file msdos_fs.h.

◆ name

Definition at line 0 of file msdos_fs.h.

◆ size

Definition at line 9 of file msdos_fs.h.

◆ start

Definition at line 8 of file msdos_fs.h.

◆ starthi

uint16_t starthi

Definition at line 7 of file msdos_fs.h.

◆ time

uint16_t time

Definition at line 8 of file msdos_fs.h.