renamefile-for-mrafslogs-20050414
[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 #define AFS_NT_ERRNO_BASE  100
22
23 /* Overloaded codes. */
24 #ifndef EWOULDBLOCK
25 #define EWOULDBLOCK        EAGAIN
26 #endif
27
28 /* New codes */
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)
40
41 #endif /* OPENAFS_ERRMAP_NT_H  */