[socket] Add EPROTOTYPE error case (#4391)
[mono.git] / mono / metadata / w32error.h
1
2 #ifndef _MONO_METADATA_W32ERROR_H_
3 #define _MONO_METADATA_W32ERROR_H_
4
5 #include <config.h>
6 #include <glib.h>
7
8 #if !defined(HOST_WIN32)
9
10 #define ERROR_SUCCESS              0
11 #define ERROR_FILE_NOT_FOUND       2
12 #define ERROR_PATH_NOT_FOUND       3
13 #define ERROR_TOO_MANY_OPEN_FILES  4
14 #define ERROR_ACCESS_DENIED        5
15 #define ERROR_INVALID_HANDLE       6
16 #define ERROR_NOT_ENOUGH_MEMORY    8
17 #define ERROR_BAD_FORMAT           11
18 #define ERROR_INVALID_ACCESS       12
19 #define ERROR_INVALID_DATA         13
20 #define ERROR_OUTOFMEMORY          14
21 #define ERROR_NOT_SAME_DEVICE      17
22 #define ERROR_NO_MORE_FILES        18
23 #define ERROR_BAD_LENGTH           24
24 #define ERROR_SEEK                 25
25 #define ERROR_WRITE_FAULT          29
26 #define ERROR_GEN_FAILURE          31
27 #define ERROR_SHARING_VIOLATION    32
28 #define ERROR_LOCK_VIOLATION       33
29 #define ERROR_HANDLE_DISK_FULL     39
30 #define ERROR_NOT_SUPPORTED        50
31 #define ERROR_FILE_EXISTS          80
32 #define ERROR_CANNOT_MAKE          82
33 #define ERROR_INVALID_PARAMETER    87
34 #define ERROR_INVALID_NAME         123
35 #define ERROR_PROC_NOT_FOUND       127
36 #define ERROR_DIR_NOT_EMPTY        145
37 #define ERROR_ALREADY_EXISTS       183
38 #define ERROR_BAD_EXE_FORMAT       193
39 #define ERROR_FILENAME_EXCED_RANGE 206
40 #define ERROR_DIRECTORY            267
41 #define ERROR_IO_PENDING           997
42 #define ERROR_ENCRYPTION_FAILED    6000
43 #define WSAEINTR                   10004
44 #define WSAEBADF                   10009
45 #define WSAEACCES                  10013
46 #define WSAEFAULT                  10014
47 #define WSAEINVAL                  10022
48 #define WSAEMFILE                  10024
49 #define WSAEWOULDBLOCK             10035
50 #define WSAEINPROGRESS             10036
51 #define WSAEALREADY                10037
52 #define WSAENOTSOCK                10038
53 #define WSAEDESTADDRREQ            10039
54 #define WSAEMSGSIZE                10040
55 #define WSAEPROTOTYPE              10041
56 #define WSAENOPROTOOPT             10042
57 #define WSAEPROTONOSUPPORT         10043
58 #define WSAESOCKTNOSUPPORT         10044
59 #define WSAEOPNOTSUPP              10045
60 #define WSAEAFNOSUPPORT            10047
61 #define WSAEADDRINUSE              10048
62 #define WSAEADDRNOTAVAIL           10049
63 #define WSAENETDOWN                10050
64 #define WSAENETUNREACH             10051
65 #define WSAECONNRESET              10054
66 #define WSAENOBUFS                 10055
67 #define WSAEISCONN                 10056
68 #define WSAENOTCONN                10057
69 #define WSAESHUTDOWN               10058
70 #define WSAETIMEDOUT               10060
71 #define WSAECONNREFUSED            10061
72 #define WSAEHOSTDOWN               10064
73 #define WSAEHOSTUNREACH            10065
74 #define WSASYSCALLFAILURE          10107
75
76 #endif
77
78 guint32
79 mono_w32error_get_last (void);
80
81 void
82 mono_w32error_set_last (guint32 error);
83
84 guint32
85 mono_w32error_unix_to_win32 (guint32 error);
86
87 #endif /* _MONO_METADATA_W32ERROR_H_ */