mirror of
https://github.com/cc65/cc65.git
synced 2024-12-27 00:29:31 +00:00
81464a1214
git-svn-id: svn://svn.cc65.org/cc65/trunk@3975 b7a2c559-68d2-44c3-8de9-860c34a00d81
37 lines
1.3 KiB
PHP
37 lines
1.3 KiB
PHP
;
|
|
; Ullrich von Bassewitz, 16.05.2000
|
|
;
|
|
|
|
; Variables and functions
|
|
|
|
.global __errno, __oserror
|
|
.global __maperrno, __osmaperrno
|
|
.global __seterrno
|
|
.global oserrcheck
|
|
.global seterrnofromoserror
|
|
|
|
; Error codes, must match the values in the C headers
|
|
.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
|
|
|
|
|