]> git.sur5r.net Git - cc65/blob - asminc/errno.inc
New error code ERANGE
[cc65] / asminc / errno.inc
1 ;
2 ; Ullrich von Bassewitz, 16.05.2000
3 ;
4
5 ; errno variable
6
7         .global         __errno
8
9 ; Error codes, must match the values in the C headers
10 ENOENT          =       1       ; No such file or directory
11 ENOMEM          =       2       ; Out of memory
12 EACCES          =       3       ; Permission denied
13 ENODEV          =       4       ; No such device
14 EMFILE          =       5       ; Too many open files
15 EBUSY           =       6       ; Device or resource busy
16 EINVAL          =       7       ; Invalid argument
17 ENOSPC          =       8       ; No space left on device
18 EEXIST          =       9       ; File exists
19 EAGAIN          =       10      ; Try again
20 EIO             =       11      ; I/O error
21 EINTR           =       12      ; Interrupted system call
22 ENOSYS          =       13      ; Function not implemented
23 ESPIPE          =       14      ; Illegal seek
24 ERANGE          =       15      ; Range error
25 EUNKNOWN        =       16      ; Unknown OS specific error - must be last!
26
27 EMAX            =       16      ; Highest error code
28