1DPM_EXTENDFILELIFE(3) DPM Library Functions DPM_EXTENDFILELIFE(3)
2
3
4
6 dpm_extendfilelife - extend file lifetime
7
9 #include <sys/types.h>
10 #include "dpm_api.h"
11
12 int dpm_extendfilelife (char *r_token, char *surl, time_t lifetime,
13 time_t *actual_lifetime)
14
16 dpm_extendfilelife extends file lifetime.
17
18 r_token
19 specifies the token returned by a previous get, put or copy
20 request.
21
22 surl specifies the name of the file.
23
24 lifetime
25 specifies the new lifetime relative to the current time.
26
27 actual_lifetime
28 will receive the actual lifetime assigned by the server.
29
31 This routine returns 0 if the operation was successful or -1 if the
32 operation failed. In the latter case, serrno is set appropriately.
33
35 ENOENT File does not exist.
36
37 EFAULT surl is a NULL pointer.
38
39 EINVAL The length of r_token exceeds CA_MAXDPMTOKENLEN or the
40 token is unknown.
41
42 ENAMETOOLONG The length of the surl exceeds CA_MAXSFNLEN.
43
44 SENOSHOST Host unknown.
45
46 SEINTERNAL Database error.
47
48 SECOMERR Communication error.
49
50
51
52LCG $Date: 2006/12/20 15:28:25 $ DPM_EXTENDFILELIFE(3)