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 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
36 #define AFS_NT_ERRNO_BASE WSABASEERR + 1000
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)
43 #endif /* OPENAFS_ERRMAP_NT_H */