1DPM_EXTENDFILELIFE(3)         DPM Library Functions       DPM_EX‐
2TENDFILELIFE(3)
3
4
5
6[1mNAME[0m
7       dpm_extendfilelife ‐ extend file lifetime
8
9[1mSYNOPSIS[0m
10       [1m#include <sys/types.h>[0m
11       [1m#include "dpm_api.h"[0m
12
13       [1mint  dpm_extendfilelife  (char  *[4m[22mr_token[24m[1m,
14char *[4m[22msurl[24m[1m, time_t [4m[22mlifetime[24m[1m,[0m
15       [1mtime_t *[4m[22mactual_lifetime[24m[1m)[0m
16
17[1mDESCRIPTION[0m
18       [1mdpm_extendfilelife [22mextends file lifetime.
19
20       [4mr_token[0m
21              specifies  the  token returned by a  previous  get,
22put  or  copy
23              request.
24
25       [4msurl[24m   specifies the name of the file.
26
27       [4mlifetime[0m
28              specifies the new lifetime relative to the  current
29time.
30
31       [4mactual_lifetime[0m
32              will  receive  the  actual lifetime assigned by the
33server.
34
35[1mRETURN VALUE[0m
36       This  routine  returns  0  if the operation was successful
37or ‐1 if the
38       operation failed. In the latter case, [1mserrno [22mis set
39appropriately.
40
41[1mERRORS[0m
42       [1mENOENT       [22mFile does not exist.
43
44       [1mEFAULT       [4m[22msurl[24m is a NULL pointer.
45
46       [1mEINVAL       [22mThe length of [4mr_token[24m   exceeds
47[1mCA_MAXDPMTOKENLEN  [22mor  the
48                    token is unknown.
49
50       [1mENAMETOOLONG   [22mThe   length  of  the  surl  exceeds
51[1mCA_MAXSFNLEN[22m.
52
53       [1mSENOSHOST    [22mHost unknown.
54
55       [1mSEINTERNAL   [22mDatabase error.
56
57       [1mSECOMERR     [22mCommunication error.
58
59
60
61LCG                      $Date: 2006/12/20 15:28:25 $     DPM_EX‐
62TENDFILELIFE(3)
63
64
65
66
Impressum