FILE_INFO Struct Reference

The KOS File info structure. More...

#include <kos.h>


Data Fields

KDATETIME last_modifier
KDATETIME create_date
KDATE last_access_date
BYTE file_name [13]
 The full filename, including the "." extension.
U8 attribute
 Attributes.
U16 ext_attr
 Extended attribute.
U32 size
 Exact size in bytes.


Detailed Description

The KOS File info structure.

Definition at line 161 of file kos.h.


Field Documentation

KDATETIME FILE_INFO::last_modifier

Definition at line 164 of file kos.h.

KDATETIME FILE_INFO::create_date

Definition at line 165 of file kos.h.

KDATE FILE_INFO::last_access_date

Definition at line 166 of file kos.h.

BYTE FILE_INFO::file_name[13]

The full filename, including the "." extension.

Definition at line 168 of file kos.h.

U8 FILE_INFO::attribute

Attributes.

from: http://alumnus.caltech.edu/~pje/dosfiles.html
The bits in the attribute byte determine the type of entry as follows (bit 7 is the most significant bit):
bit meaning if bit = 1
--- ---------------------------------------
7 unused
6 unused
5 file has been changed since last backup (=archive file)
4 entry represents a subdirectory
3 entry represents a volume label
2 system file
1 hidden file
0 read-only

If the entry represents a subdirectory, bit 4 is set and all other bits are unused. If the entry represents a volume label, bit 3 is set and other bits are unused.

Since DOS file names are case-insensitive, the file name and extension contain no lower-case (small) letters. They are always converted to the corresponding capital letters before writing them to the disk. What DOS will do if it finds small letters in a file name or extension in a directory entry is undefined.

Definition at line 191 of file kos.h.

U16 FILE_INFO::ext_attr

Extended attribute.

Definition at line 192 of file kos.h.

U32 FILE_INFO::size

Exact size in bytes.

Definition at line 193 of file kos.h.


The documentation for this struct was generated from the following file:
Generated on Sat Feb 17 00:05:26 2007 for HP-GCCLibrary by  doxygen 1.5.0