UNIX Error | BASIC Error | ||||||||
1 | Not owner | 5 | Illegal function call | ||||||
2 | No such file or directory | 53 | File not found | ||||||
5 | I/O Error | 72 | Disk Media Error | ||||||
6 | No such device or address | 71 | Disk not Ready | ||||||
12 | Not enough space | 7 | Out of memory | ||||||
13 | Permission denied | 5 | Illegal function call | ||||||
17 | File exists | 58 | File already exists | ||||||
21 | Is a directory | 64 | Bad file name | ||||||
28 | No space left on device | 61 | Disk full | ||||||
30 | Read-only file system | 70 | Disk Write Protect | ||||||
33 | Math argument | 11 | Division by zero | ||||||
34 | Result too large | 6 | Overflow |
All other UNIX errors are mapped into BASIC Error 51: “Internal Error.”
Unixerror then passes the BASIC error number to runerr(err).
This function is called by many routines in the library when an error is detected by a UNIX system call.
from The Basmark QuickBASIC Programmer’s Manual by Lawrence Leinweber