1FUTIMES(3) Linux Programmer's Manual FUTIMES(3)
2
3
4
6 futimes, lutimes - change file timestamps
7
9 #include <sys/time.h>
10
11 int futimes(int fd, const struct timeval tv[2]);
12
13 int lutimes(const char *filename, const struct timeval tv[2]);
14
15 Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
16
17 futimes(), lutimes(): _BSD_SOURCE
18
20 futimes() changes the access and modification times of a file in the
21 same way as utimes(2), with the difference that the file whose time‐
22 stamps are to be changed is specified via a file descriptor, fd, rather
23 than via a pathname.
24
25 lutimes() changes the access and modification times of a file in the
26 same way as utimes(2), with the difference that if filename refers to a
27 symbolic link, then the link is not dereferenced: instead, the time‐
28 stamps of the symbolic link are changed.
29
31 On success, zero is returned. On error, -1 is returned, and errno is
32 set appropriately.
33
35 Errors are as for utimes(2), with the following additions for
36 futimes():
37
38 EBADF fd is not a valid file descriptor.
39
40 ENOSYS The /proc file system could not be accessed.
41
43 futimes() is available since glibc 2.3. lutimes() is available since
44 glibc 2.6, and is implemented using the utimensat(2) system call, which
45 is supported since kernel 2.6.22.
46
48 These functions are not specified in any standard. Other than Linux,
49 they are only available on the BSDs.
50
52 utimensat(2), utime(2), symlink(7)
53
55 This page is part of release 3.25 of the Linux man-pages project. A
56 description of the project, and information about reporting bugs, can
57 be found at http://www.kernel.org/doc/man-pages/.
58
59
60
61Linux 2008-04-07 FUTIMES(3)