1 .\" This manpage is Copyright (C) 2006, Michael Kerrisk
3 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
5 .TH FUTIMESAT 2 2021-08-27 "Linux" "Linux Programmer's Manual"
7 futimesat \- change timestamps of a file relative to a \
8 directory file descriptor
11 .RI ( libc ", " \-lc )
14 .BR "#include <fcntl.h>" " /* Definition of " AT_* " constants */"
15 .B #include <sys/time.h>
17 .BI "int futimesat(int " dirfd ", const char *" pathname ,
18 .BI " const struct timeval " times [2]);
22 Feature Test Macro Requirements for glibc (see
23 .BR feature_test_macros (7)):
31 This system call is obsolete.
38 system call operates in exactly the same way as
40 except for the differences described in this manual page.
42 If the pathname given in
44 is relative, then it is interpreted relative to the directory
45 referred to by the file descriptor
47 (rather than relative to the current working directory of
48 the calling process, as is done by
50 for a relative pathname).
60 is interpreted relative to the current working
61 directory of the calling process (like
71 for an explanation of why the
78 On error, \-1 is returned and
80 is set to indicate the error.
82 The same errors that occur for
86 The following additional errors can occur for
95 nor a valid file descriptor.
101 is a file descriptor referring to a file other than a directory.
104 was added to Linux in kernel 2.6.16;
105 library support was added to glibc in version 2.4.
107 This system call is nonstandard.
108 It was implemented from a specification that was proposed for POSIX.1,
109 but that specification was replaced by the one for
112 A similar system call exists on Solaris.
117 is NULL, then the glibc
119 wrapper function updates the times for the file referred to by
121 .\" The Solaris futimesat() also has this strangeness.
127 .BR path_resolution (7)