summaryrefslogtreecommitdiff
path: root/v4.0/src/INC/ERROR.INC
diff options
context:
space:
mode:
Diffstat (limited to 'v4.0/src/INC/ERROR.INC')
-rw-r--r--v4.0/src/INC/ERROR.INC155
1 files changed, 155 insertions, 0 deletions
diff --git a/v4.0/src/INC/ERROR.INC b/v4.0/src/INC/ERROR.INC
new file mode 100644
index 0000000..49c2843
--- /dev/null
+++ b/v4.0/src/INC/ERROR.INC
@@ -0,0 +1,155 @@
1; SCCSID = @(#)error.asm 1.1 85/04/10
2; SCCSID = @(#)error.asm 1.1 85/04/10
3BREAK <Xenix error codes>
4
5;
6; XENIX calls all return error codes through AX. If an error occurred then
7; the carry bit will be set and the error code is in AX. If no error occurred
8; then the carry bit is reset and AX contains returned info.
9;
10; Since the set of error codes is being extended as we extend the operating
11; system, we have provided a means for applications to ask the system for a
12; recommended course of action when they receive an error.
13;
14; The GetExtendedError system call returns a universal error, an error
15; location and a recommended course of action. The universal error code is
16; a symptom of the error REGARDLESS of the context in which GetExtendedError
17; is issued.
18;
19
20;
21; These are the 2.0 error codes
22;
23error_invalid_function EQU 1
24error_file_not_found EQU 2
25error_path_not_found EQU 3
26error_too_many_open_files EQU 4
27error_access_denied EQU 5
28error_invalid_handle EQU 6
29error_arena_trashed EQU 7
30error_not_enough_memory EQU 8
31error_invalid_block EQU 9
32error_bad_environment EQU 10
33error_bad_format EQU 11
34error_invalid_access EQU 12
35error_invalid_data EQU 13
36;**** reserved EQU 14 ; *****
37error_invalid_drive EQU 15
38error_current_directory EQU 16
39error_not_same_device EQU 17
40error_no_more_files EQU 18
41;
42; These are the universal int 24 mappings for the old INT 24 set of errors
43;
44error_write_protect EQU 19
45error_bad_unit EQU 20
46error_not_ready EQU 21
47error_bad_command EQU 22
48error_CRC EQU 23
49error_bad_length EQU 24
50error_Seek EQU 25
51error_not_DOS_disk EQU 26
52error_sector_not_found EQU 27
53error_out_of_paper EQU 28
54error_write_fault EQU 29
55error_read_fault EQU 30
56error_gen_failure EQU 31
57;
58; These are the new 3.0 error codes reported through INT 24
59;
60error_sharing_violation EQU 32
61error_lock_violation EQU 33
62error_wrong_disk EQU 34
63error_FCB_unavailable EQU 35
64error_sharing_buffer_exceeded EQU 36
65error_Code_Page_Mismatched EQU 37 ; DOS 4.00 ;AN000;
66error_handle_EOF EQU 38 ; DOS 4.00 ;AN000;
67error_handle_Disk_Full EQU 39 ; DOS 4.00 ;AN000;
68;
69; New OEM network-related errors are 50-79
70;
71error_not_supported EQU 50
72;
73; End of INT 24 reportable errors
74;
75error_file_exists EQU 80
76error_DUP_FCB EQU 81 ; *****
77error_cannot_make EQU 82
78error_FAIL_I24 EQU 83
79;
80; New 3.0 network related error codes
81;
82error_out_of_structures EQU 84
83error_Already_assigned EQU 85
84error_invalid_password EQU 86
85error_invalid_parameter EQU 87
86error_NET_write_fault EQU 88
87error_sys_comp_not_loaded EQU 90 ; DOS 4.00 ;AN000;
88
89BREAK <Interrupt 24 error codes>
90
91error_I24_write_protect EQU 0
92error_I24_bad_unit EQU 1
93error_I24_not_ready EQU 2
94error_I24_bad_command EQU 3
95error_I24_CRC EQU 4
96error_I24_bad_length EQU 5
97error_I24_Seek EQU 6
98error_I24_not_DOS_disk EQU 7
99error_I24_sector_not_found EQU 8
100error_I24_out_of_paper EQU 9
101error_I24_write_fault EQU 0Ah
102error_I24_read_fault EQU 0Bh
103error_I24_gen_failure EQU 0Ch
104; NOTE: Code 0DH is used by MT-DOS.
105error_I24_wrong_disk EQU 0Fh
106
107; THE FOLLOWING ARE MASKS FOR THE AH REGISTER ON Int 24
108
109Allowed_FAIL EQU 00001000B
110Allowed_RETRY EQU 00010000B
111Allowed_IGNORE EQU 00100000B
112;NOTE: ABORT is ALWAYS allowed
113
114I24_operation EQU 00000001B ;Z if READ,NZ if Write
115I24_area EQU 00000110B ; 00 if DOS
116 ; 01 if FAT
117 ; 10 if root DIR
118 ; 11 if DATA
119I24_class EQU 10000000B ;Z if DISK, NZ if FAT or char
120
121BREAK <GetExtendedError CLASSes ACTIONs LOCUSs>
122
123; Values for error CLASS
124
125errCLASS_OutRes EQU 1 ; Out of Resource
126errCLASS_TempSit EQU 2 ; Temporary Situation
127errCLASS_Auth EQU 3 ; Permission problem
128errCLASS_Intrn EQU 4 ; Internal System Error
129errCLASS_HrdFail EQU 5 ; Hardware Failure
130errCLASS_SysFail EQU 6 ; System Failure
131errCLASS_Apperr EQU 7 ; Application Error
132errCLASS_NotFnd EQU 8 ; Not Found
133errCLASS_BadFmt EQU 9 ; Bad Format
134errCLASS_Locked EQU 10 ; Locked
135errCLASS_Media EQU 11 ; Media Failure
136errCLASS_Already EQU 12 ; Collision with Existing Item
137errCLASS_Unk EQU 13 ; Unknown/other
138
139; Values for error ACTION
140
141errACT_Retry EQU 1 ; Retry
142errACT_DlyRet EQU 2 ; Delay Retry, retry after pause
143errACT_User EQU 3 ; Ask user to regive info
144errACT_Abort EQU 4 ; abort with clean up
145errACT_Panic EQU 5 ; abort immediately
146errACT_Ignore EQU 6 ; ignore
147errACT_IntRet EQU 7 ; Retry after User Intervention
148
149; Values for error LOCUS
150
151errLOC_Unk EQU 1 ; No appropriate value
152errLOC_Disk EQU 2 ; Random Access Mass Storage
153errLOC_Net EQU 3 ; Network
154errLOC_SerDev EQU 4 ; Serial Device
155errLOC_Mem EQU 5 ; Memory