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 | /*
|
---|
20 | * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | #ifndef __WINE_ERRNO_H
|
---|
29 | #define __WINE_ERRNO_H
|
---|
30 |
|
---|
31 | #include <crtdefs.h>
|
---|
32 |
|
---|
33 | # define EPERM 1
|
---|
34 | # define ENOENT 2
|
---|
35 | # define ESRCH 3
|
---|
36 | # define EINTR 4
|
---|
37 | # define EIO 5
|
---|
38 | # define ENXIO 6
|
---|
39 | # define E2BIG 7
|
---|
40 | # define ENOEXEC 8
|
---|
41 | # define EBADF 9
|
---|
42 | # define ECHILD 10
|
---|
43 | # define EAGAIN 11
|
---|
44 | # define ENOMEM 12
|
---|
45 | # define EACCES 13
|
---|
46 | # define EFAULT 14
|
---|
47 | # define EBUSY 16
|
---|
48 | # define EEXIST 17
|
---|
49 | # define EXDEV 18
|
---|
50 | # define ENODEV 19
|
---|
51 | # define ENOTDIR 20
|
---|
52 | # define EISDIR 21
|
---|
53 | # define EINVAL 22
|
---|
54 | # define ENFILE 23
|
---|
55 | # define EMFILE 24
|
---|
56 | # define ENOTTY 25
|
---|
57 | # define EFBIG 27
|
---|
58 | # define ENOSPC 28
|
---|
59 | # define ESPIPE 29
|
---|
60 | # define EROFS 30
|
---|
61 | # define EMLINK 31
|
---|
62 | # define EPIPE 32
|
---|
63 | # define EDOM 33
|
---|
64 | # define ERANGE 34
|
---|
65 | # define EDEADLK 36
|
---|
66 | # define EDEADLOCK EDEADLK
|
---|
67 | # define ENAMETOOLONG 38
|
---|
68 | # define ENOLCK 39
|
---|
69 | # define ENOSYS 40
|
---|
70 | # define ENOTEMPTY 41
|
---|
71 | # define EILSEQ 42
|
---|
72 |
|
---|
73 | #ifdef __cplusplus
|
---|
74 | extern "C" {
|
---|
75 | #endif
|
---|
76 |
|
---|
77 | extern int* __cdecl _errno(void);
|
---|
78 |
|
---|
79 | #ifdef __cplusplus
|
---|
80 | }
|
---|
81 | #endif
|
---|
82 |
|
---|
83 | #define errno (*_errno())
|
---|
84 |
|
---|
85 | #endif /* __WINE_ERRNO_H */
|
---|