Initial IBM OpenAFS 1.0 tree
[openafs.git] / src / WINNT / afsd / smb_iocons.h
1 /* 
2  * Copyright (C) 1998, 1989 Transarc Corporation - All rights reserved
3  *
4  * (C) COPYRIGHT IBM CORPORATION 1987, 1988
5  * LICENSED MATERIALS - PROPERTY OF IBM
6  *
7  *
8  */
9 #ifndef __SMB_IOCONS_H_ENV_
10 #define __SMB_IOCONS_H_ENV_ 1
11
12 /* included in both AFSD and fs commands */
13
14 typedef struct chservinfo {
15         int magic;
16         char tbuffer[128];
17         int tsize;
18         long tinterval;
19         long tflags;
20 } chservinfo_t;
21
22 struct gaginfo {
23         unsigned long showflags, logflags, logwritethruflag, spare[3];
24         unsigned char spare2[128];
25 };
26
27 #define GAGUSER         1
28 #define GAGCONSOLE      2
29
30 struct ClearToken {
31         int AuthHandle;
32         char HandShakeKey[8];
33         int ViceId;
34         int BeginTimestamp;
35         int EndTimestamp;
36 };
37
38 struct sbstruct {
39         int sb_thisfile;
40         int sb_default;
41 };
42
43 #define CM_IOCTLCACHEPARMS              16
44 typedef struct cm_cacheParms {
45         long parms[CM_IOCTLCACHEPARMS];
46 } cm_cacheParms_t;
47
48 /* set cell flags */
49 #define CM_SETCELLFLAG_SUID             2
50
51 #define VIOC_FILE_CELL_NAME             0x1
52 #define VIOCGETAL                       0x2
53 #define VIOCSETAL                       0x3
54 #define VIOC_FLUSHVOLUME                0x4
55 #define VIOCFLUSH                       0x5
56 #define VIOCSETVOLSTAT                  0x6
57 #define VIOCGETVOLSTAT                  0x7
58 #define VIOCWHEREIS                     0x8
59 #define VIOC_AFS_STAT_MT_PT             0x9
60 #define VIOC_AFS_DELETE_MT_PT           0xa
61 #define VIOCCKSERV                      0xb
62 #define VIOC_GAG                        0xc
63 #define VIOCCKBACK                      0xd
64 #define VIOCSETCACHESIZE                0xe
65 #define VIOCGETCACHEPARMS               0xf
66 #define VIOCGETCELL                     0x10
67 #define VIOCNEWCELL                     0x11
68 #define VIOC_GET_WS_CELL                0x12
69 #define VIOC_AFS_MARINER_HOST           0x13
70 #define VIOC_AFS_SYSNAME                0x14
71 #define VIOC_EXPORTAFS                  0x15
72 #define VIOC_GETCELLSTATUS              0x16
73 #define VIOC_SETCELLSTATUS              0x17
74 #define VIOC_SETSPREFS                  0x18
75 #define VIOC_GETSPREFS                  0x19
76 #define VIOC_STOREBEHIND                0x1a
77 #define VIOC_AFS_CREATE_MT_PT           0x1b
78 #define VIOC_TRACECTL                   0x1c
79 #define VIOCSETTOK                      0x1d
80 #define VIOCGETTOK                      0x1e
81 #define VIOCNEWGETTOK                   0x1f
82 #define VIOCDELTOK                      0x20
83 #define VIOCDELALLTOK                   0x21
84
85 #define VIOC_SYMLINK                    0x23
86 #define VIOC_LISTSYMLINK                0x24
87 #define VIOC_DELSYMLINK                 0x25
88 #define VIOC_MAKESUBMOUNT               0x26
89
90 #endif /*  __SMB_IOCONS_H_ENV_ */