Collaboration diagram for Directory Support:
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 |
#define | PHAT_MAXDIRENT 65536 |
Maximum number of directory entries. | |
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 *nfp) |
Update directory entry of an opened file or directory. | |
int | PhatDirEntryFind (NUTFILE *ndp, CONST char *spec, u_long attmsk, PHATFIND *srch) |
Find a directory entry with a specified name. | |
NUTFILE * | PhatDirOpenParent (NUTDEVICE *dev, CONST char *path, CONST char **basename) |
Open parent directory of a given path. | |
int | PhatDirRenameEntry (NUTDEVICE *dev, CONST char *old_path, CONST char *new_path) |
Rename file. | |
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. | |
NUTFILE * | PhatDirOpen (NUTDEVICE *dev, CONST char *dpath) |
Open a directory. | |
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 *stp) |
Retrieve status of a specified file. |
|
Structure of a directory entry. Once created, this structure will never change if it points to another directory. Except if the entry is removed. |
|
Structure of an extended directory entry. Used for long filenames. |
|
Create a new directory entry.
|
|
Update directory entry of an opened file or directory.
|
|
Find a directory entry with a specified name.
|
|
Open parent directory of a given path.
|
|
Rename file.
|
|
Release a cluster chain of a specified directory entry.
|
|
Remove a directory entry. Allocated clusters are released.
|
|
Open a directory.
|
|
Read the next directory entry.
|
|
Create a new subdirectory. One cluster is allocated, initialized to zero and two directory entries are created, '.' and '..'.
|
|
Remove a specified subdirectory.
|
|
Retrieve status of a specified file.
|