/usr/include/afs/afs_utilAdmin.h is in libopenafs-dev 1.6.15-1ubuntu1.
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 | /*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
*
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
*/
#ifndef OPENAFS_UTIL_ADMIN_H
#define OPENAFS_UTIL_ADMIN_H
#include <afs/afs_Admin.h>
#include <afs/afs_AdminErrors.h>
#define UTIL_MAX_DATABASE_SERVER_NAME 64
#define UTIL_MAX_CELL_NAME_LEN 256
#define UTIL_MAX_CELL_HOSTS 8
#define UTIL_MAX_RXDEBUG_VERSION_LEN 64
typedef struct util_databaseServerEntry {
int serverAddress;
char serverName[UTIL_MAX_DATABASE_SERVER_NAME];
} util_databaseServerEntry_t, *util_databaseServerEntry_p;
extern int ADMINAPI util_AdminErrorCodeTranslate(afs_status_t errorCode,
int langId,
const char **errorTextP,
afs_status_p st);
extern int ADMINAPI util_DatabaseServerGetBegin(const char *cellName,
void **iterationIdP,
afs_status_p st);
extern int ADMINAPI util_DatabaseServerGetNext(const void *iterationId,
util_databaseServerEntry_p
serverP, afs_status_p st);
extern int ADMINAPI util_DatabaseServerGetDone(const void *iterationId,
afs_status_p st);
extern int ADMINAPI util_AdminServerAddressGetFromName(const char *serverName,
int *serverAddress,
afs_status_p st);
extern int ADMINAPI CellHandleIsValid(const void *cellHandle,
afs_status_p st);
struct rpcStats;
extern int ADMINAPI util_RPCStatsGetBegin(struct rx_connection *conn,
int (*rpc) (struct rx_connection *,
afs_uint32, afs_uint32 *,
afs_uint32 *, afs_uint32 *,
afs_uint32 *,
struct rpcStats *),
void **iterationIdP,
afs_status_p st);
extern int ADMINAPI util_RPCStatsGetNext(const void *iterationId,
afs_RPCStats_p stats,
afs_status_p st);
extern int ADMINAPI util_RPCStatsGetDone(const void *iterationId,
afs_status_p st);
extern int ADMINAPI util_RPCStatsStateGet(struct rx_connection *conn,
int (*rpc) (struct rx_connection *,
afs_RPCStatsState_p),
afs_RPCStatsState_p state,
afs_status_p st);
extern int ADMINAPI util_RPCStatsStateEnable(struct rx_connection *conn,
int (*rpc) (struct rx_connection *),
afs_status_p st);
extern int ADMINAPI util_RPCStatsStateDisable(struct rx_connection *conn,
int (*rpc) (struct rx_connection *),
afs_status_p st);
extern int ADMINAPI util_RPCStatsClear(struct rx_connection *conn,
int (*rpc) (struct rx_connection *,
afs_RPCStatsClearFlag_t),
afs_RPCStatsClearFlag_t flag,
afs_status_p st);
extern int ADMINAPI util_RPCStatsVersionGet(struct rx_connection *conn,
afs_RPCStatsVersion_p version,
afs_status_p st);
typedef struct afs_CMServerPref {
afs_int32 ipAddr;
afs_int32 ipRank;
} afs_CMServerPref_t, *afs_CMServerPref_p;
extern int ADMINAPI util_CMGetServerPrefsBegin(struct rx_connection *conn,
void **iterationIdP,
afs_status_p st);
extern int ADMINAPI util_CMGetServerPrefsNext(const void *iterationId,
afs_CMServerPref_p prefs,
afs_status_p st);
extern int ADMINAPI util_CMGetServerPrefsDone(const void *iterationId,
afs_status_p st);
typedef struct afs_CMListCell {
char cellname[UTIL_MAX_CELL_NAME_LEN];
afs_int32 serverAddr[UTIL_MAX_CELL_HOSTS];
} afs_CMListCell_t, *afs_CMListCell_p;
extern int ADMINAPI util_CMListCellsBegin(struct rx_connection *conn,
void **iterationIdP,
afs_status_p st);
extern int ADMINAPI util_CMListCellsNext(const void *iterationId,
afs_CMListCell_p prefs,
afs_status_p st);
extern int ADMINAPI util_CMListCellsDone(const void *iterationId,
afs_status_p st);
typedef char afs_CMCellName_t[UTIL_MAX_CELL_NAME_LEN], *afs_CMCellName_p;
extern int ADMINAPI util_CMLocalCell(struct rx_connection *conn,
afs_CMCellName_p cellName,
afs_status_p st);
extern int ADMINAPI util_CMClientConfig(struct rx_connection *conn,
afs_ClientConfig_p config,
afs_status_p st);
typedef char rxdebugVersion_t[UTIL_MAX_RXDEBUG_VERSION_LEN],
*rxdebugVersion_p;
extern int ADMINAPI util_RXDebugVersion(rxdebugHandle_p handle,
rxdebugVersion_p version,
afs_status_p st);
extern int ADMINAPI util_RXDebugSupportedStats(rxdebugHandle_p handle,
afs_uint32 * supportedStats,
afs_status_p st);
extern int ADMINAPI util_RXDebugBasicStats(rxdebugHandle_p handle,
struct rx_debugStats *stats,
afs_status_p st);
extern int ADMINAPI util_RXDebugRxStats(rxdebugHandle_p handle,
struct rx_statistics *stats,
afs_uint32 * supportedStats,
afs_status_p st);
extern int ADMINAPI util_RXDebugConnectionsBegin(rxdebugHandle_p handle,
int allconns,
void **iterationIdP,
afs_status_p st);
extern int ADMINAPI util_RXDebugConnectionsNext(const void *iterationId,
struct rx_debugConn *conn,
afs_uint32 * supportedValues,
afs_status_p st);
extern int ADMINAPI util_RXDebugConnectionsDone(const void *iterationId,
afs_status_p st);
extern int ADMINAPI util_RXDebugPeersBegin(rxdebugHandle_p handle,
void **iterationIdP,
afs_status_p st);
extern int ADMINAPI util_RXDebugPeersNext(const void *iterationId,
struct rx_debugPeer *peer,
afs_uint32 * supportedValues,
afs_status_p st);
extern int ADMINAPI util_RXDebugPeersDone(const void *iterationId,
afs_status_p st);
#endif /* OPENAFS_UTIL_ADMIN_H */
|