mirror of
https://github.com/FDOS/kernel.git
synced 2025-04-08 17:15:17 +02:00
Cleanup dirmatch.h: make attributes and size unsigned, and make the unused
dm_flags field reserved. git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@1415 6ac86273-5f31-0410-b378-82cca8765d1b
This commit is contained in:
parent
b10d86bcaa
commit
1569b6b920
@ -38,32 +38,17 @@ static BYTE *dirmatch_hRcsId =
|
||||
typedef struct {
|
||||
UBYTE dm_drive;
|
||||
BYTE dm_name_pat[FNAME_SIZE + FEXT_SIZE];
|
||||
BYTE dm_attr_srch;
|
||||
UBYTE dm_attr_srch;
|
||||
UWORD dm_entry;
|
||||
#ifdef WITHFAT32
|
||||
ULONG dm_dircluster;
|
||||
#else
|
||||
UWORD dm_dircluster;
|
||||
CLUSTER dm_dircluster;
|
||||
#ifndef WITHFAT32
|
||||
UWORD reserved;
|
||||
#endif
|
||||
UWORD reserved2;
|
||||
|
||||
struct {
|
||||
BITS /* directory has been modified */
|
||||
f_dmod:1;
|
||||
BITS /* directory is the root */
|
||||
f_droot:1;
|
||||
BITS /* fnode is new and needs fill */
|
||||
f_dnew:1;
|
||||
BITS /* fnode is assigned to dir */
|
||||
f_ddir:1;
|
||||
BITS /* filler to avoid a bad bug (feature?) in */
|
||||
f_filler:12; /* TC 2.01 */
|
||||
} dm_flags; /* file flags */
|
||||
|
||||
BYTE dm_attr_fnd; /* found file attribute */
|
||||
UBYTE dm_attr_fnd; /* found file attribute */
|
||||
time dm_time; /* file time */
|
||||
date dm_date; /* file date */
|
||||
LONG dm_size; /* file size */
|
||||
ULONG dm_size; /* file size */
|
||||
BYTE dm_name[FNAME_SIZE + FEXT_SIZE + 2]; /* file name */
|
||||
} dmatch;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user