dosfstools  4.2
About: dosfstools are utilities to create, check and label (MS-DOS) FAT filesystems.
  Fossies Dox: dosfstools-4.2.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

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.

Data Structures

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 */
 

Macro Definition Documentation

◆ ATTR_ARCH

#define ATTR_ARCH   32 /* archived */

Definition at line 36 of file msdos_fs.h.

◆ ATTR_DIR

#define ATTR_DIR   16 /* directory */

Definition at line 35 of file msdos_fs.h.

◆ ATTR_HIDDEN

#define ATTR_HIDDEN   2 /* hidden */

Definition at line 32 of file msdos_fs.h.

◆ ATTR_NONE

#define ATTR_NONE   0 /* no attribute bits */

Definition at line 30 of file msdos_fs.h.

◆ ATTR_RO

#define ATTR_RO   1 /* read-only */

Definition at line 31 of file msdos_fs.h.

◆ ATTR_SYS

#define ATTR_SYS   4 /* system */

Definition at line 33 of file msdos_fs.h.

◆ ATTR_UNUSED

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

Definition at line 39 of file msdos_fs.h.

◆ ATTR_VOLUME

#define ATTR_VOLUME   8 /* volume label */

Definition at line 34 of file msdos_fs.h.

◆ DELETED_FLAG

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

Definition at line 41 of file msdos_fs.h.

◆ IS_FREE

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

Definition at line 42 of file msdos_fs.h.

◆ MSDOS_DIR_BITS

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

Definition at line 28 of file msdos_fs.h.

◆ MSDOS_DOT

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

Definition at line 45 of file msdos_fs.h.

◆ MSDOS_DOTDOT

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

Definition at line 46 of file msdos_fs.h.

◆ MSDOS_DPS

#define MSDOS_DPS   (SECTOR_SIZE / sizeof(struct msdos_dir_entry))

Definition at line 26 of file msdos_fs.h.

◆ MSDOS_DPS_BITS

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

Definition at line 27 of file msdos_fs.h.

◆ MSDOS_NAME

#define MSDOS_NAME   11 /* maximum name length */

Definition at line 44 of file msdos_fs.h.

◆ SECTOR_SIZE

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

Definition at line 25 of file msdos_fs.h.