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