1 .\" Copyright (c) 2006, 2008, Michael Kerrisk
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date. The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein. The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
25 .TH FUTIMES 3 2021-03-22 "Linux" "Linux Programmer's Manual"
27 futimes, lutimes \- change file timestamps
30 .B #include <sys/time.h>
32 .BI "int futimes(int " fd ", const struct timeval " tv [2]);
33 .BI "int lutimes(const char *" filename ", const struct timeval " tv [2]);
37 Feature Test Macro Requirements for glibc (see
38 .BR feature_test_macros (7)):
46 Glibc 2.19 and earlier:
51 changes the access and modification times of a file in the same way as
53 with the difference that the file whose timestamps are to be changed
54 is specified via a file descriptor,
56 rather than via a pathname.
59 changes the access and modification times of a file in the same way as
61 with the difference that if
63 refers to a symbolic link, then the link is not dereferenced:
64 instead, the timestamps of the symbolic link are changed.
66 On success, zero is returned.
67 On error, \-1 is returned, and
69 is set to indicate the error.
73 with the following additions for
78 is not a valid file descriptor.
83 filesystem could not be accessed.
85 The following additional error may occur for
89 The kernel does not support this call; Linux 2.6.22 or later is required.
92 is available since glibc 2.3.
94 is available since glibc 2.6, and is implemented using the
96 system call, which is supported since kernel 2.6.22.
98 For an explanation of the terms used in this section, see
106 Interface Attribute Value
110 T} Thread safety MT-Safe
116 These functions are not specified in any standard.
117 Other than Linux, they are available only on the BSDs.