This file is indexed.

/usr/src/openafs-1.6.1/include/ubik_int.h is in openafs-modules-dkms 1.6.1-1.

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
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
/* Machine generated file -- Do NOT edit */

#ifndef	_RXGEN_UBIK_INT_
#define	_RXGEN_UBIK_INT_

#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"
#include "rx/rx_globals.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"
#include "rx/rx_globals.h"
#else	/* KERNEL */
#include <afs/param.h>
#include <afs/stds.h>
#include <sys/types.h>
#include <rx/xdr.h>
#include <rx/rx.h>
#include <rx/rx_globals.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 */


struct BDesc {
	afs_int32 host;
	short portal;
	afs_int32 session;
};
typedef struct BDesc BDesc;
bool_t xdr_BDesc(XDR *xdrs, BDesc *objp);


struct ubik_version {
	afs_int32 epoch;
	afs_int32 counter;
};
typedef struct ubik_version ubik_version;
bool_t xdr_ubik_version(XDR *xdrs, ubik_version *objp);


struct ubik_tid {
	afs_int32 epoch;
	afs_int32 counter;
};
typedef struct ubik_tid ubik_tid;
bool_t xdr_ubik_tid(XDR *xdrs, ubik_tid *objp);

#define UBIK_MAX_INTERFACE_ADDR 256

struct ubik_debug {
	afs_int32 now;
	afs_int32 lastYesTime;
	afs_int32 lastYesHost;
	afs_int32 lastYesState;
	afs_int32 lastYesClaim;
	afs_int32 lowestHost;
	afs_int32 lowestTime;
	afs_int32 syncHost;
	afs_int32 syncTime;
	struct ubik_version syncVersion;
	struct ubik_tid syncTid;
	afs_int32 amSyncSite;
	afs_int32 syncSiteUntil;
	afs_int32 nServers;
	afs_int32 lockedPages;
	afs_int32 writeLockedPages;
	struct ubik_version localVersion;
	afs_int32 activeWrite;
	afs_int32 tidCounter;
	afs_int32 anyReadLocks;
	afs_int32 anyWriteLocks;
	afs_int32 recoveryState;
	afs_int32 currentTrans;
	afs_int32 writeTrans;
	afs_int32 epochTime;
	afs_int32 interfaceAddr[UBIK_MAX_INTERFACE_ADDR];
};
typedef struct ubik_debug ubik_debug;
bool_t xdr_ubik_debug(XDR *xdrs, ubik_debug *objp);


struct ubik_sdebug {
	afs_int32 addr;
	afs_int32 lastVoteTime;
	afs_int32 lastBeaconSent;
	afs_int32 lastVote;
	struct ubik_version remoteVersion;
	afs_int32 currentDB;
	afs_int32 beaconSinceDown;
	afs_int32 up;
	afs_int32 altAddr[255];
};
typedef struct ubik_sdebug ubik_sdebug;
bool_t xdr_ubik_sdebug(XDR *xdrs, ubik_sdebug *objp);


struct ubik_debug_old {
	afs_int32 now;
	afs_int32 lastYesTime;
	afs_int32 lastYesHost;
	afs_int32 lastYesState;
	afs_int32 lastYesClaim;
	afs_int32 lowestHost;
	afs_int32 lowestTime;
	afs_int32 syncHost;
	afs_int32 syncTime;
	struct ubik_version syncVersion;
	struct ubik_tid syncTid;
	afs_int32 amSyncSite;
	afs_int32 syncSiteUntil;
	afs_int32 nServers;
	afs_int32 lockedPages;
	afs_int32 writeLockedPages;
	struct ubik_version localVersion;
	afs_int32 activeWrite;
	afs_int32 tidCounter;
	afs_int32 anyReadLocks;
	afs_int32 anyWriteLocks;
	afs_int32 recoveryState;
	afs_int32 currentTrans;
	afs_int32 writeTrans;
	afs_int32 epochTime;
};
typedef struct ubik_debug_old ubik_debug_old;
bool_t xdr_ubik_debug_old(XDR *xdrs, ubik_debug_old *objp);


struct ubik_sdebug_old {
	afs_int32 addr;
	afs_int32 lastVoteTime;
	afs_int32 lastBeaconSent;
	afs_int32 lastVote;
	struct ubik_version remoteVersion;
	afs_int32 currentDB;
	afs_int32 beaconSinceDown;
	afs_int32 up;
};
typedef struct ubik_sdebug_old ubik_sdebug_old;
bool_t xdr_ubik_sdebug_old(XDR *xdrs, ubik_sdebug_old *objp);


struct UbikInterfaceAddr {
	afs_int32 hostAddr[UBIK_MAX_INTERFACE_ADDR];
};
typedef struct UbikInterfaceAddr UbikInterfaceAddr;
bool_t xdr_UbikInterfaceAddr(XDR *xdrs, UbikInterfaceAddr *objp);

#define BULK_ERROR 1

typedef struct bulkdata {
	u_int bulkdata_len;
	char *bulkdata_val;
} bulkdata;
bool_t xdr_bulkdata(XDR *xdrs, bulkdata *objp);

#define IOVEC_MAXBUF 65536
#define IOVEC_MAXWRT 64

typedef struct iovec_buf {
	u_int iovec_buf_len;
	char *iovec_buf_val;
} iovec_buf;
bool_t xdr_iovec_buf(XDR *xdrs, iovec_buf *objp);


struct ubik_iovec {
	afs_int32 file;
	afs_int32 position;
	afs_int32 length;
};
typedef struct ubik_iovec ubik_iovec;
bool_t xdr_ubik_iovec(XDR *xdrs, ubik_iovec *objp);


typedef struct iovec_wrt {
	u_int iovec_wrt_len;
	ubik_iovec *iovec_wrt_val;
} iovec_wrt;
bool_t xdr_iovec_wrt(XDR *xdrs, iovec_wrt *objp);

#define VOTE_STATINDEX 11

#include <rx/rx_multi.h>
#define multi_VOTE_Beacon(state, voteStart, Version, tid) \
	multi_Body(StartVOTE_Beacon(multi_call, state, voteStart, Version, tid), EndVOTE_Beacon(multi_call))


extern int StartVOTE_Beacon(
	/*IN */ struct rx_call *z_call,
	/*IN */ afs_int32 state,
	/*IN */ afs_int32 voteStart,
	/*IN */ ubik_version * Version,
	/*IN */ ubik_tid * tid);

extern int EndVOTE_Beacon(
	/*IN */ struct rx_call *z_call);

extern int VOTE_Beacon(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ afs_int32 state,
	/*IN */ afs_int32 voteStart,
	/*IN */ ubik_version * Version,
	/*IN */ ubik_tid * tid);

extern afs_int32 SVOTE_Beacon(
	/*IN */ struct rx_call *z_call,
	/*IN */ afs_int32 state,
	/*IN */ afs_int32 voteStart,
	/*IN */ ubik_version * Version,
	/*IN */ ubik_tid * tid);

extern int VOTE_DebugOld(
	/*IN */ struct rx_connection *z_conn,
	/*OUT*/ ubik_debug_old * db);

extern afs_int32 SVOTE_DebugOld(
	/*IN */ struct rx_call *z_call,
	/*OUT*/ ubik_debug_old * db);

extern int VOTE_SDebugOld(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ afs_int32 which,
	/*OUT*/ ubik_sdebug_old * db);

extern afs_int32 SVOTE_SDebugOld(
	/*IN */ struct rx_call *z_call,
	/*IN */ afs_int32 which,
	/*OUT*/ ubik_sdebug_old * db);

extern int VOTE_GetSyncSite(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ afs_int32 * site);

extern afs_int32 SVOTE_GetSyncSite(
	/*IN */ struct rx_call *z_call,
	/*IN */ afs_int32 * site);

extern int VOTE_Debug(
	/*IN */ struct rx_connection *z_conn,
	/*OUT*/ ubik_debug * db);

extern afs_int32 SVOTE_Debug(
	/*IN */ struct rx_call *z_call,
	/*OUT*/ ubik_debug * db);

extern int VOTE_SDebug(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ afs_int32 which,
	/*OUT*/ ubik_sdebug * db);

extern afs_int32 SVOTE_SDebug(
	/*IN */ struct rx_call *z_call,
	/*IN */ afs_int32 which,
	/*OUT*/ ubik_sdebug * db);

extern int VOTE_XDebug(
	/*IN */ struct rx_connection *z_conn,
	/*OUT*/ ubik_debug * db,
	/*OUT*/ afs_int32 * isClone);

extern afs_int32 SVOTE_XDebug(
	/*IN */ struct rx_call *z_call,
	/*OUT*/ ubik_debug * db,
	/*OUT*/ afs_int32 * isClone);

extern int VOTE_XSDebug(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ afs_int32 which,
	/*OUT*/ ubik_sdebug * db,
	/*OUT*/ afs_int32 * isClone);

extern afs_int32 SVOTE_XSDebug(
	/*IN */ struct rx_call *z_call,
	/*IN */ afs_int32 which,
	/*OUT*/ ubik_sdebug * db,
	/*OUT*/ afs_int32 * isClone);
#define DISK_STATINDEX 12

extern int DISK_Begin(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ ubik_tid * tid);

extern afs_int32 SDISK_Begin(
	/*IN */ struct rx_call *z_call,
	/*IN */ ubik_tid * tid);

extern int DISK_Commit(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ ubik_tid * tid);

extern afs_int32 SDISK_Commit(
	/*IN */ struct rx_call *z_call,
	/*IN */ ubik_tid * tid);

extern int DISK_Lock(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ ubik_tid * tid,
	/*IN */ afs_int32 file,
	/*IN */ afs_int32 position,
	/*IN */ afs_int32 length,
	/*IN */ afs_int32 type);

extern afs_int32 SDISK_Lock(
	/*IN */ struct rx_call *z_call,
	/*IN */ ubik_tid * tid,
	/*IN */ afs_int32 file,
	/*IN */ afs_int32 position,
	/*IN */ afs_int32 length,
	/*IN */ afs_int32 type);

extern int DISK_Write(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ ubik_tid * tid,
	/*IN */ afs_int32 file,
	/*IN */ afs_int32 position,
	/*IN */ bulkdata * data);

extern afs_int32 SDISK_Write(
	/*IN */ struct rx_call *z_call,
	/*IN */ ubik_tid * tid,
	/*IN */ afs_int32 file,
	/*IN */ afs_int32 position,
	/*IN */ bulkdata * data);

extern int DISK_GetVersion(
	/*IN */ struct rx_connection *z_conn,
	/*OUT*/ ubik_version * Version);

extern afs_int32 SDISK_GetVersion(
	/*IN */ struct rx_call *z_call,
	/*OUT*/ ubik_version * Version);

extern int StartDISK_GetFile(
	/*IN */ struct rx_call *z_call,
	/*IN */ afs_int32 file);

extern int EndDISK_GetFile(
	/*IN */ struct rx_call *z_call,
	/*OUT*/ ubik_version * Version);

extern afs_int32 SDISK_GetFile(
	/*IN */ struct rx_call *z_call,
	/*IN */ afs_int32 file,
	/*OUT*/ ubik_version * Version);

extern int StartDISK_SendFile(
	/*IN */ struct rx_call *z_call,
	/*IN */ afs_int32 file,
	/*IN */ afs_int32 length,
	/*IN */ ubik_version * Version);

extern int EndDISK_SendFile(
	/*IN */ struct rx_call *z_call);

extern afs_int32 SDISK_SendFile(
	/*IN */ struct rx_call *z_call,
	/*IN */ afs_int32 file,
	/*IN */ afs_int32 length,
	/*IN */ ubik_version * Version);

extern int DISK_Abort(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ ubik_tid * tid);

extern afs_int32 SDISK_Abort(
	/*IN */ struct rx_call *z_call,
	/*IN */ ubik_tid * tid);

extern int DISK_ReleaseLocks(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ ubik_tid * tid);

extern afs_int32 SDISK_ReleaseLocks(
	/*IN */ struct rx_call *z_call,
	/*IN */ ubik_tid * tid);

extern int DISK_Truncate(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ ubik_tid * tid,
	/*IN */ afs_int32 file,
	/*IN */ afs_int32 length);

extern afs_int32 SDISK_Truncate(
	/*IN */ struct rx_call *z_call,
	/*IN */ ubik_tid * tid,
	/*IN */ afs_int32 file,
	/*IN */ afs_int32 length);

#define multi_DISK_Probe() \
	multi_Body(StartDISK_Probe(multi_call), EndDISK_Probe(multi_call))


extern int StartDISK_Probe(
	/*IN */ struct rx_call *z_call);

extern int EndDISK_Probe(
	/*IN */ struct rx_call *z_call);

extern int DISK_Probe(
	/*IN */ struct rx_connection *z_conn);

extern afs_int32 SDISK_Probe(
	/*IN */ struct rx_call *z_call);

extern int DISK_WriteV(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ ubik_tid * tid,
	/*IN */ iovec_wrt * io_vector,
	/*IN */ iovec_buf * io_buffer);

extern afs_int32 SDISK_WriteV(
	/*IN */ struct rx_call *z_call,
	/*IN */ ubik_tid * tid,
	/*IN */ iovec_wrt * io_vector,
	/*IN */ iovec_buf * io_buffer);

#define multi_DISK_UpdateInterfaceAddr(inAddr, outAddr) \
	multi_Body(StartDISK_UpdateInterfaceAddr(multi_call, inAddr), EndDISK_UpdateInterfaceAddr(multi_call, outAddr))


extern int StartDISK_UpdateInterfaceAddr(
	/*IN */ struct rx_call *z_call,
	/*IN */ UbikInterfaceAddr * inAddr);

extern int EndDISK_UpdateInterfaceAddr(
	/*IN */ struct rx_call *z_call,
	/*OUT*/ UbikInterfaceAddr * outAddr);

extern int DISK_UpdateInterfaceAddr(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ UbikInterfaceAddr * inAddr,
	/*OUT*/ UbikInterfaceAddr * outAddr);

extern afs_int32 SDISK_UpdateInterfaceAddr(
	/*IN */ struct rx_call *z_call,
	/*IN */ UbikInterfaceAddr * inAddr,
	/*OUT*/ UbikInterfaceAddr * outAddr);

extern int DISK_SetVersion(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ ubik_tid * tid,
	/*IN */ ubik_version * OldVersion,
	/*IN */ ubik_version * NewVersion);

extern afs_int32 SDISK_SetVersion(
	/*IN */ struct rx_call *z_call,
	/*IN */ ubik_tid * tid,
	/*IN */ ubik_version * OldVersion,
	/*IN */ ubik_version * NewVersion);

extern int VOTE_ExecuteRequest(struct rx_call *);

extern int DISK_ExecuteRequest(struct rx_call *);

/* Opcode-related useful stats for package: VOTE_ */
#define VOTE_LOWEST_OPCODE   10000
#define VOTE_HIGHEST_OPCODE	10007
#define VOTE_NUMBER_OPCODES	8

#define VOTE_NO_OF_STAT_FUNCS	8

AFS_RXGEN_EXPORT
extern const char *VOTE_function_names[];


/* Opcode-related useful stats for package: DISK_ */
#define DISK_LOWEST_OPCODE   20000
#define DISK_HIGHEST_OPCODE	20013
#define DISK_NUMBER_OPCODES	14

#define DISK_NO_OF_STAT_FUNCS	14

AFS_RXGEN_EXPORT
extern const char *DISK_function_names[];

#endif	/* _RXGEN_UBIK_INT_ */