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

NAME

6       futimesat  -  change  timestamps of a file relative to a directory file
7       descriptor
8

SYNOPSIS

10       #include <fcntl.h> /* Definition of AT_* constants */
11       #include <sys/time.h>
12
13       int futimesat(int dirfd, const char *pathname,
14                     const struct timeval times[2]);
15
16   Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
17
18       futimesat(): _GNU_SOURCE
19

DESCRIPTION

21       This system call is obsolete.  Use utimensat(2) instead.
22
23       The futimesat() system  call  operates  in  exactly  the  same  way  as
24       utimes(2), except for the differences described in this manual page.
25
26       If  the  pathname given in pathname is relative, then it is interpreted
27       relative to the directory referred to  by  the  file  descriptor  dirfd
28       (rather  than  relative to the current working directory of the calling
29       process, as is done by utimes(2) for a relative pathname).
30
31       If pathname is relative and dirfd is the special value  AT_FDCWD,  then
32       pathname  is  interpreted  relative to the current working directory of
33       the calling process (like utimes(2)).
34
35       If pathname is absolute, then dirfd is ignored.
36

RETURN VALUE

38       On success, futimesat() returns a 0.  On  error,  -1  is  returned  and
39       errno is set to indicate the error.
40

ERRORS

42       The  same  errors  that  occur for utimes(2) can also occur for futime‐
43       sat().  The following additional errors can occur for futimesat():
44
45       EBADF  dirfd is not a valid file descriptor.
46
47       ENOTDIR
48              pathname is relative and dirfd is a file descriptor referring to
49              a file other than a directory.
50

VERSIONS

52       futimesat()  was  added  to Linux in kernel 2.6.16; library support was
53       added to glibc in version 2.4.
54

CONFORMING TO

56       This system call is nonstandard.  It was implemented from a  specifica‐
57       tion that was proposed for POSIX.1, but that specification was replaced
58       by the one for utimensat(2).
59
60       A similar system call exists on Solaris.
61

NOTES

63   Glibc notes
64       If pathname is  NULL,  then  the  glibc  futimesat()  wrapper  function
65       updates the times for the file referred to by dirfd.
66

SEE ALSO

68       stat(2), utimensat(2), utimes(2), futimes(3), path_resolution(7)
69

COLOPHON

71       This  page  is  part of release 5.07 of the Linux man-pages project.  A
72       description of the project, information about reporting bugs,  and  the
73       latest     version     of     this    page,    can    be    found    at
74       https://www.kernel.org/doc/man-pages/.
75
76
77
78Linux                             2017-09-15                      FUTIMESAT(2)
Impressum