X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=asminc%2Ferrno.inc;h=28cf6f11e255dcd28308ef8e09d51aee5a16de39;hb=5c63b08d26cf167bfe8ef1a52f6e6f1dd0746a83;hp=f541a784338ba33379ba6b1761d8611694fb5212;hpb=20e805a124a611b0bb8f286d5f8c98863c3e9792;p=cc65 diff --git a/asminc/errno.inc b/asminc/errno.inc index f541a7843..28cf6f11e 100644 --- a/asminc/errno.inc +++ b/asminc/errno.inc @@ -2,27 +2,32 @@ ; Ullrich von Bassewitz, 16.05.2000 ; -; errno variable +; Variables and functions - .global __errno + .global __errno, __oserror + .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