1FUTIMES(3) Linux Programmer's Manual FUTIMES(3)
2
3
4
6 futimes - change access and/or modification times of an open file
7
9 #include <sys/time.h>
10
11 int futimes(int fd, const struct timeval tv[2]);
12
14 futimes() changes the access and modification times of a file in the
15 same way as utimes(2), with the difference that the file whose time‐
16 stamps are to be changed is specified via a file descriptor, fd, rather
17 than via a pathname.
18
20 On success, zero is returned. On error, -1 is returned, and errno is
21 set appropriately.
22
24 Errors are as for utimes(2), with the following additions:
25
26 EBADF fd is not a valid file descriptor.
27
28 ENOSYS The /proc file system could not be accessed.
29
31 futimes() is available since glibc 2.3.
32
34 4.2BSD. Other than Linux, this function is only available on the BSDs.
35
37 futimesat(2), utime(2)
38
39
40
41Linux 2006-03-06 FUTIMES(3)