mirror of
https://github.com/cc65/cc65.git
synced 2024-11-16 02:10:52 +00:00
94ba9575ec
- Adds new ENOEXEC error code, also used by Apple2 targets. - Maximum command line length is 40, incl. program name. This is an XDOS restriction. - testcode/lib/tinyshell.c has been extended to be able to run programs.
38 lines
1.4 KiB
PHP
38 lines
1.4 KiB
PHP
;
|
|
; Ullrich von Bassewitz, 16.05.2000
|
|
;
|
|
|
|
; Variables and functions
|
|
|
|
.global __errno, __oserror
|
|
.global __osmaperrno
|
|
.global __seterrno
|
|
.global __directerrno, __mappederrno
|
|
|
|
; 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
|
|
EBADF ; Bad file number
|
|
ENOEXEC ; Exec format error
|
|
EUNKNOWN ; Unknown OS specific error - must be last!
|
|
|
|
EMAX = EUNKNOWN ; Highest error code
|
|
.endenum
|
|
|
|
|