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 native error code definitions */
19 /* Define additional local codes beyond NT errno range. */
21 /* Overloaded codes. */
23 #define EWOULDBLOCK WSAEWOULDBLOCK
26 #define EINPROGRESS WSAEINPROGRESS
27 #define EALREADY WSAEALREADY
28 #define ENOTSOCK WSAENOTSOCK
29 #define EDESTADDRREQ WSAEDESTADDRREQ
30 #define EMSGSIZE WSAEMSGSIZE
31 #define EPROTOTYPE WSAEPROTOTYPE
32 #define ENOPROTOOPT WSAENOPROTOOPT
33 #define EPROTONOSUPPORT WSAEPROTONOSUPPORT
34 #define ESOCKTNOSUPPORT WSAESOCKTNOSUPPORT
35 #define EOPNOTSUPP WSAEOPNOTSUPP
36 #define EPFNOSUPPORT WSAEPFNOSUPPORT
37 #define EAFNOSUPPORT WSAEAFNOSUPPORT
38 #define EADDRINUSE WSAEADDRINUSE
39 #define EADDRNOTAVAIL WSAEADDRNOTAVAIL
40 #define ENETDOWN WSAENETDOWN
41 #define ENETUNREACH WSAENETUNREACH
42 #define ENETRESET WSAENETRESET
43 #define ECONNABORTED WSAECONNABORTED
44 #define ECONNRESET WSAECONNRESET
45 #define ENOBUFS WSAENOBUFS
46 #define EISCONN WSAEISCONN
47 #define ENOTCONN WSAENOTCONN
48 #define ESHUTDOWN WSAESHUTDOWN
49 #define ETOOMANYREFS WSAETOOMANYREFS
50 #define ETIMEDOUT WSAETIMEDOUT
51 #define ECONNREFUSED WSAECONNREFUSED
55 #define ELOOP WSAELOOP
59 #define ENAMETOOLONG WSAENAMETOOLONG
60 #define EHOSTDOWN WSAEHOSTDOWN
61 #define EHOSTUNREACH WSAEHOSTUNREACH
65 #define ENOTEMPTY WSAENOTEMPTY
66 #define EPROCLIM WSAEPROCLIM
67 #define EUSERS WSAEUSERS
68 #define EDQUOT WSAEDQUOT
69 #define ESTALE WSAESTALE
70 #define EREMOTE WSAEREMOTE
74 * Highest known value is WSA_QOS_RESERVED_PETYPE (WSABASEERR + 1031)
76 #define AFS_NT_ERRNO_BASE WSABASEERR + 1100
78 #define EOVERFLOW (AFS_NT_ERRNO_BASE + 0)
79 #define ENOMSG (AFS_NT_ERRNO_BASE + 1)
80 #define ETIME (AFS_NT_ERRNO_BASE + 2)
81 #define ENOTBLK (AFS_NT_ERRNO_BASE + 3)
83 #endif /* OPENAFS_ERRMAP_NT_H */