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

NAME

6       futimes, lutimes - change file timestamps
7

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUE

31       On  success,  zero is returned.  On error, -1 is returned, and errno is
32       set appropriately.
33

ERRORS

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
42       The following additional error may occur for lutimes():
43
44       ENOSYS The  kernel does not support this call; Linux 2.6.22 or later is
45              required.
46

VERSIONS

48       futimes() is available since glibc 2.3.  lutimes() is  available  since
49       glibc 2.6, and is implemented using the utimensat(2) system call, which
50       is supported since kernel 2.6.22.
51

CONFORMING TO

53       These functions are not specified in any standard.  Other  than  Linux,
54       they are available only on the BSDs.
55

SEE ALSO

57       utime(2), utimensat(2), symlink(7)
58

COLOPHON

60       This  page  is  part of release 3.53 of the Linux man-pages project.  A
61       description of the project, and information about reporting  bugs,  can
62       be found at http://www.kernel.org/doc/man-pages/.
63
64
65
66Linux                             2013-03-15                        FUTIMES(3)
Impressum