OPENAFS-SA-2016-002 VldbListByAttributes information leak
[openafs.git] / src / libadmin / vos / lockprocs.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 #include <sys/types.h>
11 #ifdef AFS_NT40_ENV
12 #include <winsock2.h>
13 #else
14 #include <netinet/in.h>
15 #endif
16 #include <afs/voldefs.h>
17 #include <rx/xdr.h>
18 #include <rx/rx.h>
19 #include <rx/rxstat.h>
20 #include <afs/vlserver.h>
21 #include <afs/nfs.h>
22 #include <afs/afsint.h>
23 #include <afs/volint.h>
24 #include <afs/volser.h>
25 #include "../../volser/lockdata.h"
26 #include <afs/afs_utilAdmin.h>
27 #include "../adminutil/afs_AdminInternal.h"
28 #include "vosutils.h"
29
30 extern void Lp_SetRWValue(afs_cell_handle_p cellHandle,
31                           struct nvldbentry *entry, afs_int32 oserver,
32                           afs_int32 opart, afs_int32 nserver,
33                           afs_int32 npart);
34
35 extern void Lp_SetROValue(afs_cell_handle_p cellHandle,
36                           struct nvldbentry *entry, afs_int32 oserver,
37                           afs_int32 opart, afs_int32 nserver,
38                           afs_int32 npart);
39
40 extern int Lp_Match(afs_cell_handle_p cellHandle, struct nvldbentry *entry,
41                     afs_int32 server, afs_int32 part, afs_status_p st);
42
43 extern int Lp_ROMatch(afs_cell_handle_p cellHandle, struct nvldbentry *entry,
44                       afs_int32 server, afs_int32 part, afs_status_p st);
45
46 extern int Lp_GetRwIndex(afs_cell_handle_p cellHandle,
47                          struct nvldbentry *entry, afs_status_p st);
48
49 extern void Lp_QInit(struct qHead *ahead);
50
51 extern void Lp_QAdd(struct qHead *ahead, struct aqueue *elem);
52
53 extern int Lp_QScan(struct qHead *ahead, afs_int32 id, int *success,
54                     struct aqueue **elem, afs_status_p st);
55
56 extern void Lp_QEnumerate(struct qHead *ahead, int *success,
57                           struct aqueue *elem, afs_status_p st);