mirror of
https://github.com/FDOS/kernel.git
synced 2025-07-31 01:34:19 +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 {
|
typedef struct {
|
||||||
UBYTE dm_drive;
|
UBYTE dm_drive;
|
||||||
BYTE dm_name_pat[FNAME_SIZE + FEXT_SIZE];
|
BYTE dm_name_pat[FNAME_SIZE + FEXT_SIZE];
|
||||||
BYTE dm_attr_srch;
|
UBYTE dm_attr_srch;
|
||||||
UWORD dm_entry;
|
UWORD dm_entry;
|
||||||
#ifdef WITHFAT32
|
CLUSTER dm_dircluster;
|
||||||
ULONG dm_dircluster;
|
#ifndef WITHFAT32
|
||||||
#else
|
|
||||||
UWORD dm_dircluster;
|
|
||||||
UWORD reserved;
|
UWORD reserved;
|
||||||
#endif
|
#endif
|
||||||
|
UWORD reserved2;
|
||||||
|
|
||||||
struct {
|
UBYTE dm_attr_fnd; /* found file attribute */
|
||||||
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 */
|
|
||||||
time dm_time; /* file time */
|
time dm_time; /* file time */
|
||||||
date dm_date; /* file date */
|
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 */
|
BYTE dm_name[FNAME_SIZE + FEXT_SIZE + 2]; /* file name */
|
||||||
} dmatch;
|
} dmatch;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user