1DPNS_SETPTIME(3) DPNS Library Functions DPNS_SETPTIME(3)
2
3
4
6 dpns_setptime - set replica pin time
7
9 #include <sys/types.h>
10 #include "dpns_api.h"
11
12 int dpns_setptime (const char *sfn, time_t ptime)
13
15 dpns_setptime sets the pin time for a file replica to a given time.
16 This function should be called everytime a file replica is created,
17 when its lifetime is extended or when the replica is released.
18
19 sfn is the Physical File Name for the replica.
20
21 ptime 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: 2005/04/27 09:11:24 $ DPNS_SETPTIME(3)