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: free() nut/crt/malloc.c
  malloc() nut/crt/malloc.c
  memset() nut/c/string/memset.c
  AllocFirstCluster(), PhatFileClose(), PhatFileOpen(), PhatFilePosRewind(), PhatFileWrite()

Global Function PhatDirDelEntry()

int PhatDirDelEntry ( NUTDEVICE* dev, const char* path, uint32_t 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
  free() nut/crt/malloc.c
  malloc() nut/crt/malloc.c
  PhatFileClose()
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, uint32_t attmsk, PHATFIND* srch )
Prototyped in: nut/include/fs/phatdir.h
Calls: PhatDirEntryRead() nut/fs/phatdir.c
  free() nut/crt/malloc.c
  malloc() nut/crt/malloc.c
  PhatFilePosRewind(), 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
  free() nut/crt/malloc.c
  malloc() nut/crt/malloc.c
  memset() nut/c/string/memset.c
  mktime() nut/crt/mktime.c
  PhatFileClose()

Global Function PhatDirEntryUpdate()

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

Global Function PhatDirOpen()

NUTFILE* PhatDirOpen ( NUTDEVICE* dev, const char* dpath )
Prototyped in: nut/include/fs/phatdir.h
Calls: PhatDirEntryFind() nut/fs/phatdir.c
  free() nut/crt/malloc.c
  malloc() nut/crt/malloc.c
  memset() nut/c/string/memset.c
  PhatClusterSector(), PhatFilePosRewind()
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
  free() nut/crt/malloc.c
  GetParentPath()
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() nut/crt/malloc.c
  malloc() nut/crt/malloc.c
  memset() nut/c/string/memset.c
  strcpy() nut/c/string/strcpy.c
  strlen() nut/c/string/strlen.c

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
  free() nut/crt/malloc.c
  malloc() nut/crt/malloc.c
  memcmp() nut/c/string/memcmp.c
  PhatFileClose(), PhatFileOpen(), PhatFileRead()

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
  free() nut/crt/malloc.c
  malloc() nut/crt/malloc.c
  PhatFileClose()

Local Function GenShortName()

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

Local Function GenShortNameChecksum()

static inline uint8_t 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
  free() nut/crt/malloc.c
  malloc() nut/crt/malloc.c
  memset() nut/c/string/memset.c
  strcmp() nut/c/string/strcmp.c
  strlen() nut/c/string/strlen.c
  IsFixedRootDir(), MakePhatName(), MakeVisibleName(), PhatFilePosRewind(), PhatFilePosSet(), PhatFileRead(), PhatFileWrite()
Called by: PhatDirEntryCreate() nut/fs/phatdir.c
  PhatDirRenameEntry() nut/fs/phatdir.c

Local Function PhatDirEntryRead()

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

Local Function PhatDirEntryRelease()

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