mirror of
https://github.com/cc65/cc65.git
synced 2024-09-30 08:57:49 +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:
parent
14d0577ef0
commit
4fcf5c6bde
@ -8,22 +8,26 @@
|
|||||||
.global __maperrno, __osmaperrno
|
.global __maperrno, __osmaperrno
|
||||||
|
|
||||||
; Error codes, must match the values in the C headers
|
; Error codes, must match the values in the C headers
|
||||||
ENOENT = 1 ; No such file or directory
|
.enum
|
||||||
ENOMEM = 2 ; Out of memory
|
EOK ; No error
|
||||||
EACCES = 3 ; Permission denied
|
ENOENT ; No such file or directory
|
||||||
ENODEV = 4 ; No such device
|
ENOMEM ; Out of memory
|
||||||
EMFILE = 5 ; Too many open files
|
EACCES ; Permission denied
|
||||||
EBUSY = 6 ; Device or resource busy
|
ENODEV ; No such device
|
||||||
EINVAL = 7 ; Invalid argument
|
EMFILE ; Too many open files
|
||||||
ENOSPC = 8 ; No space left on device
|
EBUSY ; Device or resource busy
|
||||||
EEXIST = 9 ; File exists
|
EINVAL ; Invalid argument
|
||||||
EAGAIN = 10 ; Try again
|
ENOSPC ; No space left on device
|
||||||
EIO = 11 ; I/O error
|
EEXIST ; File exists
|
||||||
EINTR = 12 ; Interrupted system call
|
EAGAIN ; Try again
|
||||||
ENOSYS = 13 ; Function not implemented
|
EIO ; I/O error
|
||||||
ESPIPE = 14 ; Illegal seek
|
EINTR ; Interrupted system call
|
||||||
ERANGE = 15 ; Range error
|
ENOSYS ; Function not implemented
|
||||||
EUNKNOWN = 16 ; Unknown OS specific error - must be last!
|
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
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user