Util: include assert.h in pthreads_nosig.h when required
[openafs.git] / src / util / errmap_nt.h
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  *
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
8  */
9
10 #ifndef OPENAFS_ERRMAP_NT_H
11 #define OPENAFS_ERRMAP_NT_H
12
13 /* Declare NT to Unix-ish error translation function */
14 extern int nterr_nt2unix(long ntErr, int defaultErr);
15
16 /* Include native error code definitions */
17 #include <errno.h>
18
19 /* Define additional local codes beyond NT errno range. */
20
21 /* Overloaded codes. */
22 #ifndef EWOULDBLOCK
23 #define EWOULDBLOCK        WSAEWOULDBLOCK
24 #endif
25
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
52 #ifdef ELOOP
53 #undef ELOOP
54 #endif
55 #define ELOOP                   WSAELOOP
56 #ifdef ENAMETOOLONG
57 #undef ENAMETOOLONG
58 #endif
59 #define ENAMETOOLONG            WSAENAMETOOLONG
60 #define EHOSTDOWN               WSAEHOSTDOWN
61 #define EHOSTUNREACH            WSAEHOSTUNREACH
62 #ifdef ENOTEMPTY
63 #undef ENOTEMPTY
64 #endif
65 #define ENOTEMPTY               WSAENOTEMPTY
66 #define EPROCLIM                WSAEPROCLIM
67 #define EUSERS                  WSAEUSERS
68 #define EDQUOT                  WSAEDQUOT
69 #define ESTALE                  WSAESTALE
70 #define EREMOTE                 WSAEREMOTE
71
72 /*
73  * New codes
74  * Highest known value is WSA_QOS_RESERVED_PETYPE (WSABASEERR + 1031)
75  */
76 #define AFS_NT_ERRNO_BASE  WSABASEERR + 1100
77
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)
82
83 #endif /* OPENAFS_ERRMAP_NT_H  */
84