* * $Log: phatdir.h,v $ * Revision 1.3 2006/10/08 16:42:56 haraldkipp * Not optimal, but simple and reliable exclusive access implemented. * Fixes bug #1486539. Furthermore, bug #1567790, which had been rejected, * had been reported correctly and is now fixed. * * Revision 1.2 2006/06/18 16:41:55 haraldkipp * Support for long filenames (VFAT) added. * New function PhatDirReleaseChain() simplifies code. * Static function PhatDirOpenParentPath() replaced by global * PhatDirOpenParent(). * Added const attribute to path parameter of PhatDirOpen(). * * Revision 1.1 2006/01/05 16:32:52 haraldkipp * First check-in. * * *
Defines | |
#define | PHAT_MAX_NAMELEN 255 |
Maximum length of a base file name. | |
#define | PHAT_REM_DIRENT 0xE5 |
#define | PHAT_REM_NAMENT 0x05 |
Typedefs | |
typedef _PHATDIRENT | PHATDIRENT |
Structure of a directory entry. | |
typedef _PHATXDIRENT | PHATXDIRENT |
Structure of an extended directory entry. | |
typedef _PHATFIND | PHATFIND |
Functions | |
int | PhatDirEntryCreate (NUTFILE *ndp, CONST char *name, int acc, PHATDIRENT *dirent) |
Create a new directory entry. | |
int | PhatDirEntryUpdate (NUTFILE *ndp) |
Update directory entry of an opened file or directory. | |
int | PhatDirReleaseChain (NUTDEVICE *dev, PHATDIRENT *dent) |
Release a cluster chain of a specified directory entry. | |
int | PhatDirDelEntry (NUTDEVICE *dev, CONST char *path, u_long flags) |
Remove a directory entry. | |
int | PhatDirRenameEntry (NUTDEVICE *dev, CONST char *old_path, CONST char *new_path) |
Rename file. | |
NUTFILE * | PhatDirOpen (NUTDEVICE *dev, CONST char *dpath) |
Open a directory. | |
NUTFILE * | PhatDirOpenParent (NUTDEVICE *dev, CONST char *path, CONST char **basename) |
Open parent directory of a given path. | |
int | PhatDirEntryFind (NUTFILE *nfp, CONST char *spec, u_long flags, PHATFIND *srch) |
Find a directory entry with a specified name. | |
int | PhatDirRead (DIR *dir) |
Read the next directory entry. | |
int | PhatDirCreate (NUTDEVICE *dev, char *path) |
Create a new subdirectory. | |
int | PhatDirRemove (NUTDEVICE *dev, char *path) |
Remove a specified subdirectory. | |
int | PhatDirEntryStatus (NUTDEVICE *dev, CONST char *path, struct stat *s) |
Retrieve status of a specified file. |