8c183ebcf4270323d791d2ecb097e63e23c0b772
[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 ETIMEDOUT          WSAETIMEDOUT
27 #define EDQUOT             WSAEDQUOT
28 #define ELOOP              WSAELOOP
29 #define EOPNOTSUPP         WSAEOPNOTSUPP
30 #define ENOTSOCK           WSAENOTSOCK
31 #define ECONNREFUSED       WSAECONNREFUSED
32 #define ESTALE             WSAESTALE
33
34
35 /* New codes */
36 #define AFS_NT_ERRNO_BASE  WSABASEERR + 1000
37
38 #define EOVERFLOW          (AFS_NT_ERRNO_BASE + 0)
39 #define ENOMSG             (AFS_NT_ERRNO_BASE + 1)
40 #define ETIME              (AFS_NT_ERRNO_BASE + 2)
41 #define ENOTBLK            (AFS_NT_ERRNO_BASE + 3)
42
43 #endif /* OPENAFS_ERRMAP_NT_H  */