1DPNS_SETRLTIME(3) DPNS Library Functions DPNS_SETRLTIME(3)
2
3
4
6 dpns_setrltime - set replica lifetime
7
9 #include <sys/types.h>
10 #include "dpns_api.h"
11
12 int dpns_setrltime (const char *sfn, time_t ltime)
13
15 dpns_setrltime sets the lifetime for a file replica to a given time.
16 This function should be called everytime a file replica is created or
17 when its lifetime is extended.
18
19 sfn is the Physical File Name for the replica.
20
21 ltime specifies the new lifetime.
22
24 This routine returns 0 if the operation was successful or -1 if the
25 operation failed. In the latter case, serrno is set appropriately.
26
28 ENOENT The named replica does not exist.
29
30 EACCES Search permission is denied on a component of the file
31 prefix or the caller effective user ID does not match the
32 owner ID of the file or read permission on the file itself
33 is denied.
34
35 EFAULT sfn is a NULL pointer.
36
37 ENAMETOOLONG The length of sfn exceeds CA_MAXSFNLEN.
38
39 SENOSHOST Host unknown.
40
41 SENOSSERV Service unknown.
42
43 SECOMERR Communication error.
44
45 ENSNACT Name server is not running or is being shutdown.
46
48 Castor_limits(4), dpns_listreplica(3)
49
50
51
52DPNS $Date: 2006/12/01 09:19:37 $ DPNS_SETRLTIME(3)