|
|
1.1 root 1: /*
2: * Error codes.
3: *
4: * /usr/include/sys/errno.h
5: */
6:
7: #ifndef ERRNO_H
8: #define ERRNO_H ERRNO_H
9:
10: #define EPERM 1 /* Not super user */
11: #define ENOENT 2 /* No such file or directory */
12: #define ESRCH 3 /* Process not found */
13: #define EINTR 4 /* Interrupted system call */
14: #define EIO 5 /* I/O error */
15: #define ENXIO 6 /* No such device or address */
16: #define E2BIG 7 /* Argument list too long */
17: #define ENOEXEC 8 /* Sys exec format error */
18: #define EBADF 9 /* Bad file number */
19: #define ECHILD 10 /* No children (wait) */
20: #define EAGAIN 11 /* No more processes are available */
21: #define ENOMEM 12 /* Cannot map process into memory */
22: #define EACCES 13 /* Permission denied */
23: #define EFAULT 14 /* Bad system call argument address */
24: #define ENOTBLK 15 /* Block device required (mount) */
25: #define EBUSY 16 /* Device busy (mount) */
26: #define EEXIST 17 /* File already exists */
27: #define EXDEV 18 /* Cross device link */
28: #define ENODEV 19 /* No such device */
29: #define ENOTDIR 20 /* Not a directory */
30: #define EISDIR 21 /* Is a directory */
31: #define EINVAL 22 /* Invalid argument */
32: #define ENFILE 23 /* File table overflow */
33: #define EMFILE 24 /* Too many open files for this process */
34: #define ENOTTY 25 /* Not a terminal */
35: #define ETXTBSY 26 /* Text file busy */
36: #define EFBIG 27 /* File too big to map */
37: #define ENOSPC 28 /* No space left on device */
38: #define ESPIPE 29 /* Illegal seek on a pipe */
39: #define EROFS 30 /* Read only filesystem */
40: #define EMLINK 31 /* Too many links */
41: #define EPIPE 32 /* Broken pipe */
42: #define EDOM 33 /* Domain error */
43: #define ERANGE 34 /* Result too large */
44: #define EDATTN 199 /* Device needs attention do not use !! */
45:
46: #ifndef KERNEL
47: /*
48: * Globals for user programs.
49: */
50: extern int errno;
51: extern int sys_nerr;
52: extern char *sys_errlist[];
53:
54: #endif
55:
56: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.