This file is indexed.

/usr/include/afs/butc.h is in libopenafs-dev 1.6.20-2+deb9u2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
/* Machine generated file -- Do NOT edit */

#ifndef	_RXGEN_BUTC_
#define	_RXGEN_BUTC_

#ifdef	KERNEL
/* The following 'ifndefs' are not a good solution to the vendor's omission of surrounding all system includes with 'ifndef's since it requires that this file is included after the system includes...*/
#include <afsconfig.h>
#include "afs/param.h"
#ifdef	UKERNEL
#include "afs/sysincludes.h"
#include "rx/xdr.h"
#include "rx/rx.h"
#else	/* UKERNEL */
#include "h/types.h"
#ifndef	SOCK_DGRAM  /* XXXXX */
#include "h/socket.h"
#endif
struct ubik_client;
#ifndef	DTYPE_SOCKET  /* XXXXX */
#ifndef AFS_LINUX22_ENV
#include "h/file.h"
#endif
#endif
#ifndef	S_IFMT  /* XXXXX */
#include "h/stat.h"
#endif
#if defined (AFS_OBSD_ENV) && !defined (MLEN)
#include "sys/mbuf.h"
#endif
#ifndef	IPPROTO_UDP /* XXXXX */
#include "netinet/in.h"
#endif
#ifndef	DST_USA  /* XXXXX */
#include "h/time.h"
#endif
#ifndef AFS_LINUX22_ENV
#include "rpc/types.h"
#endif /* AFS_LINUX22_ENV */
#ifndef	XDR_GETLONG /* XXXXX */
#ifdef AFS_LINUX22_ENV
#ifndef quad_t
#define quad_t __quad_t
#define u_quad_t __u_quad_t
#endif
#endif
#include "rx/xdr.h"
#endif /* XDR_GETLONG */
#endif   /* UKERNEL */
#include "afs/rxgen_consts.h"
#include "afs_osi.h"
#include "rx/rx.h"
#else	/* KERNEL */
#include <afs/param.h>
#include <afs/stds.h>
#include <sys/types.h>
#include <rx/xdr.h>
#include <rx/rx.h>
#include <afs/rxgen_consts.h>
#endif	/* KERNEL */

#ifdef AFS_NT40_ENV
#ifndef AFS_RXGEN_EXPORT
#define AFS_RXGEN_EXPORT __declspec(dllimport)
#endif /* AFS_RXGEN_EXPORT */
#else /* AFS_NT40_ENV */
#define AFS_RXGEN_EXPORT
#endif /* AFS_NT40_ENV */

#define TC_STATINDEX 4
#define TC_MAXDUMPPATH 256
#define TC_MAXNAMELEN 64
#define TC_MAXARRAY 2000000000
#define TC_MAXFORMATLEN 100
#define TC_MAXHOSTLEN 32
#define TC_MAXTAPELEN 32

struct tc_dumpDesc {
	afs_int32 vid;
	afs_int32 vtype;
	char name[TC_MAXNAMELEN];
	afs_int32 partition;
	afs_int32 date;
	afs_int32 cloneDate;
	afs_uint32 hostAddr;
};
typedef struct tc_dumpDesc tc_dumpDesc;
bool_t xdr_tc_dumpDesc(XDR *xdrs, tc_dumpDesc *objp);

#define RDFLAG_LASTDUMP 0x1
#define RDFLAG_SKIP 0x2
#define RDFLAG_FIRSTDUMP 0x4

struct tc_restoreDesc {
	afs_int32 flags;
	char tapeName[TC_MAXTAPELEN];
	afs_uint32 dbDumpId;
	afs_uint32 initialDumpId;
	afs_int32 position;
	afs_int32 origVid;
	afs_int32 vid;
	afs_int32 partition;
	afs_int32 dumpLevel;
	afs_uint32 hostAddr;
	char oldName[TC_MAXNAMELEN];
	char newName[TC_MAXNAMELEN];
};
typedef struct tc_restoreDesc tc_restoreDesc;
bool_t xdr_tc_restoreDesc(XDR *xdrs, tc_restoreDesc *objp);


struct tc_dumpStat {
	afs_int32 dumpID;
	afs_uint32 KbytesDumped;
	afs_uint32 bytesDumped;
	afs_int32 volumeBeingDumped;
	afs_int32 numVolErrs;
	afs_int32 flags;
};
typedef struct tc_dumpStat tc_dumpStat;
bool_t xdr_tc_dumpStat(XDR *xdrs, tc_dumpStat *objp);


struct tc_tapeLabel {
	afs_int32 size;
	char afsname[TC_MAXTAPELEN];
	char pname[TC_MAXTAPELEN];
	afs_uint32 tapeId;
};
typedef struct tc_tapeLabel tc_tapeLabel;
bool_t xdr_tc_tapeLabel(XDR *xdrs, tc_tapeLabel *objp);


struct tc_TMInfo {
	afs_int32 capacity;
	afs_int32 flags;
};
typedef struct tc_TMInfo tc_TMInfo;
bool_t xdr_tc_TMInfo(XDR *xdrs, tc_TMInfo *objp);


struct tc_tapeSet {
	afs_int32 id;
	char tapeServer[TC_MAXHOSTLEN];
	char format[TC_MAXFORMATLEN];
	int maxTapes;
	afs_int32 a;
	afs_int32 b;
	afs_int32 expDate;
	afs_int32 expType;
};
typedef struct tc_tapeSet tc_tapeSet;
bool_t xdr_tc_tapeSet(XDR *xdrs, tc_tapeSet *objp);


struct tc_tcInfo {
	afs_int32 tcVersion;
};
typedef struct tc_tcInfo tc_tcInfo;
bool_t xdr_tc_tcInfo(XDR *xdrs, tc_tcInfo *objp);

#define TC_STAT_DONE 1
#define TC_STAT_OPRWAIT 2
#define TC_STAT_DUMP 4
#define TC_STAT_ABORTED 8
#define TC_STAT_ERROR 16
#define TSK_STAT_FIRST 0x1 /* get id of first task */
#define TSK_STAT_END 0x2 /* no more tasks */
#define TSK_STAT_NOTFOUND 0x4 /* couldn't find task id requested */
#define TSK_STAT_XBSA 0x10 /* An XBSA server */
#define TSK_STAT_ADSM 0x20 /* An ADSM XBSA server */

typedef struct tc_dumpArray {
	u_int tc_dumpArray_len;
	tc_dumpDesc *tc_dumpArray_val;
} tc_dumpArray;
bool_t xdr_tc_dumpArray(XDR *xdrs, tc_dumpArray *objp);


typedef struct tc_restoreArray {
	u_int tc_restoreArray_len;
	tc_restoreDesc *tc_restoreArray_val;
} tc_restoreArray;
bool_t xdr_tc_restoreArray(XDR *xdrs, tc_restoreArray *objp);


struct tc_dumpInterface {
	char dumpPath[TC_MAXDUMPPATH];
	char volumeSetName[TC_MAXNAMELEN];
	char dumpName[TC_MAXNAMELEN];
	struct tc_tapeSet tapeSet;
	afs_int32 parentDumpId;
	afs_int32 dumpLevel;
	int doAppend;
};
typedef struct tc_dumpInterface tc_dumpInterface;
bool_t xdr_tc_dumpInterface(XDR *xdrs, tc_dumpInterface *objp);


struct tciStatusS {
	char taskName[TC_MAXNAMELEN];
	afs_uint32 taskId;
	afs_uint32 flags;
	afs_uint32 dbDumpId;
	afs_uint32 nKBytes;
	char volumeName[TC_MAXNAMELEN];
	afs_int32 volsFailed;
	afs_int32 lastPolled;
};
typedef struct tciStatusS tciStatusS;
bool_t xdr_tciStatusS(XDR *xdrs, tciStatusS *objp);


extern int TC_PerformDump(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ struct tc_dumpInterface * tcdiPtr,
	/*IN */ tc_dumpArray * dumps,
	/*OUT*/ afs_int32 * dumpID);

extern afs_int32 STC_PerformDump(
	/*IN */ struct rx_call *z_call,
	/*IN */ struct tc_dumpInterface * tcdiPtr,
	/*IN */ tc_dumpArray * dumps,
	/*OUT*/ afs_int32 * dumpID);

extern int TC_PerformRestore(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ char * dumpSetName,
	/*IN */ tc_restoreArray * restores,
	/*OUT*/ afs_int32 * dumpID);

extern afs_int32 STC_PerformRestore(
	/*IN */ struct rx_call *z_call,
	/*IN */ char * dumpSetName,
	/*IN */ tc_restoreArray * restores,
	/*OUT*/ afs_int32 * dumpID);

extern int TC_LabelTape(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ struct tc_tapeLabel * label,
	/*OUT*/ afs_uint32 * taskId);

extern afs_int32 STC_LabelTape(
	/*IN */ struct rx_call *z_call,
	/*IN */ struct tc_tapeLabel * label,
	/*OUT*/ afs_uint32 * taskId);

extern int TC_ReadLabel(
	/*IN */ struct rx_connection *z_conn,
	/*OUT*/ struct tc_tapeLabel * label,
	/*OUT*/ afs_uint32 * taskId);

extern afs_int32 STC_ReadLabel(
	/*IN */ struct rx_call *z_call,
	/*OUT*/ struct tc_tapeLabel * label,
	/*OUT*/ afs_uint32 * taskId);

extern int TC_ScanDumps(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ afs_int32 addDbFlag,
	/*OUT*/ afs_uint32 * taskId);

extern afs_int32 STC_ScanDumps(
	/*IN */ struct rx_call *z_call,
	/*IN */ afs_int32 addDbFlag,
	/*OUT*/ afs_uint32 * taskId);

extern int TC_TCInfo(
	/*IN */ struct rx_connection *z_conn,
	/*OUT*/ struct tc_tcInfo * tciptr);

extern afs_int32 STC_TCInfo(
	/*IN */ struct rx_call *z_call,
	/*OUT*/ struct tc_tcInfo * tciptr);

extern int TC_SaveDb(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ afs_uint32 archiveTime,
	/*OUT*/ afs_uint32 * taskId);

extern afs_int32 STC_SaveDb(
	/*IN */ struct rx_call *z_call,
	/*IN */ afs_uint32 archiveTime,
	/*OUT*/ afs_uint32 * taskId);

extern int TC_RestoreDb(
	/*IN */ struct rx_connection *z_conn,
	/*OUT*/ afs_uint32 * taskId);

extern afs_int32 STC_RestoreDb(
	/*IN */ struct rx_call *z_call,
	/*OUT*/ afs_uint32 * taskId);

extern int TC_EndStatus(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ afs_uint32 taskId);

extern afs_int32 STC_EndStatus(
	/*IN */ struct rx_call *z_call,
	/*IN */ afs_uint32 taskId);

extern int TC_GetStatus(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ afs_uint32 taskId,
	/*OUT*/ struct tciStatusS * statusPtr);

extern afs_int32 STC_GetStatus(
	/*IN */ struct rx_call *z_call,
	/*IN */ afs_uint32 taskId,
	/*OUT*/ struct tciStatusS * statusPtr);

extern int TC_RequestAbort(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ afs_uint32 taskId);

extern afs_int32 STC_RequestAbort(
	/*IN */ struct rx_call *z_call,
	/*IN */ afs_uint32 taskId);

extern int TC_ScanStatus(
	/*IN */ struct rx_connection *z_conn,
	/*I/O*/ afs_uint32 * taskId,
	/*OUT*/ struct tciStatusS * statusPtr,
	/*I/O*/ afs_uint32 * flags);

extern afs_int32 STC_ScanStatus(
	/*IN */ struct rx_call *z_call,
	/*I/O*/ afs_uint32 * taskId,
	/*OUT*/ struct tciStatusS * statusPtr,
	/*I/O*/ afs_uint32 * flags);

extern int TC_DeleteDump(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ afs_uint32 aDumpId,
	/*OUT*/ afs_uint32 * taskId);

extern afs_int32 STC_DeleteDump(
	/*IN */ struct rx_call *z_call,
	/*IN */ afs_uint32 aDumpId,
	/*OUT*/ afs_uint32 * taskId);

extern int TC_ExecuteRequest(struct rx_call *);

/* Opcode-related useful stats for package: TC_ */
#define TC_LOWEST_OPCODE   0
#define TC_HIGHEST_OPCODE	12
#define TC_NUMBER_OPCODES	13

#endif	/* _RXGEN_BUTC_ */