Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.msdos.programmer > #902 > unrolled thread
| Started by | "Ed" <invalid@nospam.com> |
|---|---|
| First post | 2013-04-19 21:28 +1000 |
| Last post | 2013-04-19 22:54 +1000 |
| Articles | 3 — 2 participants |
Back to article view | Back to comp.os.msdos.programmer
DOS error code question "Ed" <invalid@nospam.com> - 2013-04-19 21:28 +1000
Re: DOS error code question Bogus@Embarq.com (Steve) - 2013-04-19 12:04 +0000
Re: DOS error code question "Ed" <invalid@nospam.com> - 2013-04-19 22:54 +1000
| From | "Ed" <invalid@nospam.com> |
|---|---|
| Date | 2013-04-19 21:28 +1000 |
| Subject | DOS error code question |
| Message-ID | <kkr9mm$mkj$1@speranza.aioe.org> |
According to the MS-DOS docs, the following error codes are generated when INT21 functions CREATE WRITE fail: Int 21 3C CREAT - errors 3, 4, 5 Int 21 40 WRITE - errors 5, 6 So what happens when: - there is no more directory space (CREAT) - there are no more disk blocks (WRITE) None of the codes above seem to cover this (?) Does DOS simply terminate the program? Thanks.
[toc] | [next] | [standalone]
| From | Bogus@Embarq.com (Steve) |
|---|---|
| Date | 2013-04-19 12:04 +0000 |
| Message-ID | <c1.2b8.3ZsbTL$04t@NOVOSAD3.EMBARQ.COM> |
| In reply to | #902 |
Hi Ed, "Ed" <invalid@nospam.com> writes: >According to the MS-DOS docs, the following error codes >are generated when INT21 functions CREATE WRITE fail: > >Int 21 3C CREAT - errors 3, 4, 5 >Int 21 40 WRITE - errors 5, 6 > >So what happens when: >- there is no more directory space (CREAT) You get error 5, ACCESS_DENIED (MS-DOS 5.0 Programmer's Reference). >- there are no more disk blocks (WRITE) > You check register AX to find out how many bytes were actually written (ibid). >None of the codes above seem to cover this (?) Does >DOS simply terminate the program? No. See above. HTH, Steve N.
[toc] | [prev] | [next] | [standalone]
| From | "Ed" <invalid@nospam.com> |
|---|---|
| Date | 2013-04-19 22:54 +1000 |
| Message-ID | <kkrenu$5gb$1@speranza.aioe.org> |
| In reply to | #903 |
Steve wrote: > Hi Ed, > > "Ed" <invalid@nospam.com> writes: > >According to the MS-DOS docs, the following error codes > >are generated when INT21 functions CREATE WRITE fail: > > > >Int 21 3C CREAT - errors 3, 4, 5 > >Int 21 40 WRITE - errors 5, 6 > > > >So what happens when: > >- there is no more directory space (CREAT) > > You get error 5, ACCESS_DENIED (MS-DOS 5.0 Programmer's > Reference). > > >- there are no more disk blocks (WRITE) > > > > You check register AX to find out how many bytes were actually > written (ibid). > ... Thanks Steve. I'm implementing DOS-style file handling on a CP/M compiler and wanted to use the same error codes as DOS...
[toc] | [prev] | [standalone]
Back to top | Article view | comp.os.msdos.programmer
csiph-web