HPGCC3 Documentation 3.0 R003

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 140 of file kos.h.


Field Documentation

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 170 of file kos.h.

Definition at line 144 of file kos.h.

Extended attribute.

Definition at line 171 of file kos.h.

The full filename, including the "." extension.

Definition at line 147 of file kos.h.

Definition at line 145 of file kos.h.

Definition at line 143 of file kos.h.

Exact size in bytes.

Definition at line 172 of file kos.h.


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