ReactOS 0.4.16-dev-2204-g370eb8c
errno.h
Go to the documentation of this file.
1/*
2 * Copyright 2001 Jon Griffiths
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19#ifndef __WINE_ERRNO_H
20#define __WINE_ERRNO_H
21
22#include <corecrt.h>
23
24# define EPERM 1
25# define ENOENT 2
26# define ESRCH 3
27# define EINTR 4
28# define EIO 5
29# define ENXIO 6
30# define E2BIG 7
31# define ENOEXEC 8
32# define EBADF 9
33# define ECHILD 10
34# define EAGAIN 11
35# define ENOMEM 12
36# define EACCES 13
37# define EFAULT 14
38# define EBUSY 16
39# define EEXIST 17
40# define EXDEV 18
41# define ENODEV 19
42# define ENOTDIR 20
43# define EISDIR 21
44# define EINVAL 22
45# define ENFILE 23
46# define EMFILE 24
47# define ENOTTY 25
48# define EFBIG 27
49# define ENOSPC 28
50# define ESPIPE 29
51# define EROFS 30
52# define EMLINK 31
53# define EPIPE 32
54# define EDOM 33
55# define ERANGE 34
56# define EDEADLK 36
57# define EDEADLOCK EDEADLK
58# define ENAMETOOLONG 38
59# define ENOLCK 39
60# define ENOSYS 40
61# define ENOTEMPTY 41
62# define EILSEQ 42
63
64# define STRUNCATE 80
65
66#ifndef _CRT_NO_POSIX_ERROR_CODES
67# define EADDRINUSE 100
68# define EADDRNOTAVAIL 101
69# define EAFNOSUPPORT 102
70# define EALREADY 103
71# define EBADMSG 104
72# define ECANCELED 105
73# define ECONNABORTED 106
74# define ECONNREFUSED 107
75# define ECONNRESET 108
76# define EDESTADDRREQ 109
77# define EHOSTUNREACH 110
78# define EIDRM 111
79# define EINPROGRESS 112
80# define EISCONN 113
81# define ELOOP 114
82# define EMSGSIZE 115
83# define ENETDOWN 116
84# define ENETRESET 117
85# define ENETUNREACH 118
86# define ENOBUFS 119
87# define ENODATA 120
88# define ENOLINK 121
89# define ENOMSG 122
90# define ENOPROTOOPT 123
91# define ENOSR 124
92# define ENOSTR 125
93# define ENOTCONN 126
94# define ENOTRECOVERABLE 127
95# define ENOTSOCK 128
96# define ENOTSUP 129
97# define EOPNOTSUPP 130
98# define EOTHER 131
99# define EOVERFLOW 132
100# define EOWNERDEAD 133
101# define EPROTO 134
102# define EPROTONOSUPPORT 135
103# define EPROTOTYPE 136
104# define ETIME 137
105# define ETIMEDOUT 138
106# define ETXTBSY 139
107# define EWOULDBLOCK 140
108#endif
109
110#ifdef __cplusplus
111extern "C" {
112#endif
113
114_ACRTIMP int* __cdecl _errno(void);
115
116#ifdef __cplusplus
117}
118#endif
119
120#define errno (*_errno())
121
122#endif /* __WINE_ERRNO_H */
#define __cdecl
Definition: corecrt.h:121
#define _ACRTIMP
Definition: corecrt.h:153
_ACRTIMP int *__cdecl _errno(void)
Definition: errno.c:215