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