1DPNS_SETRATIME(3) DPNS Library Functions DPNS_SETRATIME(3)
2
3
4
6 dpns_setratime - set replica last access (read) date
7
9 #include <sys/types.h>
10 #include "dpns_api.h"
11
12 int dpns_setratime (const char *sfn)
13
15 dpns_setratime set the replica last access (read) date to the current
16 time and increments the counter of accesses to the replica. This func‐
17 tion should be called everytime a file replica is accessed.
18
19 sfn is the Physical File Name for the replica.
20
22 This routine returns 0 if the operation was successful or -1 if the
23 operation failed. In the latter case, serrno is set appropriately.
24
26 ENOENT The named replica does not exist.
27
28 EACCES Search permission is denied on a component of the file
29 prefix or the caller effective user ID does not match the
30 owner ID of the file or read permission on the file itself
31 is denied.
32
33 EFAULT sfn is a NULL pointer.
34
35 ENAMETOOLONG The length of sfn exceeds CA_MAXSFNLEN.
36
37 SENOSHOST Host unknown.
38
39 SENOSSERV Service unknown.
40
41 SECOMERR Communication error.
42
43 ENSNACT Name server is not running or is being shutdown.
44
46 Castor_limits(4), dpns_listreplica(3)
47
48
49
50DPNS $Date: 2005/04/27 09:11:24 $ DPNS_SETRATIME(3)