mirror of
https://github.com/aaru-dps/fstester.git
synced 2025-12-16 19:24:39 +00:00
Merge OS/2 attribute code.
This commit is contained in:
87
setter/src/os2/attr.h
Normal file
87
setter/src/os2/attr.h
Normal file
@@ -0,0 +1,87 @@
|
||||
#ifndef SETTER_SRC_OS2_ATTR_H_
|
||||
#define SETTER_SRC_OS2_ATTR_H_
|
||||
|
||||
#include <os2.h>
|
||||
|
||||
typedef struct
|
||||
{
|
||||
char filename[9];
|
||||
char contents[170];
|
||||
char description[63];
|
||||
USHORT attr;
|
||||
} os2_attr_tests_t;
|
||||
|
||||
#define KNOWN_OS2_ATTRS 16
|
||||
|
||||
static const os2_attr_tests_t os2_attrs[KNOWN_OS2_ATTRS] = {
|
||||
{"NONE", "This file has no attribute set.\n", "File with no attributes", FILE_NORMAL},
|
||||
{"ARCHIVE", "This file has the archived attribute set.\n", "File with archived attribute", FILE_ARCHIVED},
|
||||
{"SYSTEM", "This file has the system attribute set.\n", "File with system attribute", FILE_SYSTEM},
|
||||
{"HIDDEN", "This file has the hidden attribute set.\n", "File with hidden attribute", FILE_HIDDEN},
|
||||
{"READONLY", "This file has the read-only attribute set.\n", "File with read-only attribute", FILE_READONLY},
|
||||
{"HIDDREAD",
|
||||
"This file has the hidden attribute set.\n"
|
||||
"This file has the read-only attribute set.\n",
|
||||
"File with hidden, read-only attributes",
|
||||
FILE_HIDDEN | FILE_READONLY},
|
||||
{"SYSTREAD",
|
||||
"This file has the system attribute set.\n"
|
||||
"This file has the read-only attribute set.\n",
|
||||
"File with system, read-only attributes",
|
||||
FILE_SYSTEM | FILE_READONLY},
|
||||
{"SYSTHIDD",
|
||||
"This file has the system attribute set.\n"
|
||||
"This file has the hidden attribute set.\n",
|
||||
"File with system, hidden attributes",
|
||||
FILE_SYSTEM | FILE_HIDDEN},
|
||||
{"SYSRDYHD",
|
||||
"This file has the system attribute set.\n"
|
||||
"This file has the read-only attribute set.\n"
|
||||
"This file has the hidden attribute set.\n",
|
||||
"File with system, read-only, hidden attributes",
|
||||
FILE_SYSTEM | FILE_READONLY | FILE_HIDDEN},
|
||||
{"ARCHREAD",
|
||||
"This file has the archived attribute set.\n"
|
||||
"This file has the read-only attribute set.\n",
|
||||
"File with archived, read-only attributes",
|
||||
FILE_ARCHIVED | FILE_READONLY},
|
||||
{"ARCHHIDD",
|
||||
"This file has the archived attribute set.\n"
|
||||
"This file has the hidden attribute set.\n",
|
||||
"File with archived, hidden attributes",
|
||||
FILE_ARCHIVED | FILE_HIDDEN},
|
||||
{"ARCHDRDY",
|
||||
"This file has the archived attribute set.\n"
|
||||
"This file has the hidden attribute set.\n"
|
||||
"This file has the read-only attribute set.\n",
|
||||
"File with archived, hidden, read-only attributes",
|
||||
FILE_ARCHIVED | FILE_HIDDEN | FILE_READONLY},
|
||||
{"ARCHSYST",
|
||||
"This file has the archived attribute set.\n"
|
||||
"This file has the system attribute set.\n",
|
||||
"File with archived, system attributes",
|
||||
FILE_ARCHIVED | FILE_SYSTEM},
|
||||
{"ARSYSRDY",
|
||||
"This file has the archived attribute set.\n"
|
||||
"This file has the system attribute set.\n"
|
||||
"This file has the read-only attribute set.\n",
|
||||
"File with archived, system, read-only attributes",
|
||||
FILE_ARCHIVED | FILE_SYSTEM | FILE_READONLY},
|
||||
{"ARCSYSHD",
|
||||
"This file has the archived attribute set.\n"
|
||||
"This file has the system attribute set.\n"
|
||||
"This file has the hidden attribute set.\n",
|
||||
"File with archived, system, hidden attributes",
|
||||
FILE_ARCHIVED | FILE_SYSTEM | FILE_HIDDEN},
|
||||
{"ARSYHDRD",
|
||||
"This file has the archived attribute set.\n"
|
||||
"This file has the system attribute set.\n"
|
||||
"This file has the hidden attribute set.\n"
|
||||
"This file has the read-only attribute set.\n",
|
||||
"File with all (archived, system, hidden, read-only) attributes",
|
||||
FILE_ARCHIVED | FILE_SYSTEM | FILE_HIDDEN | FILE_READONLY},
|
||||
};
|
||||
|
||||
#endif // SETTER_SRC_OS2_ATTR_H_
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user