File nut/fs/phatdir.c


Included Files


Preprocessor definitions

#define PHAT_MAXDIRENT 65536

Global Function PhatDirCreate()

int PhatDirCreate ( NUTDEVICE* dev, char* path )
Prototyped in: nut/include/fs/phatdir.h
Calls: AllocFirstCluster(), PhatFileClose(), PhatFileOpen(), PhatFilePosRewind(), PhatFileWrite(), free(), malloc(), memset()

Global Function PhatDirDelEntry()

int PhatDirDelEntry ( NUTDEVICE* dev, const char* path, u_long flags )
Prototyped in: nut/include/fs/phatdir.h
Calls: PhatDirEntryFind() nut/fs/phatdir.c
  PhatDirEntryRelease() nut/fs/phatdir.c
  PhatDirOpenParent() nut/fs/phatdir.c
  PhatDirReleaseChain() nut/fs/phatdir.c
  PhatFileClose(), free(), malloc()
Called by: PhatDirRemove() nut/fs/phatdir.c

Global Function PhatDirEntryCreate()

int PhatDirEntryCreate ( NUTFILE* ndp, const char* name, int acc, PHATDIRENT* dirent )
Prototyped in: nut/include/fs/phatdir.h
Calls: PhatDirEntryAlloc() nut/fs/phatdir.c
  GetDosTimeStamp()

Global Function PhatDirEntryFind()

int PhatDirEntryFind ( NUTFILE* ndp, const char* spec, u_long attmsk, PHATFIND* srch )
Prototyped in: nut/include/fs/phatdir.h
Calls: PhatDirEntryRead() nut/fs/phatdir.c
  PhatFilePosRewind(), free(), malloc(), strcasecmp()
Called by: PhatDirDelEntry() nut/fs/phatdir.c
  PhatDirEntryStatus() nut/fs/phatdir.c
  PhatDirOpen() nut/fs/phatdir.c
  PhatDirRenameEntry() nut/fs/phatdir.c

Global Function PhatDirEntryStatus()

int PhatDirEntryStatus ( NUTDEVICE* dev, const char* path, struct stat* stp )
Prototyped in: nut/include/fs/phatdir.h
Calls: PhatDirEntryFind() nut/fs/phatdir.c
  PhatDirOpenParent() nut/fs/phatdir.c
  PhatFileClose(), free(), malloc(), memset(), mktime()

Global Function PhatDirEntryUpdate()

int PhatDirEntryUpdate ( NUTFILE* nfp )
Prototyped in: nut/include/fs/phatdir.h
Calls: PhatSectorLoad(), memcpy()

Global Function PhatDirOpen()

NUTFILE* PhatDirOpen ( NUTDEVICE* dev, const char* dpath )
Prototyped in: nut/include/fs/phatdir.h
Calls: PhatDirEntryFind() nut/fs/phatdir.c
  PhatClusterSector(), PhatFilePosRewind(), free(), malloc(), memset()
Called by: PhatDirOpenParent() nut/fs/phatdir.c

Global Function PhatDirOpenParent()

NUTFILE* PhatDirOpenParent ( NUTDEVICE* dev, const char* path, const char** basename )
Prototyped in: nut/include/fs/phatdir.h
Calls: PhatDirOpen() nut/fs/phatdir.c
  GetParentPath(), free()
Called by: PhatDirDelEntry() nut/fs/phatdir.c
  PhatDirEntryStatus() nut/fs/phatdir.c
  PhatDirRenameEntry() nut/fs/phatdir.c

Global Function PhatDirRead()

int PhatDirRead ( DIR* dir )
Prototyped in: nut/include/fs/phatdir.h
Calls: PhatDirEntryRead() nut/fs/phatdir.c
  free(), malloc(), memset(), strcpy(), strlen()

Global Function PhatDirReleaseChain()

int PhatDirReleaseChain ( NUTDEVICE* dev, PHATDIRENT* dent )
Prototyped in: nut/include/fs/phatdir.h
Calls: Phat12ReleaseChain() nut/fs/phat12.c
  Phat16ReleaseChain() nut/fs/phat16.c
  Phat32ReleaseChain() nut/fs/phat32.c
Called by: PhatDirDelEntry() nut/fs/phatdir.c

Global Function PhatDirRemove()

int PhatDirRemove ( NUTDEVICE* dev, char* path )
Prototyped in: nut/include/fs/phatdir.h
Calls: PhatDirDelEntry() nut/fs/phatdir.c
  PhatFileClose(), PhatFileOpen(), PhatFileRead(), free(), malloc(), memcmp()

Global Function PhatDirRenameEntry()

int PhatDirRenameEntry ( NUTDEVICE* dev, const char* old_path, const char* new_path )
Prototyped in: nut/include/fs/phatdir.h
Calls: PhatDirEntryAlloc() nut/fs/phatdir.c
  PhatDirEntryFind() nut/fs/phatdir.c
  PhatDirEntryRelease() nut/fs/phatdir.c
  PhatDirOpenParent() nut/fs/phatdir.c
  PhatFileClose(), free(), malloc()

Local Function GenShortName()

static int GenShortName ( NUTFILE* ndp, const char* lfn, char* sfn )
Calls: PhatFilePosRewind(), PhatFileRead(), free(), malloc(), memcmp(), memset(), strrchr(), toupper()
Called by: PhatDirEntryAlloc() nut/fs/phatdir.c

Local Function GenShortNameChecksum()

static inline u_char GenShortNameChecksum ( char* sfn )
Called by: PhatDirEntryAlloc() nut/fs/phatdir.c

Local Function PhatDirEntryAlloc()

static int PhatDirEntryAlloc ( NUTFILE* ndp, const char* fname, PHATDIRENT* entry )
Calls: GenShortName() nut/fs/phatdir.c
  GenShortNameChecksum() nut/fs/phatdir.c
  IsFixedRootDir(), MakePhatName(), MakeVisibleName(), PhatFilePosRewind(), PhatFilePosSet(), PhatFileRead(), PhatFileWrite(), free(), malloc(), memset(), strcmp(), strlen()
Called by: PhatDirEntryCreate() nut/fs/phatdir.c
  PhatDirRenameEntry() nut/fs/phatdir.c

Local Function PhatDirEntryRead()

static int PhatDirEntryRead ( NUTFILE* ndp, PHATFIND* srch )
Calls: MakeVisibleName(), PhatFileRead(), free(), malloc(), strcpy()
Called by: PhatDirEntryFind() nut/fs/phatdir.c
  PhatDirRead() nut/fs/phatdir.c

Local Function PhatDirEntryRelease()

static int PhatDirEntryRelease ( NUTFILE* ndp, u_long pos, int lfncnt )
Calls: PhatFilePosSet(), PhatFileWrite()
Called by: PhatDirDelEntry() nut/fs/phatdir.c
  PhatDirRenameEntry() nut/fs/phatdir.c