diff options
Diffstat (limited to 'v4.0/src/INC/EA.INC')
| -rw-r--r-- | v4.0/src/INC/EA.INC | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/v4.0/src/INC/EA.INC b/v4.0/src/INC/EA.INC new file mode 100644 index 0000000..c77cde2 --- /dev/null +++ b/v4.0/src/INC/EA.INC | |||
| @@ -0,0 +1,72 @@ | |||
| 1 | |||
| 2 | ;Get/Set Extended Attrbute Equates | ||
| 3 | |||
| 4 | ;The following equates are for EA types | ||
| 5 | |||
| 6 | EAISUNDEF equ 00H ; undefined | ||
| 7 | EAISLOGICAL equ 01H ; logical (0 or 1), 1 byte | ||
| 8 | EAISBINARY equ 02H ; binary integer 1, 2, or 4 bytes | ||
| 9 | EAISASCII equ 03H ; ASCII , 0 to 128 bytes | ||
| 10 | EAISDATE equ 04H ; DOS file date format, 2 bytes | ||
| 11 | EAISTIME equ 05H ; DOS file time format, 2 bytes | ||
| 12 | |||
| 13 | ;The following equates are for EA flags | ||
| 14 | |||
| 15 | EASYSTEM equ 8000H ; system defined, bultin | ||
| 16 | EAREADONLY equ 4000H ; read-only , cannot be changed | ||
| 17 | EAHIDDEN equ 2000H ; hidden from ATTRIB | ||
| 18 | EACREATEONLY equ 1000H ; settable only at create time | ||
| 19 | |||
| 20 | ;The following equates are for EA failure reason code (set by DOS) | ||
| 21 | |||
| 22 | EARCSUCCESS equ 00H ; success | ||
| 23 | EARCNOTFOUND equ 01H ; name not found | ||
| 24 | EARCNOSPACE equ 02H ; no space to hold name or value | ||
| 25 | EARCNOTNOW equ 03H ; name can't be set on this function | ||
| 26 | EARCNOTEVER equ 04H ; name can't be set | ||
| 27 | EARCUNDEF equ 05H ; name known to IFS but not supported | ||
| 28 | EARCDEFBAD equ 06H ; EA definition bad (type,length, etc) | ||
| 29 | EARCACCESS equ 07H ; EA access denied | ||
| 30 | EARCBADVAL equ 08H ; bad value | ||
| 31 | EARCDEVERROR equ 09H ; device error | ||
| 32 | EARCUNKNOWN equ 0FFFFH ; unknown cause | ||
| 33 | |||
| 34 | |||
| 35 | ;The following equates are for EA file type | ||
| 36 | |||
| 37 | EAEXISTING equ 00H ; existing file | ||
| 38 | EARTL equ 02H ; right to left | ||
| 39 | EAEXECUTABLE equ 03H ; executable program | ||
| 40 | EAINSTALLABLE equ 04H ; installable executable program | ||
| 41 | EAOVERLAY equ 05H ; program overlay | ||
| 42 | EADEV_DRIVER equ 06H ; device driver | ||
| 43 | EAIFS_DRIVER equ 07H ; ifs deriver | ||
| 44 | |||
| 45 | |||
| 46 | |||
| 47 | |||
| 48 | By_Create equ 0000010B ; set by Extended Open (create) | ||
| 49 | BY_XA equ 0000100B ; set by Get/Set XA by Handle | ||
| 50 | |||
| 51 | ;Extended Attribute Structure | ||
| 52 | |||
| 53 | EA STRUC ; extended attribute list | ||
| 54 | EA_TYPE DB ? ; type | ||
| 55 | EA_FLAGS DW ? ; flags | ||
| 56 | EA_RC DB ? ; reason code | ||
| 57 | EA_NAMELEN DB ? ; name length | ||
| 58 | EA_VALLEN DW ? ; value length | ||
| 59 | EA_NAME DB ? ; name | ||
| 60 | EA ENDS | ||
| 61 | |||
| 62 | |||
| 63 | ;Query Extended Attribute list | ||
| 64 | |||
| 65 | QEA STRUC ; extended attribute list | ||
| 66 | QEA_TYPE DB ? ; type | ||
| 67 | QEA_FLAGS DW ? ; flags | ||
| 68 | QEA_NAMELEN DB ? ; name length | ||
| 69 | QEA_NAME DB ? ; name | ||
| 70 | QEA ENDS | ||
| 71 | |||
| 72 | \ No newline at end of file | ||