3b3161a251f9567a6f9dc83ac553147b153cca47
[openafs.git] / src / WINNT / afsd / cm.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 __CM_H_ENV__
11 #define __CM_H_ENV__ 1
12
13 #ifndef AFS_PTHREAD_ENV
14 #define AFS_PTHREAD_ENV 1
15 #endif
16 #include <rx/rx.h>
17 #include <afs/vldbint.h>
18 #include <afs/afsint.h>
19
20 #define CM_DEFAULT_CALLBACKPORT         7001
21
22 /* common flags to many procedures */
23 #define CM_FLAG_CREATE          1               /* create entry */
24 #define CM_FLAG_CASEFOLD        2               /* fold case in namei, lookup, etc. */
25 #define CM_FLAG_EXCLUSIVE       4               /* create exclusive */
26 #define CM_FLAG_FOLLOW          8               /* follow symlinks, even at the end (namei) */
27 #define CM_FLAG_8DOT3           0x10            /* restrict to 8.3 name */
28 #define CM_FLAG_NOMOUNTCHASE    0x20            /* don't follow mount points */
29 #define CM_FLAG_DIRSEARCH       0x40            /* for directory search */
30 #define CM_FLAG_CHECKPATH       0x80            /* Path instead of File */
31 #define CM_FLAG_NOPROBE         0x100           /* For use with cm_GetCellxxx - do not probe server status */
32 #define CM_FLAG_DFS_REFERRAL    0x200           /* The request is a DFS Referral - the last char of the lookup name may be missing */
33
34 /* error codes */
35 #define CM_ERROR_BASE                   0x66543200
36 #define CM_ERROR_NOSUCHCELL             (CM_ERROR_BASE+0)
37 #define CM_ERROR_NOSUCHVOLUME           (CM_ERROR_BASE+1)
38 #define CM_ERROR_TIMEDOUT               (CM_ERROR_BASE+2)
39 #define CM_ERROR_RETRY                  (CM_ERROR_BASE+3)
40 #define CM_ERROR_NOACCESS               (CM_ERROR_BASE+4)
41 #define CM_ERROR_NOSUCHFILE             (CM_ERROR_BASE+5)
42 #define CM_ERROR_STOPNOW                (CM_ERROR_BASE+6)
43 #define CM_ERROR_TOOBIG                 (CM_ERROR_BASE+7)
44 #define CM_ERROR_INVAL                  (CM_ERROR_BASE+8)
45 #define CM_ERROR_BADFD                  (CM_ERROR_BASE+9)
46 #define CM_ERROR_BADFDOP                (CM_ERROR_BASE+10)
47 #define CM_ERROR_EXISTS                 (CM_ERROR_BASE+11)
48 #define CM_ERROR_CROSSDEVLINK           (CM_ERROR_BASE+12)
49 #define CM_ERROR_BADOP                  (CM_ERROR_BASE+13)
50 #define CM_ERROR_BADPASSWORD            (CM_ERROR_BASE+14)
51 #define CM_ERROR_NOTDIR                 (CM_ERROR_BASE+15)
52 #define CM_ERROR_ISDIR                  (CM_ERROR_BASE+16)
53 #define CM_ERROR_READONLY               (CM_ERROR_BASE+17)
54 #define CM_ERROR_WOULDBLOCK             (CM_ERROR_BASE+18)
55 #define CM_ERROR_QUOTA                  (CM_ERROR_BASE+19)
56 #define CM_ERROR_SPACE                  (CM_ERROR_BASE+20)
57 #define CM_ERROR_BADSHARENAME           (CM_ERROR_BASE+21)
58 #define CM_ERROR_BADTID                 (CM_ERROR_BASE+22)
59 #define CM_ERROR_UNKNOWN                (CM_ERROR_BASE+23)
60 #define CM_ERROR_NOMORETOKENS           (CM_ERROR_BASE+24)
61 #define CM_ERROR_NOTEMPTY               (CM_ERROR_BASE+25)
62 #define CM_ERROR_USESTD                 (CM_ERROR_BASE+26)
63 #define CM_ERROR_REMOTECONN             (CM_ERROR_BASE+27)
64 #define CM_ERROR_ATSYS                  (CM_ERROR_BASE+28)
65 #define CM_ERROR_NOSUCHPATH             (CM_ERROR_BASE+29)
66 #define CM_ERROR_CLOCKSKEW              (CM_ERROR_BASE+31)
67 #define CM_ERROR_BADSMB                 (CM_ERROR_BASE+32)
68 #define CM_ERROR_ALLBUSY                (CM_ERROR_BASE+33)
69 #define CM_ERROR_NOFILES                (CM_ERROR_BASE+34)
70 #define CM_ERROR_PARTIALWRITE           (CM_ERROR_BASE+35)
71 #define CM_ERROR_NOIPC                  (CM_ERROR_BASE+36)
72 #define CM_ERROR_BADNTFILENAME          (CM_ERROR_BASE+37)
73 #define CM_ERROR_BUFFERTOOSMALL         (CM_ERROR_BASE+38)
74 #define CM_ERROR_RENAME_IDENTICAL       (CM_ERROR_BASE+39)
75 #define CM_ERROR_ALLOFFLINE             (CM_ERROR_BASE+40)
76 #define CM_ERROR_AMBIGUOUS_FILENAME     (CM_ERROR_BASE+41)
77 #define CM_ERROR_BADLOGONTYPE           (CM_ERROR_BASE+42)
78 #define CM_ERROR_GSSCONTINUE            (CM_ERROR_BASE+43)
79 #define CM_ERROR_TIDIPC                 (CM_ERROR_BASE+44)
80 #define CM_ERROR_TOO_MANY_SYMLINKS      (CM_ERROR_BASE+45)
81 #define CM_ERROR_PATH_NOT_COVERED       (CM_ERROR_BASE+46)
82 #define CM_ERROR_LOCK_CONFLICT          (CM_ERROR_BASE+47)
83 #define CM_ERROR_SHARING_VIOLATION      (CM_ERROR_BASE+48)
84 #define CM_ERROR_ALLDOWN                (CM_ERROR_BASE+49)
85 #define CM_ERROR_TOOFEWBUFS             (CM_ERROR_BASE+50)
86 #define CM_ERROR_TOOMANYBUFS            (CM_ERROR_BASE+51)
87 #define CM_ERROR_BAD_LEVEL              (CM_ERROR_BASE+52)
88 #define CM_ERROR_NOT_A_DFSLINK          (CM_ERROR_BASE+53)
89 #define CM_ERROR_INEXACT_MATCH          (CM_ERROR_BASE+54)
90 #define CM_ERROR_BPLUS_NOMATCH          (CM_ERROR_BASE+55)
91 #define CM_ERROR_EAS_NOT_SUPPORTED      (CM_ERROR_BASE+56)
92 #define CM_ERROR_RANGE_NOT_LOCKED       (CM_ERROR_BASE+57)
93 #define CM_ERROR_NOSUCHDEVICE           (CM_ERROR_BASE+58)
94 #define CM_ERROR_LOCK_NOT_GRANTED       (CM_ERROR_BASE+59)
95
96 /* Used by cm_FollowMountPoint and cm_GetVolumeByName */
97 #define RWVOL   0
98 #define ROVOL   1
99 #define BACKVOL 2
100 #endif /*  __CM_H_ENV__ */