1DPNS_UTIME(3) DPNS Library Functions DPNS_UTIME(3)
2
3
4
6 dpns_utime - set last access and modification times
7
9 #include <sys/types.h>
10 #include "dpns_api.h"
11
12 int dpns_utime (const char *path, struct utimbuf *times)
13
15 dpns_utime sets last access and modification times.
16
17 path specifies the logical pathname relative to the current DPNS
18 directory or the full DPNS pathname.
19
20 If times is NULL, the access and modification times are set to the cur‐
21 rent time else they are set to the utimbuf structure member values.
22 ctime is set to current time.
23
25 This routine returns 0 if the operation was successful or -1 if the
26 operation failed. In the latter case, serrno is set appropriately.
27
29 EPERM times is not NULL and the caller effective user ID does
30 not match the owner ID of the file and the caller does not
31 have ADMIN privilege in the Cupv database.
32
33 ENOENT A component of path prefix does not exist or path is a
34 null pathname.
35
36 EACCES Search permission is denied on a component of the path
37 prefix or the caller effective user ID does not match the
38 owner ID of the file or write permission on the file
39 itself is denied and times is NULL.
40
41 EFAULT path is a NULL pointer.
42
43 ENOTDIR A component of path prefix is not a directory.
44
45 ENAMETOOLONG The length of path exceeds CA_MAXPATHLEN or the length of
46 a path component exceeds CA_MAXNAMELEN.
47
48 SENOSHOST Host unknown.
49
50 SENOSSERV Service unknown.
51
52 SECOMERR Communication error.
53
54 ENSNACT Name server is not running or is being shutdown.
55
57 Castor_limits(4), dpns_chdir(3), dpns_stat(3), dpns_statg(3),
58 Cupvlist(1)
59
61 LCG Grid Deployment Team
62
63
64
65DPNS $Date: 2002/10/16 06:25:40 $ DPNS_UTIME(3)