Put sound into multimedia and rename it to audio because it is "MoreCorrect©"
[reactos.git] / reactos / lib / drivers / oskittcp / include / freebsd / src / sys / sys / errno.h
1 /*
2 * Copyright (c) 1982, 1986, 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
18 * 3. All advertising materials mentioning features or use of this software
19 * must display the following acknowledgement:
20 * This product includes software developed by the University of
21 * California, Berkeley and its contributors.
22 * 4. Neither the name of the University nor the names of its contributors
23 * may be used to endorse or promote products derived from this software
24 * without specific prior written permission.
25 *
26 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
27 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
30 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)errno.h 8.5 (Berkeley) 1/21/94
39 */
40
41 #ifndef _SYS_ERRNO_H_
42 #define _SYS_ERRNO_H_
43
44 #ifndef KERNEL
45 extern int errno; /* global error number */
46 #endif
47
48 #define EPERM 1 /* Operation not permitted */
49 #define ENOENT 2 /* No such file or directory */
50 #define ESRCH 3 /* No such process */
51 #define EINTR 4 /* Interrupted system call */
52 #define EIO 5 /* Input/output error */
53 #define ENXIO 6 /* Device not configured */
54 #define E2BIG 7 /* Argument list too long */
55 #define ENOEXEC 8 /* Exec format error */
56 #define EBADF 9 /* Bad file descriptor */
57 #define ECHILD 10 /* No child processes */
58 #ifndef EDEADLK
59 #define EDEADLK 11 /* Resource deadlock avoided */
60 /* 11 was EAGAIN */
61 #endif//EDEADLK
62 #define ENOMEM 12 /* Cannot allocate memory */
63 #define EACCES 13 /* Permission denied */
64 #define EFAULT 14 /* Bad address */
65 #ifndef _POSIX_SOURCE
66 #define ENOTBLK 15 /* Block device required */
67 #endif
68 #define EBUSY 16 /* Device busy */
69 #define EEXIST 17 /* File exists */
70 #define EXDEV 18 /* Cross-device link */
71 #define ENODEV 19 /* Operation not supported by device */
72 #define ENOTDIR 20 /* Not a directory */
73 #define EISDIR 21 /* Is a directory */
74 #define EINVAL 22 /* Invalid argument */
75 #define ENFILE 23 /* Too many open files in system */
76 #define EMFILE 24 /* Too many open files */
77 #define ENOTTY 25 /* Inappropriate ioctl for device */
78 #ifndef _POSIX_SOURCE
79 #define ETXTBSY 26 /* Text file busy */
80 #endif
81 #define EFBIG 27 /* File too large */
82 #define ENOSPC 28 /* No space left on device */
83 #define ESPIPE 29 /* Illegal seek */
84 #define EROFS 30 /* Read-only file system */
85 #define EMLINK 31 /* Too many links */
86 #define EPIPE 32 /* Broken pipe */
87
88 /* math software */
89 #define EDOM 33 /* Numerical argument out of domain */
90 #define ERANGE 34 /* Result too large */
91
92 /* non-blocking and interrupt i/o */
93 #ifndef EAGAIN
94 #define EAGAIN 35 /* Resource temporarily unavailable */
95 #endif//EAGAIN
96 #ifndef _POSIX_SOURCE
97 #define EWOULDBLOCK EAGAIN /* Operation would block */
98 #define EINPROGRESS 36 /* Operation now in progress */
99 #define EALREADY 37 /* Operation already in progress */
100
101 /* ipc/network software -- argument errors */
102 #define ENOTSOCK 38 /* Socket operation on non-socket */
103 #define EDESTADDRREQ 39 /* Destination address required */
104 #define EMSGSIZE 40 /* Message too long */
105 #define EPROTOTYPE 41 /* Protocol wrong type for socket */
106 #define ENOPROTOOPT 42 /* Protocol not available */
107 #define EPROTONOSUPPORT 43 /* Protocol not supported */
108 #define ESOCKTNOSUPPORT 44 /* Socket type not supported */
109 #define EOPNOTSUPP 45 /* Operation not supported */
110 #define EPFNOSUPPORT 46 /* Protocol family not supported */
111 #define EAFNOSUPPORT 47 /* Address family not supported by protocol family */
112 #define EADDRINUSE 48 /* Address already in use */
113 #define EADDRNOTAVAIL 49 /* Can't assign requested address */
114
115 /* ipc/network software -- operational errors */
116 #define ENETDOWN 50 /* Network is down */
117 #define ENETUNREACH 51 /* Network is unreachable */
118 #define ENETRESET 52 /* Network dropped connection on reset */
119 #define ECONNABORTED 53 /* Software caused connection abort */
120 #define ECONNRESET 54 /* Connection reset by peer */
121 #define ENOBUFS 55 /* No buffer space available */
122 #define EISCONN 56 /* Socket is already connected */
123 #define ENOTCONN 57 /* Socket is not connected */
124 #define ESHUTDOWN 58 /* Can't send after socket shutdown */
125 #define ETOOMANYREFS 59 /* Too many references: can't splice */
126 #define ETIMEDOUT 60 /* Operation timed out */
127 #define ECONNREFUSED 61 /* Connection refused */
128
129 #define ELOOP 62 /* Too many levels of symbolic links */
130 #endif /* _POSIX_SOURCE */
131 #ifndef ENAMETOOLONG
132 #define ENAMETOOLONG 63 /* File name too long */
133 #endif//ENAMETOOLONG
134
135 /* should be rearranged */
136 #ifndef _POSIX_SOURCE
137 #define EHOSTDOWN 64 /* Host is down */
138 #define EHOSTUNREACH 65 /* No route to host */
139 #endif /* _POSIX_SOURCE */
140 #ifndef ENOTEMPTY
141 #define ENOTEMPTY 66 /* Directory not empty */
142 #endif//ENOTEMPTY
143
144 /* quotas & mush */
145 #ifndef _POSIX_SOURCE
146 #define EPROCLIM 67 /* Too many processes */
147 #define EUSERS 68 /* Too many users */
148 #define EDQUOT 69 /* Disc quota exceeded */
149
150 /* Network File System */
151 #define ESTALE 70 /* Stale NFS file handle */
152 #define EREMOTE 71 /* Too many levels of remote in path */
153 #define EBADRPC 72 /* RPC struct is bad */
154 #define ERPCMISMATCH 73 /* RPC version wrong */
155 #define EPROGUNAVAIL 74 /* RPC prog. not avail */
156 #define EPROGMISMATCH 75 /* Program version wrong */
157 #define EPROCUNAVAIL 76 /* Bad procedure for program */
158 #endif /* _POSIX_SOURCE */
159
160 #ifndef ENOLCK
161 #define ENOLCK 77 /* No locks available */
162 #endif//ENOLCK
163 #ifndef ENOSYS
164 #define ENOSYS 78 /* Function not implemented */
165 #endif//ENOSYS
166
167 #ifndef _POSIX_SOURCE
168 #define EFTYPE 79 /* Inappropriate file type or format */
169 #define EAUTH 80 /* Authentication error */
170 #define ENEEDAUTH 81 /* Need authenticator */
171 #define ELAST 81 /* Must be equal largest errno */
172 #endif /* _POSIX_SOURCE */
173
174 #ifdef KERNEL
175 /* pseudo-errors returned inside kernel to modify return to process */
176 #define ERESTART -1 /* restart syscall */
177 #define EJUSTRETURN -2 /* don't modify regs, just return */
178 #endif
179
180 #endif