This file is indexed.

/usr/include/dpm/dpm_api.h is in libdpm-dev 1.10.0-2.

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
/*
 * $Id: dpm_api.h 9744 2013-11-27 15:39:45Z dhsmith $
 */

/*
 * Copyright (C) 2004-2011 by CERN/IT/GD/CT
 * All rights reserved
 */

/*
 * @(#)$RCSfile: dpm_api.h,v $ $Revision: 9744 $ $Date: 2013-11-27 16:39:45 +0100 (Wed, 27 Nov 2013) $ CERN IT-GD/CT Jean-Philippe Baud
 */

#ifndef _DPM_API_H
#define _DPM_API_H
#include "dpm_constants.h"
#include "osdep.h"
#include "dpm_struct.h"

int *C__dpm_errno();
#define dpm_errno (*C__dpm_errno())

			/* Disk Pool Manager client structures */

struct dpm_api_thread_info {
	char *		errbufp;
	int		errbuflen;
	int		initialized;
	int		dp_errno;
#ifdef CSEC
	int		use_authorization_id;
	uid_t		Csec_uid;
	gid_t		Csec_gid;
	char		Csec_mech[CA_MAXCSECPROTOLEN+1];
	char		Csec_auth_id[CA_MAXCSECNAMELEN+1];
	int		Csec_opt;
	char		*voname;
	char		**fqan;
	int		nbfqan;
#endif
};

struct dpm_copyfilereq {
	char		*from_surl;
	char		*to_surl;
	time_t		lifetime;
	char		f_type;
	char		s_token[CA_MAXDPMTOKENLEN+1];
	char		ret_policy;
	char		ac_latency;
	int		flags;
};

struct dpm_copyfilestatus {
	char		*from_surl;
	char		*to_surl;
	u_signed64	filesize;
	int		status;
	char		*errstring;
	time_t		f_lifetime;
};

struct dpm_filestatus {
	char		*surl;
	int		status;
	char		*errstring;
};

struct dpm_getfilereq {
	char		*from_surl;
	time_t		lifetime;
	char		f_type;
	char		s_token[CA_MAXDPMTOKENLEN+1];
	char		ret_policy;
	int		flags;
};

struct dpm_getfilestatus {
	char		*from_surl;
	char		*turl;
	u_signed64	filesize;
	int		status;
	char		*errstring;
	time_t		pintime;
};

struct dpm_putfilereq {
	char		*to_surl;
	time_t		lifetime;
	time_t		f_lifetime;
	char		f_type;
	char		s_token[CA_MAXDPMTOKENLEN+1];
	char		ret_policy;
	char		ac_latency;
	u_signed64	requested_size;
};

struct dpm_putfilereqx {
	char		*to_surl;
	time_t		lifetime;
	time_t		f_lifetime;
	char		f_type;
	char		s_token[CA_MAXDPMTOKENLEN+1];
	char		ret_policy;
	char		ac_latency;
	u_signed64	requested_size;
	int		reserved; /* must be zero */
	char		server[CA_MAXHOSTNAMELEN+1];
	char		pfnhint[CA_MAXSFNLEN+1];
};

struct dpm_putfilestatus {
	char		*to_surl;
	char		*turl;
	u_signed64	filesize;
	int		status;
	char		*errstring;
	time_t		pintime;
	time_t		f_lifetime;
};

struct dpm_reqsummary {
	char		r_token[CA_MAXDPMTOKENLEN+1];
	char		r_type;
	int		nb_reqfiles;
	int		nb_queued;
	int		nb_finished;
	int		nb_progress;
};

struct dpm_space_metadata {
	char		s_type;
	char		s_token[CA_MAXDPMTOKENLEN+1];
	uid_t		s_uid;
	gid_t		s_gid;
	char		ret_policy;
	char		ac_latency;
	char		u_token[256];
	char		client_dn[256];
	u_signed64	t_space;	/* Total space */
	u_signed64	g_space;	/* Guaranteed space */
	u_signed64	u_space;	/* Unused space */
	char		poolname[CA_MAXPOOLNAMELEN+1];
	time_t		a_lifetime;	/* Lifetime assigned */
	time_t		r_lifetime;	/* Remaining lifetime */
	int		nbgids;
	gid_t		*gids;		/* restrict the space to given group(s) */
};

struct dpm_tokeninfo {
	char		r_token[CA_MAXDPMTOKENLEN+1];
	time_t		c_time;
};


#ifndef SWIGNOPROTO        /* include function prototypes only if outside SWIG */

			/* function prototypes */

EXTERN_C int DLL_DECL dpm_abortfiles _PROTO((char *, int, char **, int *, struct dpm_filestatus **));
EXTERN_C int DLL_DECL dpm_abortreq _PROTO((char *));
EXTERN_C int DLL_DECL dpm_accessr _PROTO((const char*, int));
EXTERN_C int DLL_DECL dpm_addfs _PROTO((char *, char *, char *, int, int));
EXTERN_C int DLL_DECL dpm_addpool _PROTO((struct dpm_pool *));
EXTERN_C int DLL_DECL dpm_apiinit _PROTO((struct dpm_api_thread_info **));
EXTERN_C int DLL_DECL dpm_client_getAuthorizationId _PROTO((uid_t *, gid_t *, char **, char **));
EXTERN_C int DLL_DECL dpm_client_setAuthorizationId _PROTO((uid_t, gid_t, const char *, char *));
EXTERN_C int DLL_DECL dpm_client_resetAuthorizationId _PROTO(());
EXTERN_C int DLL_DECL dpm_client_setSecurityOpts _PROTO((int));
EXTERN_C int DLL_DECL dpm_client_setVOMS_data _PROTO((char *, char **, int));
EXTERN_C int DLL_DECL dpm_copy _PROTO((int, struct dpm_copyfilereq *, char *, int, time_t, char *, int *, struct dpm_copyfilestatus **));
#ifndef SWIG
EXTERN_C int DLL_DECL dpm_copyfile _PROTO((char *, char *, int, int));
#endif
EXTERN_C int DLL_DECL dpm_delreplica _PROTO((char *));
EXTERN_C int DLL_DECL dpm_errmsg _PROTO((char *, char *, ...));
EXTERN_C int DLL_DECL dpm_extendfilelife _PROTO((char *, char *, time_t, time_t *));
EXTERN_C void DLL_DECL dpm_free_cfilest _PROTO((int, struct dpm_copyfilestatus *));
EXTERN_C void DLL_DECL dpm_free_filest _PROTO((int, struct dpm_filestatus *));
EXTERN_C void DLL_DECL dpm_free_gfilest _PROTO((int, struct dpm_getfilestatus *));
EXTERN_C void DLL_DECL dpm_free_pfilest _PROTO((int, struct dpm_putfilestatus *));
EXTERN_C int DLL_DECL dpm_get _PROTO((int, struct dpm_getfilereq *, int, char **, char *, time_t, char *, int *, struct dpm_getfilestatus **));
EXTERN_C int DLL_DECL dpm_getifcevers _PROTO((char *));
EXTERN_C int DLL_DECL dpm_getpoolfs _PROTO((char *, int *, struct dpm_fs **));
EXTERN_C int DLL_DECL dpm_getpools _PROTO((int *, struct dpm_pool **));
EXTERN_C int DLL_DECL dpm_getprotocols _PROTO((int *, char ***));
EXTERN_C int DLL_DECL dpm_getreqid _PROTO((const char *, int *, struct dpm_tokeninfo **));
EXTERN_C int DLL_DECL dpm_getreqsummary _PROTO((int, char **, int *, struct dpm_reqsummary **));
EXTERN_C int DLL_DECL dpm_getspacemd _PROTO((int, char **, int *, struct dpm_space_metadata **));
EXTERN_C int DLL_DECL dpm_getspacetoken _PROTO((const char *, int *, char ***));
EXTERN_C int DLL_DECL dpm_getstatus_copyreq _PROTO((char *, int, char **, char **, int *, struct dpm_copyfilestatus **));
EXTERN_C int DLL_DECL dpm_getstatus_getreq _PROTO((char *, int, char **, int *, struct dpm_getfilestatus **));
EXTERN_C int DLL_DECL dpm_getstatus_putreq _PROTO((char *, int, char **, int *, struct dpm_putfilestatus **));
EXTERN_C char DLL_DECL *dpm_getturl _PROTO((const char *, int, u_signed64, char *));
EXTERN_C int DLL_DECL dpm_inc_reqctr _PROTO(());
EXTERN_C int DLL_DECL dpm_modifyfs _PROTO((char *, char *, int, int));
EXTERN_C int DLL_DECL dpm_modifypool _PROTO((struct dpm_pool *));
EXTERN_C int DLL_DECL dpm_ping _PROTO((char *, char *));
EXTERN_C int DLL_DECL dpm_put _PROTO((int, struct dpm_putfilereq *, int, char **, char *, int, time_t, char *, int *, struct dpm_putfilestatus **));
EXTERN_C int DLL_DECL dpm_putx _PROTO((int, struct dpm_putfilereqx *, int, char **, char *, int, time_t, char *, int *, struct dpm_putfilestatus **));
EXTERN_C int DLL_DECL dpm_putdone _PROTO((char *, int, char **, int *, struct dpm_filestatus **));
EXTERN_C int DLL_DECL dpm_releasespace _PROTO((char *, int));
EXTERN_C int DLL_DECL dpm_relfiles _PROTO((char *, int, char **, int, int *, struct dpm_filestatus **));
#ifndef SWIG
EXTERN_C int DLL_DECL dpm_replicate _PROTO((const char *, char));
EXTERN_C int DLL_DECL dpm_replicatex _PROTO((const char *, char, const char *, time_t, char *));
#endif
EXTERN_C int DLL_DECL dpm_reservespace _PROTO((const char, const char *, const char, const char, u_signed64, u_signed64, time_t, int, gid_t *, const char *, char *, u_signed64 *, u_signed64 *, time_t *, char *));
EXTERN_C int DLL_DECL dpm_rm _PROTO((int, char **, int *, struct dpm_filestatus **));
EXTERN_C int DLL_DECL dpm_rmfs _PROTO((char *, char *));
EXTERN_C int DLL_DECL dpm_rmpool _PROTO((char *));
EXTERN_C int DLL_DECL dpm_seterrbuf _PROTO((char *, int));
EXTERN_C int DLL_DECL dpm_updatespace _PROTO((char *, u_signed64, u_signed64, time_t, int, gid_t *, u_signed64 *, u_signed64 *, time_t *));
EXTERN_C int DLL_DECL send2dpm _PROTO((char *, char *, int, char *, int, void **, int *));

#endif /* #ifndef SWIGNOPROTO */

#endif