vfat.h File Reference

#include "msdos.h"
#include "stream.h"
#include "mtoolsDirent.h"

Include dependency graph for vfat.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  unicode_char
struct  vfat_subentry
struct  vfat_state
struct  scan_state

Defines

#define VFAT_SUPPORT
#define MAX_VFAT_SUBENTRIES   20
#define VSE_NAMELEN   13
#define VSE1SIZE   5
#define VSE2SIZE   6
#define VSE3SIZE   2
#define VBUFSIZE   ((MAX_VFAT_SUBENTRIES*VSE_NAMELEN) + 1)
#define MAX_VNAMELEN   (255)
#define VSE_PRESENT   0x01
#define VSE_LAST   0x40
#define VSE_MASK   0x1f
#define DO_OPEN   1
#define ACCEPT_LABEL   0x08
#define ACCEPT_DIR   0x10
#define ACCEPT_PLAIN   0x20
#define MATCH_ANY   0x40
#define NO_MSG   0x80
#define NO_DOTS   0x100
#define DO_OPEN_DIRS   0x400
#define OPEN_PARENT   0x1000
#define NO_UNIX   0x2000

Functions

void clear_vfat (struct vfat_state *)
int unicode_write (char *, struct unicode_char *, int num, int *end)
int clear_vses (Stream_t *, int, size_t)
void autorename_short (char *, int)
void autorename_long (char *, int)
int lookupForInsert (Stream_t *Dir, char *dosname, char *longname, struct scan_state *ssp, int ignore_entry, int source_entry, int pessimisticShortRename)


Define Documentation

#define ACCEPT_DIR   0x10
 

Definition at line 90 of file vfat.h.

Referenced by checkNameForMatch(), del_file(), dos_target_lookup(), list_recurs_directory(), mcd(), mcopy(), mdel(), mdir(), mdoctorfat(), mdu(), mshowfat(), recurs_dos_loop(), renameit(), subDir(), and unix_loop().

#define ACCEPT_LABEL   0x08
 

Definition at line 89 of file vfat.h.

Referenced by checkNameForMatch(), mlabel(), and print_volume_label().

#define ACCEPT_PLAIN   0x20
 

Definition at line 91 of file vfat.h.

Referenced by checkNameForMatch(), del_file(), list_recurs_directory(), mcopy(), mdel(), mdir(), mdoctorfat(), mdu(), and mshowfat().

#define DO_OPEN   1
 

Definition at line 88 of file vfat.h.

Referenced by _dos_loop(), dos_target_lookup(), handle_leaf(), list_recurs_directory(), mcopy(), mdoctorfat(), mshowfat(), recurs_dos_loop(), and unix_loop().

#define DO_OPEN_DIRS   0x400
 

Definition at line 95 of file vfat.h.

Referenced by _dos_loop(), handle_leaf(), mdir(), mdu(), and mmd().

#define MATCH_ANY   0x40
 

Definition at line 92 of file vfat.h.

Referenced by checkNameForMatch(), mlabel(), and print_volume_label().

#define MAX_VFAT_SUBENTRIES   20
 

Definition at line 18 of file vfat.h.

Referenced by parse_vses().

#define MAX_VNAMELEN   (255)
 

Definition at line 43 of file vfat.h.

#define NO_DOTS   0x100
 

Definition at line 94 of file vfat.h.

Referenced by checkForDot(), list_recurs_directory(), mcd(), mcopy(), mdel(), mdir(), mdu(), and recurs_dos_loop().

#define NO_MSG   0x80
 

Definition at line 93 of file vfat.h.

Referenced by checkNameForMatch(), list_recurs_directory(), and recurs_dos_loop().

#define NO_UNIX   0x2000
 

Definition at line 98 of file vfat.h.

Referenced by target_lookup().

#define OPEN_PARENT   0x1000
 

Definition at line 96 of file vfat.h.

Referenced by mmd(), and recurs_dos_loop().

#define VBUFSIZE   ((MAX_VFAT_SUBENTRIES*VSE_NAMELEN) + 1)
 

Definition at line 40 of file vfat.h.

Referenced by _mwrite_one(), mformat(), mlabel(), mmove(), print_volume_label(), and unix_loop().

#define VFAT_SUPPORT
 

Definition at line 9 of file vfat.h.

#define VSE1SIZE   5
 

Definition at line 21 of file vfat.h.

Referenced by parse_vses(), and write_vfat().

#define VSE2SIZE   6
 

Definition at line 22 of file vfat.h.

Referenced by parse_vses(), and write_vfat().

#define VSE3SIZE   2
 

Definition at line 23 of file vfat.h.

Referenced by parse_vses(), and write_vfat().

#define VSE_LAST   0x40
 

Definition at line 46 of file vfat.h.

Referenced by parse_vses(), unicode_write(), and write_vfat().

#define VSE_MASK   0x1f
 

Definition at line 47 of file vfat.h.

Referenced by parse_vses().

#define VSE_NAMELEN   13
 

Definition at line 19 of file vfat.h.

Referenced by check_vfat(), clear_scan(), parse_vses(), and write_vfat().

#define VSE_PRESENT   0x01
 

Definition at line 45 of file vfat.h.


Function Documentation

void autorename_long char *  ,
int 
 

Definition at line 93 of file vfat.c.

References autorename(), and long_illegals.

Referenced by process_namematch().

void autorename_short char *  ,
int 
 

Definition at line 88 of file vfat.c.

References autorename(), and short_illegals.

Referenced by dos_name(), and process_namematch().

void clear_vfat struct vfat_state  ) 
 

Definition at line 115 of file vfat.c.

References vfat_state::present, vfat_state::status, and vfat_state::subentries.

Referenced by parse_vses(), and vfat_lookup_loop_common().

int clear_vses Stream_t ,
int  ,
size_t 
 

Definition at line 183 of file vfat.c.

References addFreeEntry(), allocDirCache(), cache, DEBUG, DELMARK, dir_read(), entry, error, exit(), fprintf(), if(), low_level_dir_write(), directory::name, and stderr.

int lookupForInsert Stream_t Dir,
char *  dosname,
char *  longname,
struct scan_state ssp,
int  ignore_entry,
int  source_entry,
int  pessimisticShortRename
 

Definition at line 647 of file vfat.c.

References accountFreeSlots(), allocDirCache(), directory::attr, dirCacheEntry_t::beginSlot, cache, DCET_END, DCET_FREE, DCET_USED, dirCacheEntry_t::dir, dirCacheEntry_t::endSlot, entry, exit(), fprintf(), scan_state::got_slots, growDirCache(), initializeDirentry(), isHashed(), isRootDir(), dirCacheEntry_t::longName, scan_state::match_free, scan_state::max_entry, pos, scan_state::shortmatch, dirCacheEntry_t::shortName, stderr, strcasecmp, dirCacheEntry_t::type, unix_name(), and vfat_lookup_loop_for_insert().

Referenced by get_slots().

int unicode_write char *  ,
struct unicode_char ,
int  num,
int *  end
 

Definition at line 183 of file file_name.c.

References if(), j, out, and VSE_LAST.

Referenced by write_vfat().


Generated on Fri Apr 14 23:04:49 2006 for minix by  doxygen 1.4.6