2002-04-21 14:20:42 +00:00
|
|
|
;
|
|
|
|
; Ullrich von Bassewitz, 16.05.2000
|
|
|
|
;
|
|
|
|
|
2003-11-13 09:28:43 +00:00
|
|
|
; Variables and functions
|
2002-11-20 18:14:53 +00:00
|
|
|
|
2003-11-13 09:28:43 +00:00
|
|
|
.global __errno, __oserror
|
|
|
|
.global __maperrno, __osmaperrno
|
2002-04-21 14:20:42 +00:00
|
|
|
|
2002-11-20 18:14:53 +00:00
|
|
|
; Error codes, must match the values in the C headers
|
2002-04-21 14:20:42 +00:00
|
|
|
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
|
2003-08-12 13:48:45 +00:00
|
|
|
ERANGE = 15 ; Range error
|
|
|
|
EUNKNOWN = 16 ; Unknown OS specific error - must be last!
|
2002-04-21 14:20:42 +00:00
|
|
|
|
2003-08-12 13:48:45 +00:00
|
|
|
EMAX = 16 ; Highest error code
|
2002-04-21 14:20:42 +00:00
|
|
|
|