dummy include files for compatibility with Microsoft POSIX
[reactos.git] / posix / include / errno.h
1 /* $Id: errno.h,v 1.2 2002/02/20 09:17:54 hyperion Exp $
2 */
3 /*
4 * errno.h
5 *
6 * system error numbers. Conforming to the Single UNIX(r) Specification
7 * Version 2, System Interface & Headers Issue 5
8 *
9 * This file is part of the ReactOS Operating System.
10 *
11 * Contributors:
12 * Created by KJK::Hyperion <noog@libero.it>
13 *
14 * THIS SOFTWARE IS NOT COPYRIGHTED
15 *
16 * This source code is offered for use in the public domain. You may
17 * use, modify or distribute it freely.
18 *
19 * This code is distributed in the hope that it will be useful but
20 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
21 * DISCLAMED. This includes but is not limited to warranties of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 *
24 */
25 #ifndef __ERRNO_H_INCLUDED__
26 #define __ERRNO_H_INCLUDED__
27
28 /* INCLUDES */
29
30 /* OBJECTS */
31
32 /* TYPES */
33
34 /* CONSTANTS */
35 #define E2BIG ( 1) /* Argument list too long. */
36 #define EACCES ( 2) /* Permission denied. */
37 #define EADDRINUSE ( 3) /* Address in use. */
38 #define EADDRNOTAVAIL ( 4) /* Address not available. */
39 #define EAFNOSUPPORT ( 5) /* Address family not supported. */
40 #define EAGAIN ( 6) /* Resource unavailable, try again */
41 #define EALREADY ( 7) /* Connection already in progress. */
42 #define EBADF ( 8) /* Bad file descriptor. */
43 #define EBADMSG ( 9) /* Bad message. */
44 #define EBUSY (10) /* Device or resource busy. */
45 #define ECANCELED (11) /* Operation canceled. */
46 #define ECHILD (12) /* No child processes. */
47 #define ECONNABORTED (13) /* Connection aborted. */
48 #define ECONNREFUSED (14) /* Connection refused. */
49 #define ECONNRESET (15) /* Connection reset. */
50 #define EDEADLK (16) /* Resource deadlock would occur. */
51 #define EDESTADDRREQ (17) /* Destination address required. */
52 #define EDOM (18) /* Mathematics argument out of domain of function. */
53 #define EDQUOT (19) /* Reserved. */
54 #define EEXIST (20) /* File exists. */
55 #define EFAULT (21) /* Bad address. */
56 #define EFBIG (22) /* File too large. */
57 #define EHOSTUNREACH (23) /* Host is unreachable. */
58 #define EIDRM (24) /* Identifier removed. */
59 #define EILSEQ (25) /* Illegal byte sequence. */
60 #define EINPROGRESS (26) /* Operation in progress. */
61 #define EINTR (27) /* Interrupted function. */
62 #define EINVAL (28) /* Invalid argument. */
63 #define EIO (29) /* I/O error. */
64 #define EISCONN (30) /* Socket is connected. */
65 #define EISDIR (31) /* Is a directory. */
66 #define ELOOP (32) /* Too many levels of symbolic links. */
67 #define EMFILE (33) /* Too many open files. */
68 #define EMLINK (34) /* Too many links. */
69 #define EMSGSIZE (35) /* Message too large. */
70 #define EMULTIHOP (36) /* Reserved. */
71 #define ENAMETOOLONG (37) /* Filename too long. */
72 #define ENETDOWN (38) /* Network is down. */
73 #define ENETUNREACH (39) /* Network unreachable. */
74 #define ENFILE (40) /* Too many files open in system. */
75 #define ENOBUFS (41) /* No buffer space available. */
76 #define ENODATA (42) /* No message is available on the STREAM head read queue. */
77 #define ENODEV (43) /* No such device. */
78 #define ENOENT (44) /* No such file or directory. */
79 #define ENOEXEC (45) /* Executable file format error. */
80 #define ENOLCK (46) /* No locks available. */
81 #define ENOLINK (47) /* Reserved. */
82 #define ENOMEM (48) /* Not enough space. */
83 #define ENOMSG (49) /* No message of the desired type. */
84 #define ENOPROTOOPT (50) /* Protocol not available. */
85 #define ENOSPC (51) /* No space left on device. */
86 #define ENOSR (52) /* No STREAM resources. */
87 #define ENOSTR (53) /* Not a STREAM. */
88 #define ENOSYS (54) /* Function not supported. */
89 #define ENOTCONN (55) /* The socket is not connected. */
90 #define ENOTDIR (56) /* Not a directory. */
91 #define ENOTEMPTY (57) /* Directory not empty. */
92 #define ENOTSOCK (58) /* Not a socket. */
93 #define ENOTSUP (59) /* Not supported. */
94 #define ENOTTY (60) /* Inappropriate I/O control operation. */
95 #define ENXIO (61) /* No such device or address. */
96 #define EOPNOTSUPP (62) /* Operation not supported on socket. */
97 #define EOVERFLOW (63) /* Value too large to be stored in data type. */
98 #define EPERM (64) /* Operation not permitted. */
99 #define EPIPE (65) /* Broken pipe. */
100 #define EPROTO (66) /* Protocol error. */
101 #define EPROTONOSUPPORT (67) /* Protocol not supported. */
102 #define EPROTOTYPE (68) /* Socket type not supported. */
103 #define ERANGE (69) /* Result too large. */
104 #define EROFS (70) /* Read-only file system. */
105 #define ESPIPE (71) /* Invalid seek. */
106 #define ESRCH (72) /* No such process. */
107 #define ESTALE (73) /* Reserved. */
108 #define ETIME (74) /* Streamioctl()timeout. */
109 #define ETIMEDOUT (75) /* Connection timed out. */
110 #define ETXTBSY (76) /* Text file busy. */
111 #define EWOULDBLOCK (77) /* Operation would block */
112 #define EXDEV (78) /* Cross-device link. */
113
114 /* PROTOTYPES */
115 int * __PdxGetThreadErrNum(void); /* returns a pointer to the current thread's errno */
116
117 /* MACROS */
118 #define errno (*__PdxGetThreadErrNum())
119
120 #endif /* __ERRNO_H_INCLUDED__ */
121
122 /* EOF */
123