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.
Referenced by PhatDbgDirEntry(), PhatDirCreate(), PhatDirRemove(), and PhatFileOpen().
File attributes.
See PHAT_FATTR_ flags.
Referenced by PhatDbgDirEntry(), PhatDirEntryCreate(), PhatDirEntryFind(), PhatDirEntryStatus(), PhatDirOpen(), PhatDirRead(), PhatDirReleaseChain(), PhatDirRemove(), PhatFileOpen(), PhatFilePosSet(), PhatFileRead(), and PhatFileWrite().
Reserved byte, possibly used by NT.
Referenced by PhatDbgDirEntry(), and PhatFileOpen().
Hundredth of seconds of file creation time.
Referenced by PhatDbgDirEntry(), and PhatFileOpen().
File creation time.
Referenced by PhatDbgDirEntry(), PhatDirEntryCreate(), and PhatFileOpen().
File creation date.
Referenced by PhatDbgDirEntry(), PhatDirEntryCreate(), and PhatFileOpen().
Last file access date.
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.
Referenced by PhatDbgDirEntry(), PhatDirCreate(), PhatDirOpen(), PhatDirReleaseChain(), PhatFileOpen(), and PhatFilePosRewind().
Last file modification time.
Referenced by PhatDbgDirEntry(), PhatDirEntryCreate(), PhatDirEntryStatus(), and PhatFileWrite().
Last file modification date.
Referenced by PhatDbgDirEntry(), PhatDirEntryCreate(), PhatDirEntryStatus(), and PhatFileWrite().
First cluster used.
This is zero for empty files.
Referenced by PhatDbgDirEntry(), PhatDirCreate(), PhatDirOpen(), PhatDirReleaseChain(), PhatFileOpen(), and PhatFilePosRewind().
Size of the file in bytes.
For directories, this is always zero.
Referenced by PhatDbgDirEntry(), PhatDirEntryStatus(), PhatFileOpen(), PhatFilePosSet(), PhatFileRead(), and PhatFileWrite().