_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 86 of file phatdir.h.

Data Fields

u_char dent_name [11]
 File name, padded with blanks.
u_char dent_attr
 File attributes.
u_char dent_rsvdnt
 Reserved byte, possibly used by NT.
u_char dent_ctsecs
 Hundredth of seconds of file creation time.
u_short dent_ctime
 File creation time.
u_short dent_cdate
 File creation date.
u_short dent_adate
 Last file access date.
u_short dent_clusthi
 High bytes of first cluster of this file.
u_short dent_mtime
 Last file modification time.
u_short dent_mdate
 Last file modification date.
u_short dent_clust
 First cluster used.
u_long dent_fsize
 Size of the file in bytes.


Field Documentation

u_char _PHATDIRENT::dent_name[11]

File name, padded with blanks.

Definition at line 88 of file phatdir.h.

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

u_char _PHATDIRENT::dent_attr

File attributes.

See PHAT_FATTR_ flags.

Definition at line 93 of file phatdir.h.

Referenced by PhatDbgDirEntry(), PhatDirEntryCreate(), PhatDirEntryFind(), PhatDirEntryStatus(), PhatDirOpen(), PhatDirRead(), PhatDirReleaseChain(), PhatDirRemove(), PhatFileOpen(), PhatFilePosSet(), PhatFileRead(), and PhatFileWrite().

u_char _PHATDIRENT::dent_rsvdnt

Reserved byte, possibly used by NT.

Definition at line 95 of file phatdir.h.

Referenced by PhatDbgDirEntry(), and PhatFileOpen().

u_char _PHATDIRENT::dent_ctsecs

Hundredth of seconds of file creation time.

Definition at line 97 of file phatdir.h.

Referenced by PhatDbgDirEntry(), and PhatFileOpen().

u_short _PHATDIRENT::dent_ctime

File creation time.

Definition at line 99 of file phatdir.h.

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

u_short _PHATDIRENT::dent_cdate

File creation date.

Definition at line 101 of file phatdir.h.

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

u_short _PHATDIRENT::dent_adate

Last file access date.

Definition at line 103 of file phatdir.h.

Referenced by PhatDbgDirEntry(), and PhatDirEntryCreate().

u_short _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 112 of file phatdir.h.

Referenced by PhatDbgDirEntry(), PhatDirCreate(), PhatDirOpen(), PhatDirReleaseChain(), PhatFileOpen(), and PhatFilePosRewind().

u_short _PHATDIRENT::dent_mtime

Last file modification time.

Definition at line 114 of file phatdir.h.

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

u_short _PHATDIRENT::dent_mdate

Last file modification date.

Definition at line 116 of file phatdir.h.

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

u_short _PHATDIRENT::dent_clust

First cluster used.

This is zero for empty files.

Definition at line 121 of file phatdir.h.

Referenced by PhatDbgDirEntry(), PhatDirCreate(), PhatDirOpen(), PhatDirReleaseChain(), PhatFileOpen(), and PhatFilePosRewind().

u_long _PHATDIRENT::dent_fsize

Size of the file in bytes.

For directories, this is always zero.

Definition at line 126 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/