1DPNS_SETATIME(3) DPNS Library Functions DPNS_SETATIME(3)
2
3
4
6 dpns_setatime - set last access time for a regular file to the current
7 time
8
10 #include <sys/types.h>
11 #include "dpns_api.h"
12
13 int dpns_setatime (const char *path, struct dpns_fileid *file_uniqueid)
14
16 dpns_setatime sets the last access time for a regular file to the cur‐
17 rent time. This function should only be called by the stager after the
18 file has been successfully recalled and every time a stagein requests
19 this file, even if the file already resides in the disk pool. The file
20 can be identified by path name or by file_uniqueid. If both are speci‐
21 fied, file_uniqueid is used.
22
23 path specifies the logical pathname relative to the current DPNS
24 directory or the full DPNS pathname.
25
27 This routine returns 0 if the operation was successful or -1 if the
28 operation failed. In the latter case, serrno is set appropriately.
29
31 ENOENT The named file does not exist or is a null pathname.
32
33 EACCES Search permission is denied on a component of the path
34 prefix or the caller effective user ID does not match the
35 owner ID of the file or read permission on the file itself
36 is denied.
37
38 EFAULT path and file_uniqueid are NULL pointers.
39
40 ENOTDIR A component of path prefix is not a directory.
41
42 EISDIR The file is not a regular file.
43
44 ENAMETOOLONG The length of path exceeds CA_MAXPATHLEN or the length of
45 a path component exceeds CA_MAXNAMELEN.
46
47 SENOSHOST Host unknown.
48
49 SENOSSERV Service unknown.
50
51 SECOMERR Communication error.
52
53 ENSNACT Name server is not running or is being shutdown.
54
56 Castor_limits(4), dpns_chdir(3), dpns_stat(3), dpns_statg(3)
57
59 LCG Grid Deployment Team
60
61
62
63DPNS $Date: 2001/10/04 12:12:50 $ DPNS_SETATIME(3)