Fixed some issues found by winapi_check.
[wine] / include / msvcrt / errno.h
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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17  */
18
19 #ifndef __WINE_ERRNO_H
20 #define __WINE_ERRNO_H
21 #define __WINE_USE_MSVCRT
22
23 #ifdef USE_MSVCRT_PREFIX
24
25 #  define MSVCRT_EPERM   1
26 #  define MSVCRT_ENOENT  2
27 #  define MSVCRT_ESRCH   3
28 #  define MSVCRT_EINTR   4
29 #  define MSVCRT_EIO     5
30 #  define MSVCRT_ENXIO   6
31 #  define MSVCRT_E2BIG   7
32 #  define MSVCRT_ENOEXEC 8
33 #  define MSVCRT_EBADF   9
34 #  define MSVCRT_ECHILD  10
35 #  define MSVCRT_EAGAIN  11
36 #  define MSVCRT_ENOMEM  12
37 #  define MSVCRT_EACCES  13
38 #  define MSVCRT_EFAULT  14
39 #  define MSVCRT_EBUSY   16
40 #  define MSVCRT_EEXIST  17
41 #  define MSVCRT_EXDEV   18
42 #  define MSVCRT_ENODEV  19
43 #  define MSVCRT_ENOTDIR 20
44 #  define MSVCRT_EISDIR  21
45 #  define MSVCRT_EINVAL  22
46 #  define MSVCRT_ENFILE  23
47 #  define MSVCRT_EMFILE  24
48 #  define MSVCRT_ENOTTY  25
49 #  define MSVCRT_EFBIG   27
50 #  define MSVCRT_ENOSPC  28
51 #  define MSVCRT_ESPIPE  29
52 #  define MSVCRT_EROFS   30
53 #  define MSVCRT_EMLINK  31
54 #  define MSVCRT_EPIPE   32
55 #  define MSVCRT_EDOM    33
56 #  define MSVCRT_ERANGE  34
57 #  define MSVCRT_EDEADLK 36
58 #  define MSVCRT_ENAMETOOLONG 38
59 #  define MSVCRT_ENOLCK  39
60 #  define MSVCRT_ENOSYS  40
61 #  define MSVCRT_ENOTEMPTY 41
62
63 #else /* USE_MSVCRT_PREFIX */
64
65 #  define EPERM   1
66 #  define ENOENT  2
67 #  define ESRCH   3
68 #  define EINTR   4
69 #  define EIO     5
70 #  define ENXIO   6
71 #  define E2BIG   7
72 #  define ENOEXEC 8
73 #  define EBADF   9
74 #  define ECHILD  10
75 #  define EAGAIN  11
76 #  define ENOMEM  12
77 #  define EACCES  13
78 #  define EFAULT  14
79 #  define EBUSY   16
80 #  define EEXIST  17
81 #  define EXDEV   18
82 #  define ENODEV  19
83 #  define ENOTDIR 20
84 #  define EISDIR  21
85 #  define EINVAL  22
86 #  define ENFILE  23
87 #  define EMFILE  24
88 #  define ENOTTY  25
89 #  define EFBIG   27
90 #  define ENOSPC  28
91 #  define ESPIPE  29
92 #  define EROFS   30
93 #  define EMLINK  31
94 #  define EPIPE   32
95 #  define EDOM    33
96 #  define ERANGE  34
97 #  define EDEADLK 36
98 #  define ENAMETOOLONG 38
99 #  define ENOLCK  39
100 #  define ENOSYS  40
101 #  define ENOTEMPTY 41
102
103 #endif /* USE_MSVCRT_PREFIX */
104
105 #endif  /* __WINE_ERRNO_H */