2010-06-10 18:10:53 +00:00
|
|
|
;
|
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
|
2010-06-04 10:30:55 +00:00
|
|
|
.global __osmaperrno
|
2004-05-14 09:44:42 +00:00
|
|
|
.global __seterrno
|
2010-06-10 18:10:53 +00:00
|
|
|
.global __directerrno, __mappederrno
|
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
|
2013-05-09 11:56:54 +00:00
|
|
|
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
|
2003-12-03 09:21:01 +00:00
|
|
|
ERANGE ; Range error
|
2010-06-03 21:12:23 +00:00
|
|
|
EBADF ; Bad file number
|
2013-05-09 11:56:54 +00:00
|
|
|
EUNKNOWN ; Unknown OS specific error - must be last!
|
2003-12-03 09:21:01 +00:00
|
|
|
|
|
|
|
EMAX = EUNKNOWN ; Highest error code
|
|
|
|
.endenum
|
2002-04-21 14:20:42 +00:00
|
|
|
|
|
|
|
|