PHATDIRENT Struct Reference
[Directory Support]


Detailed Description

Structure of a directory entry.

Once created, this structure will never change if it points to another directory. Except if the entry is removed.

Definition at line 89 of file 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.

Field Documentation

uint8_t PHATDIRENT::dent_name[11]

File name, padded with blanks.

Definition at line 91 of file phatdir.h.

Referenced by PhatDbgDirEntry(), PhatDirCreate(), PhatDirRemove(), and PhatFileOpen().

uint8_t PHATDIRENT::dent_attr

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().

uint8_t PHATDIRENT::dent_rsvdnt

Reserved byte, possibly used by NT.

Definition at line 98 of file phatdir.h.

Referenced by PhatDbgDirEntry(), and PhatFileOpen().

uint8_t PHATDIRENT::dent_ctsecs

Hundredth of seconds of file creation time.

Definition at line 100 of file phatdir.h.

Referenced by PhatDbgDirEntry(), and PhatFileOpen().

uint16_t PHATDIRENT::dent_ctime

File creation time.

Definition at line 102 of file phatdir.h.

Referenced by PhatDbgDirEntry(), PhatDirEntryCreate(), and PhatFileOpen().

uint16_t PHATDIRENT::dent_cdate

File creation date.

Definition at line 104 of file phatdir.h.

Referenced by PhatDbgDirEntry(), PhatDirEntryCreate(), and PhatFileOpen().

uint16_t PHATDIRENT::dent_adate

Last file access date.

Definition at line 106 of file phatdir.h.

Referenced by PhatDbgDirEntry(), PhatDirEntryCreate(), and PhatFileWrite().

uint16_t PHATDIRENT::dent_clusthi

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().

uint16_t PHATDIRENT::dent_mtime

Last file modification time.

Definition at line 117 of file phatdir.h.

Referenced by PhatDbgDirEntry(), PhatDirEntryCreate(), PhatDirEntryStatus(), and PhatFileWrite().

uint16_t PHATDIRENT::dent_mdate

Last file modification date.

Definition at line 119 of file phatdir.h.

Referenced by PhatDbgDirEntry(), PhatDirEntryCreate(), PhatDirEntryStatus(), and PhatFileWrite().

uint16_t PHATDIRENT::dent_clust

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().

uint32_t PHATDIRENT::dent_fsize

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().


The documentation for this struct was generated from the following file:
© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/