Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

_PHATDIRENT Struct Reference
[Directory Support]

#include <phatdir.h>


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.


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_attr
 

File attributes.

See PHAT_FATTR_ flags.

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.

u_short _PHATDIRENT::dent_clust
 

First cluster used.

This is zero for empty files.

u_long _PHATDIRENT::dent_fsize
 

Size of the file in bytes.

For directories, this is always zero.


© 2000-2006 by egnite Software GmbH - visit http://www.ethernut.de/