1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-27 12:29:33 +00:00

Use an enum for the error codes

git-svn-id: svn://svn.cc65.org/cc65/trunk@2705 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2003-12-03 09:21:01 +00:00
parent 14d0577ef0
commit 4fcf5c6bde

View File

@ -8,22 +8,26 @@
.global __maperrno, __osmaperrno
; Error codes, must match the values in the C headers
ENOENT = 1 ; No such file or directory
ENOMEM = 2 ; Out of memory
EACCES = 3 ; Permission denied
ENODEV = 4 ; No such device
EMFILE = 5 ; Too many open files
EBUSY = 6 ; Device or resource busy
EINVAL = 7 ; Invalid argument
ENOSPC = 8 ; No space left on device
EEXIST = 9 ; File exists
EAGAIN = 10 ; Try again
EIO = 11 ; I/O error
EINTR = 12 ; Interrupted system call
ENOSYS = 13 ; Function not implemented
ESPIPE = 14 ; Illegal seek
ERANGE = 15 ; Range error
EUNKNOWN = 16 ; Unknown OS specific error - must be last!
.enum
EOK ; No error
ENOENT ; No such file or directory
ENOMEM ; Out of memory
EACCES ; Permission denied
ENODEV ; No such device
EMFILE ; Too many open files
EBUSY ; Device or resource busy
EINVAL ; Invalid argument
ENOSPC ; No space left on device
EEXIST ; File exists
EAGAIN ; Try again
EIO ; I/O error
EINTR ; Interrupted system call
ENOSYS ; Function not implemented
ESPIPE ; Illegal seek
ERANGE ; Range error
EUNKNOWN ; Unknown OS specific error - must be last!
EMAX = EUNKNOWN ; Highest error code
.endenum
EMAX = 16 ; Highest error code