mtoolsDirent.h File Reference

#include "sysincludes.h"
#include "vfat.h"
#include "stream.h"

Include dependency graph for mtoolsDirent.h:

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

Go to the source code of this file.

Data Structures

struct  direntry_t

Functions

int vfat_lookup (direntry_t *entry, const char *filename, int length, int flags, char *shortname, char *longname)
directorydir_read (direntry_t *entry, int *error)
void initializeDirentry (direntry_t *entry, struct Stream_t *Dir)
int isNotFound (direntry_t *entry)
direntry_tgetParent (direntry_t *entry)
void dir_write (direntry_t *entry)
void low_level_dir_write (direntry_t *entry)
int fatFreeWithDirentry (direntry_t *entry)
int labelit (char *dosname, char *longname, void *arg0, direntry_t *entry)
int isSubdirOf (Stream_t *inside, Stream_t *outside)
char * getPwd (direntry_t *entry)
void fprintPwd (FILE *f, direntry_t *entry, int escape)
int write_vfat (Stream_t *, char *, char *, int, direntry_t *)


Function Documentation

struct directory* dir_read direntry_t entry,
int *  error
 

Definition at line 13 of file directory.c.

References entry::dir, entry, force_read(), MDIR_SIZE, n, and NULL.

Referenced by clear_vses(), del_entry(), get_slots(), and vfat_lookup_loop_common().

void dir_write direntry_t entry  ) 
 

Definition at line 275 of file vfat.c.

References addFreeEntry(), allocDirCache(), dirCacheEntry_t::beginSlot, cache, DELMARK, entry::dir, dirCacheEntry_t::dir, dirCacheEntry_t::endSlot, entry, exit(), fprintf(), low_level_dir_write(), entry::name, and stderr.

Referenced by attrib_file(), del_entry(), dos_doctorfat(), flush_file(), get_slots(), makeit(), mlabel(), and renameit().

int fatFreeWithDirentry direntry_t entry  ) 
 

Definition at line 51 of file fat_free.c.

References entry::dir, entry, and fatFreeWithDir().

Referenced by del_entry(), and get_slots().

void fprintPwd FILE f,
direntry_t entry,
int  escape
 

Definition at line 87 of file direntry.c.

References _fprintPwd(), entry, f, and putc.

Referenced by concise_view_attrib(), del_entry(), del_file(), dir_mdu(), dos_copydir(), dos_showfat(), file_mdu(), mcd_callback(), mpPrintFilename(), rename_directory(), replay_attrib(), unix_copydir(), and view_attrib().

direntry_t* getParent direntry_t entry  ) 
 

Definition at line 27 of file direntry.c.

References entry, and getDirentry().

Referenced by recurs_dos_loop().

char* getPwd direntry_t entry  ) 
 

Definition at line 96 of file direntry.c.

References entry, getPathLen(), malloc(), size, and sprintPwd().

Referenced by enterDirectory().

void initializeDirentry direntry_t entry,
struct Stream_t Dir
 

Definition at line 7 of file direntry.c.

References entry.

Referenced by _dos_loop(), del_entry(), del_file(), lookupForInsert(), makeit(), mlabel(), print_volume_label(), recurs_dos_loop(), renameit(), and subDir().

int isNotFound direntry_t entry  ) 
 

Definition at line 16 of file direntry.c.

References entry.

Referenced by mlabel().

int isSubdirOf Stream_t inside,
Stream_t outside
 

Definition at line 109 of file direntry.c.

References direntry_t::Dir, getDirentry(), inside(), and outside().

Referenced by dos_copydir(), and rename_directory().

int labelit char *  dosname,
char *  longname,
void *  arg0,
direntry_t entry
 

Definition at line 46 of file mlabel.c.

References entry::dir, entry, getTimeNow(), mk_entry(), now, and time_t.

Referenced by format_root(), and mlabel().

void low_level_dir_write direntry_t entry  ) 
 

Definition at line 61 of file directory.c.

References entry::dir, entry, force_write(), and MDIR_SIZE.

Referenced by clear_vses(), dir_write(), and write_vfat().

int vfat_lookup direntry_t entry,
const char *  filename,
int  length,
int  flags,
char *  shortname,
char *  longname
 

Definition at line 550 of file vfat.c.

References allocDirCache(), direntry_t::beginSlot, dirCacheEntry_t::beginSlot, cache, checkNameForMatch(), direntry_t::Dir, direntry_t::endSlot, dirCacheEntry_t::endSlot, direntry_t::entry, exit(), fprintf(), dirCacheEntry_t::longName, RES_MATCH, RES_NOMATCH, result, dirCacheEntry_t::shortName, stderr, strcpy(), strlen(), and vfat_lookup_loop_for_read().

Referenced by _dos_loop(), del_file(), mlabel(), print_volume_label(), recurs_dos_loop(), renameit(), and subDir().

int write_vfat Stream_t ,
char *  ,
char *  ,
int  ,
direntry_t
 

Definition at line 216 of file vfat.c.

References vfat_subentry::attribute, c, cache, entry::dir, entry, vfat_subentry::hash1, vfat_subentry::id, low_level_dir_write(), printf, vfat_subentry::sector_l, vfat_subentry::sector_u, strlen(), vfat_subentry::sum, sum_shortname(), unicode_write(), VSE1SIZE, VSE2SIZE, VSE3SIZE, VSE_LAST, and VSE_NAMELEN.

Referenced by write_slots().


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