2 ; Ullrich von Bassewitz, 16.05.2000
5 ; Variables and functions
7 .global __errno, __oserror
8 .global __maperrno, __osmaperrno
11 .global seterrnofromoserror
13 ; Error codes, must match the values in the C headers
16 ENOENT ; No such file or directory
17 ENOMEM ; Out of memory
18 EACCES ; Permission denied
19 ENODEV ; No such device
20 EMFILE ; Too many open files
21 EBUSY ; Device or resource busy
22 EINVAL ; Invalid argument
23 ENOSPC ; No space left on device
27 EINTR ; Interrupted system call
28 ENOSYS ; Function not implemented
31 EBADF ; Bad file number
32 EUNKNOWN ; Unknown OS specific error - must be last!
34 EMAX = EUNKNOWN ; Highest error code