Release 1.2-rc6.
[wine/gsoc-2012-control.git] / include / msvcrt / errno.h
blob115c5e4f3422c594aeae40688ddc873c88e70c3d
1 /*
2 * Copyright 2001 Jon Griffiths
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.
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.
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
19 #ifndef __WINE_ERRNO_H
20 #define __WINE_ERRNO_H
22 #include <crtdefs.h>
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
64 #ifdef __cplusplus
65 extern "C" {
66 #endif
68 extern int* __cdecl _errno(void);
70 #ifdef __cplusplus
72 #endif
74 #define errno (*_errno())
76 #endif /* __WINE_ERRNO_H */