Nut/OS  5.0.5
API Reference
_PHATDIRENT Struct Reference

Structure of a directory entry. More...

#include <phatdir.h>

Collaboration diagram for _PHATDIRENT:
[legend]

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.

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.


Field Documentation

File name, padded with blanks.

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

Reserved byte, possibly used by NT.

Referenced by PhatDbgDirEntry(), and PhatFileOpen().

Hundredth of seconds of file creation time.

Referenced by PhatDbgDirEntry(), and PhatFileOpen().

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

Size of the file in bytes.

For directories, this is always zero.

Referenced by PhatDbgDirEntry(), PhatDirEntryStatus(), PhatFileOpen(), PhatFilePosSet(), PhatFileRead(), and PhatFileWrite().


The documentation for this struct was generated from the following file: