1DPM_PUTDONE(3) DPM Library Functions DPM_PUTDONE(3)
2
3
4
6 dpm_putdone - mark a set of files as complete
7
9 #include <sys/types.h>
10 #include "dpm_api.h"
11
12 int dpm_putdone (char *r_token, int nbsurls, char **surls, int
13 *nbreplies, struct dpm_filestatus **filestatuses)
14
16 dpm_putdone marks a set of files as complete.
17
18 The input arguments are:
19
20 r_token
21 specifies the token returned by a previous put 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 The output arguments are:
29
30 nbreplies
31 will be set to the number of replies in the array of file sta‐
32 tuses.
33
34 filestatuses
35 will be set to the address of an array of dpm_filestatus struc‐
36 tures allocated by the API. The client application is responsi‐
37 ble for freeing the array when not needed anymore.
38
39 struct dpm_filestatus {
40 char *surl;
41 int status;
42 char *errstring;
43 };
44
46 This routine returns 0 if the operation was successful or -1 if the
47 operation failed. In the latter case, serrno is set appropriately.
48
50 EFAULT r_token, surls, nbreplies or filestatuses is a NULL
51 pointer.
52
53 ENOMEM Memory could not be allocated for marshalling the request.
54
55 EINVAL nbsurls is not strictly positive, the token is too long or
56 not known or all file requests have errors.
57
58 SENOSHOST Host unknown.
59
60 SEINTERNAL Database error.
61
62 SECOMERR Communication error.
63
64
65
66LCG $Date: 2006/02/17 06:47:32 $ DPM_PUTDONE(3)