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
|
2004-05-14 09:44:42 +00:00
|
|
|
.global __seterrno
|
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
|
2003-12-03 09:21:01 +00:00
|
|
|
.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
|
2002-04-21 14:20:42 +00:00
|
|
|
|
|
|
|
|