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)  

file.h File Reference
#include "msdos_fs.h"
Include dependency graph for file.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _fptr


typedef struct _fptr FDSC


enum  FD_TYPE { fdt_none , fdt_drop , fdt_undelete }


char * file_name (unsigned char *fixed)
int file_cvt (unsigned char *name, unsigned char *fixed)
void file_add (char *path, FD_TYPE type)
FDSC ** file_cd (FDSC **curr, char *fixed)
FD_TYPE file_type (FDSC **curr, char *fixed)
void file_modify (FDSC **curr, char *fixed)
void file_unused (void)



Typedef Documentation


typedef struct _fptr FDSC

Enumeration Type Documentation


enum FD_TYPE

Definition at line 28 of file file.h.

Function Documentation

◆ file_add()

void file_add ( char *  path,
FD_TYPE  type 

Definition at line 156 of file file.c.

References alloc(), die(), fdt_none, fdt_undelete, file_cvt(), _fptr::first, fp_root, MSDOS_NAME, _fptr::name, _fptr::next, and _fptr::type.

Referenced by main().

◆ file_cd()

FDSC** file_cd ( FDSC **  curr,
char *  fixed 

Definition at line 200 of file file.c.

References _fptr::first, MSDOS_NAME, and _fptr::next.

Referenced by subdirs().

◆ file_cvt()

int file_cvt ( unsigned char *  name,
unsigned char *  fixed 

Definition at line 95 of file file.c.

Referenced by file_add(), and rename_file().

◆ file_modify()

void file_modify ( FDSC **  curr,
char *  fixed 

Definition at line 244 of file file.c.

References DELETED_FLAG, die(), fdt_drop, fdt_undelete, file_find(), file_name(), and _fptr::next.

Referenced by add_file().

◆ file_name()

char* file_name ( unsigned char *  fixed)

Construct the "pretty-printed" representation of the name in a short directory entry.

[in]fixedPointer to name[0] of a DIR_ENT
Pointer to static string containing pretty "8.3" equivalent of the name in the directory entry.

Definition at line 63 of file file.c.

References put_char().

Referenced by add_file(), check_dir(), file_modify(), lfn_get(), path_name(), and report_unused().

◆ file_type()

FD_TYPE file_type ( FDSC **  curr,
char *  fixed 

Definition at line 235 of file file.c.

References fdt_none, file_find(), and _fptr::type.

Referenced by add_file().

◆ file_unused()

void file_unused ( void  )

Definition at line 283 of file file.c.

References fp_root, and report_unused().

Referenced by main().

Variable Documentation

◆ fp_root

FDSC* fp_root

Definition at line 39 of file file.c.

Referenced by file_add(), file_unused(), and scan_root().