PHAT file system. More...
Go to the source code of this file.
Data Structures | |
struct | _PHATDIRENT |
Structure of a directory entry. More... | |
struct | _PHATXDIRENT |
Structure of an extended directory entry. More... | |
struct | _PHATFIND |
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 struct _PHATDIRENT | PHATDIRENT |
Structure of a directory entry. | |
typedef struct _PHATXDIRENT | PHATXDIRENT |
Structure of an extended directory entry. | |
typedef struct _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, uint32_t 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, uint32_t 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. |
PHAT file system.
* * $Log$ * Revision 1.4 2008/08/11 07:00:19 haraldkipp * BSD types replaced by stdint types (feature request #1282721). * * 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. * * *
Definition in file phatdir.h.