2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
10 #ifndef OPENAFS_ERRMAP_NT_H
11 #define OPENAFS_ERRMAP_NT_H
13 /* Declare NT to Unix-ish error translation function */
14 extern int nterr_nt2unix(long ntErr
, int defaultErr
);
16 /* Include C Runtime Library error code definitions */
20 * Define additional POSIX codes not specified by
21 * Visual Studio. Different versions include different
22 * error code definitions. If an error is not declared
23 * by the C Runtime Library, define it using the equivalent
24 * Winsock error. If there is no Winsock equivalent,
25 * define an AFS private value in the Winsock space.
28 /* Overloaded codes. */
30 #define EWOULDBLOCK WSAEWOULDBLOCK
34 #define EINPROGRESS WSAEINPROGRESS
37 #define EALREADY WSAEALREADY
40 #define ENOTSOCK WSAENOTSOCK
43 #define EDESTADDRREQ WSAEDESTADDRREQ
46 #define EMSGSIZE WSAEMSGSIZE
49 #define EPROTOTYPE WSAEPROTOTYPE
52 #define ENOPROTOOPT WSAENOPROTOOPT
54 #ifndef EPROTONOSUPPORT
55 #define EPROTONOSUPPORT WSAEPROTONOSUPPORT
57 #ifndef ESOCKTNOSUPPORT
58 #define ESOCKTNOSUPPORT WSAESOCKTNOSUPPORT
61 #define EOPNOTSUPP WSAEOPNOTSUPP
64 #define EPFNOSUPPORT WSAEPFNOSUPPORT
67 #define EAFNOSUPPORT WSAEAFNOSUPPORT
70 #define EADDRINUSE WSAEADDRINUSE
73 #define EADDRNOTAVAIL WSAEADDRNOTAVAIL
76 #define ENETDOWN WSAENETDOWN
79 #define ENETUNREACH WSAENETUNREACH
82 #define ENETRESET WSAENETRESET
85 #define ECONNABORTED WSAECONNABORTED
88 #define ECONNRESET WSAECONNRESET
91 #define ENOBUFS WSAENOBUFS
94 #define EISCONN WSAEISCONN
97 #define ENOTCONN WSAENOTCONN
100 #define ESHUTDOWN WSAESHUTDOWN
103 #define ETOOMANYREFS WSAETOOMANYREFS
106 #define ETIMEDOUT WSAETIMEDOUT
109 #define ECONNREFUSED WSAECONNREFUSED
112 #define ELOOP WSAELOOP
115 #define ENAMETOOLONG WSAENAMETOOLONG
118 #define EHOSTDOWN WSAEHOSTDOWN
121 #define EHOSTUNREACH WSAEHOSTUNREACH
124 #define ENOTEMPTY WSAENOTEMPTY
127 #define EPROCLIM WSAEPROCLIM
130 #define EUSERS WSAEUSERS
133 #define EDQUOT WSAEDQUOT
136 #define ESTALE WSAESTALE
139 #define EREMOTE WSAEREMOTE
144 * Highest known value is WSA_QOS_RESERVED_PETYPE (WSABASEERR + 1031)
146 #define AFS_NT_ERRNO_BASE WSABASEERR + 1100
149 #define EOVERFLOW (AFS_NT_ERRNO_BASE + 0)
152 #define ENOMSG (AFS_NT_ERRNO_BASE + 1)
155 #define ETIME (AFS_NT_ERRNO_BASE + 2)
158 #define ENOTBLK (AFS_NT_ERRNO_BASE + 3)
161 #endif /* OPENAFS_ERRMAP_NT_H */