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 #define AFS_NT_ERRNO_BASE 100
23 /* Overloaded codes. */
25 #define EWOULDBLOCK EAGAIN
29 #define ELOOP (AFS_NT_ERRNO_BASE + 1)
30 #define EOPNOTSUPP (AFS_NT_ERRNO_BASE + 2)
31 #define EDQUOT (AFS_NT_ERRNO_BASE + 3)
32 #define ENOTSOCK (AFS_NT_ERRNO_BASE + 4)
33 #define ETIMEDOUT (AFS_NT_ERRNO_BASE + 5)
34 #define ECONNREFUSED (AFS_NT_ERRNO_BASE + 6)
35 #define ESTALE (AFS_NT_ERRNO_BASE + 7)
36 #define ENOTBLK (AFS_NT_ERRNO_BASE + 8)
37 #define EOVERFLOW (AFS_NT_ERRNO_BASE + 9)
38 #define ENOMSG (AFS_NT_ERRNO_BASE + 10)
39 #define ETIME (AFS_NT_ERRNO_BASE + 11)
41 #endif /* OPENAFS_ERRMAP_NT_H */