Structure of a directory entry. More...
#include <phatdir.h>
Data Fields | |
uint8_t | dent_name [11] |
File name, padded with blanks. | |
uint8_t | dent_attr |
File attributes. | |
uint8_t | dent_rsvdnt |
Reserved byte, possibly used by NT. | |
uint8_t | dent_ctsecs |
Hundredth of seconds of file creation time. | |
uint16_t | dent_ctime |
File creation time. | |
uint16_t | dent_cdate |
File creation date. | |
uint16_t | dent_adate |
Last file access date. | |
uint16_t | dent_clusthi |
High bytes of first cluster of this file. | |
uint16_t | dent_mtime |
Last file modification time. | |
uint16_t | dent_mdate |
Last file modification date. | |
uint16_t | dent_clust |
First cluster used. | |
uint32_t | dent_fsize |
Size of the file in bytes. |
Structure of a directory entry.
Once created, this structure will never change if it points to another directory. Except if the entry is removed.
File name, padded with blanks.
Definition at line 91 of file phatdir.h.
Referenced by PhatDbgDirEntry(), PhatDirCreate(), PhatDirRemove(), and PhatFileOpen().
File attributes.
See PHAT_FATTR_ flags.
Definition at line 96 of file phatdir.h.
Referenced by PhatDbgDirEntry(), PhatDirEntryCreate(), PhatDirEntryFind(), PhatDirEntryStatus(), PhatDirOpen(), PhatDirRead(), PhatDirReleaseChain(), PhatDirRemove(), PhatFileOpen(), PhatFilePosSet(), PhatFileRead(), and PhatFileWrite().
Reserved byte, possibly used by NT.
Definition at line 98 of file phatdir.h.
Referenced by PhatDbgDirEntry(), and PhatFileOpen().
Hundredth of seconds of file creation time.
Definition at line 100 of file phatdir.h.
Referenced by PhatDbgDirEntry(), and PhatFileOpen().
File creation time.
Definition at line 102 of file phatdir.h.
Referenced by PhatDbgDirEntry(), PhatDirEntryCreate(), and PhatFileOpen().
File creation date.
Definition at line 104 of file phatdir.h.
Referenced by PhatDbgDirEntry(), PhatDirEntryCreate(), and PhatFileOpen().
Last file access date.
Definition at line 106 of file phatdir.h.
Referenced by PhatDbgDirEntry(), PhatDirEntryCreate(), and PhatFileWrite().
High bytes of first cluster of this file.
If used with the double dot entry, dent_clusthi and dent_clust must be zero if the entry points to the root directory.
The same is true when pointing to a normal file with zero length.
Definition at line 115 of file phatdir.h.
Referenced by PhatDbgDirEntry(), PhatDirCreate(), PhatDirOpen(), PhatDirReleaseChain(), PhatFileOpen(), and PhatFilePosRewind().
Last file modification time.
Definition at line 117 of file phatdir.h.
Referenced by PhatDbgDirEntry(), PhatDirEntryCreate(), PhatDirEntryStatus(), and PhatFileWrite().
Last file modification date.
Definition at line 119 of file phatdir.h.
Referenced by PhatDbgDirEntry(), PhatDirEntryCreate(), PhatDirEntryStatus(), and PhatFileWrite().
First cluster used.
This is zero for empty files.
Definition at line 124 of file phatdir.h.
Referenced by PhatDbgDirEntry(), PhatDirCreate(), PhatDirOpen(), PhatDirReleaseChain(), PhatFileOpen(), and PhatFilePosRewind().
Size of the file in bytes.
For directories, this is always zero.
Definition at line 129 of file phatdir.h.
Referenced by PhatDbgDirEntry(), PhatDirEntryStatus(), PhatFileOpen(), PhatFilePosSet(), PhatFileRead(), and PhatFileWrite().