1FUTIMES(3)                 Linux Programmer's Manual                FUTIMES(3)
2
3
4

NAME

6       futimes - change access and/or modification times of an open file
7

SYNOPSIS

9       #include <sys/time.h>
10
11       int futimes(int fd, const struct timeval tv[2]);
12

DESCRIPTION

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

RETURN VALUE

20       On success, zero is returned.  On error, -1 is returned, and  errno  is
21       set appropriately.
22

ERRORS

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

VERSIONS

31       futimes() is available since glibc 2.3.
32

CONFORMING TO

34       4.2BSD.  Other than Linux, this function is only available on the BSDs.
35

SEE ALSO

37       futimesat(2), utime(2)
38
39
40
41Linux                             2006-03-06                        FUTIMES(3)
Impressum