1DPM_RELFILES(3) DPM Library Functions DPM_RELFILES(3)
2
3
4
6 dpm_relfiles - release a set of files
7
9 #include <sys/types.h>
10 #include "dpm_api.h"
11
12 int dpm_relfiles (char *r_token, int nbsurls, char **surls, int
13 keepspace, int *nbreplies, struct dpm_filestatus **filestatuses)
14
16 dpm_relfiles releases a set of files.
17
18 The input arguments are:
19
20 r_token
21 specifies the token returned by a previous get/put/copy request.
22
23 nbsurls
24 specifies the number of files belonging to the request.
25
26 surls specifies the array of file names.
27
28 keepspace
29 This field is currently ignored.
30
31 The output arguments are:
32
33 nbreplies
34 will be set to the number of replies in the array of file sta‐
35 tuses.
36
37 filestatuses
38 will be set to the address of an array of dpm_filestatus struc‐
39 tures allocated by the API. The client application is responsi‐
40 ble for freeing the array when not needed anymore.
41
42 struct dpm_filestatus {
43 char *surl;
44 int status;
45 char *errstring;
46 };
47
49 This routine returns 0 if the operation was successful or -1 if the
50 operation failed. In the latter case, serrno is set appropriately.
51
53 EFAULT r_token, surls, nbreplies or filestatuses is a NULL
54 pointer.
55
56 ENOMEM Memory could not be allocated for marshalling the request.
57
58 EINVAL nbsurls is not strictly positive, the token is not known
59 or all file requests have errors.
60
61 SENOSHOST Host unknown.
62
63 SEINTERNAL Database error.
64
65 SECOMERR Communication error.
66
67
68
69LCG $Date: 2004/12/15 08:34:56 $ DPM_RELFILES(3)