1DPM_GETSTATUS_PUTREQ(3)       DPM  Library Functions     DPM_GET‐
2STATUS_PUTREQ(3)
3
4
5
6[1mNAME[0m
7       dpm_getstatus_putreq ‐ get status for a dpm_put request
8
9[1mSYNOPSIS[0m
10       [1m#include <sys/types.h>[0m
11       [1m#include "dpm_api.h"[0m
12
13       [1mint dpm_getstatus_putreq (char  *[4m[22mr_token[24m[1m,
14int [4m[22mnbtosurls[24m[1m, char **[4m[22mtosurls[24m[1m,[0m
15       [1mint  *[4m[22mnbreplies[24m[1m, struct dpm_putfilestatus
16**[4m[22mfilestatuses[24m[1m)[0m
17
18[1mDESCRIPTION[0m
19       [1mdpm_getstatus_putreq [22mgets status for a dpm_put  re‐
20quest.
21
22       The input arguments are:
23
24       [4mr_token[0m
25              specifies  the token returned by a previous put re‐
26quest.
27
28       [4mnbtosurls[0m
29              specifies the number of files for which the  status
30is requested.
31              If zero, the status of all files in the put request
32is returned.
33
34       [4mtosurls[0m
35              specifies the array of file names.
36
37       The output arguments are:
38
39       [4mnbreplies[0m
40              will  be  set to the number of replies in the array
41of file sta‐
42              tuses.
43
44       [4mfilestatuses[0m
45              will  be  set  to  the  address   of  an  array  of
46dpm_putfilestatus
47              structures  allocated  by  the  API.   The   client
48application is
49              responsible  for  freeing the array when not needed
50anymore.
51
52       struct dpm_putfilestatus {
53            char      *to_surl;
54            char      *turl;
55            u_signed64     filesize;
56            int       status;
57            char      *errstring;
58            time_t    pintime;
59            time_t    f_lifetime;
60       };
61
62[1mRETURN VALUE[0m
63       This routine returns 0 if the operation was successful  or
64‐1  if  the
65       operation failed. In the latter case, [1mserrno [22mis set
66appropriately.
67
68[1mERRORS[0m
69       [1mEFAULT       [4m[22mnbtosurls[24m  is  strictly   posi‐
70tive  and  [4mtosurls[24m is NULL or
71                    [4mr_token[24m,      [4mnbreplies[24m      or
72[4mfilestatuses[24m is a NULL pointer.
73
74       [1mENOMEM       [22mMemory could not be allocated for mar‐
75shalling the request.
76
77       [1mEINVAL        [4m[22mnbtosurls[24m is not positive, the
78token is invalid/unknown or
79                    all file requests have errors.
80
81       [1mSENOSHOST    [22mHost unknown.
82
83       [1mSEINTERNAL   [22mDatabase error.
84
85       [1mSECOMERR     [22mCommunication error.
86
87
88
89LCG                      $Date: 2006/12/20 15:59:47  $   DPM_GET‐
90STATUS_PUTREQ(3)
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
Impressum