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       #define _ATFILE_SOURCE
11       #include <fcntl.h> /* Definition of AT_* constants */
12
13       int futimesat(int dirfd, const char *pathname,
14                     const struct timeval times[2]);
15

DESCRIPTION

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

RETURN VALUE

34       On success, futimesat() returns a 0.  On  error,  -1  is  returned  and
35       errno is set to indicate the error.
36

ERRORS

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

VERSIONS

48       futimesat() was added to Linux in kernel 2.6.16.
49

CONFORMING TO

51       This system call is non-standard.  It was implemented from a specifica‐
52       tion that was proposed for POSIX.1, but that specification was replaced
53       by the one for utimensat(2).
54
55       A similar system call exists on Solaris.
56

NOTES

58   Glibc Notes
59       If  pathname  is  NULL,  then  the  glibc  futimesat() wrapper function
60       updates the times for the file referred to by dirfd.
61

SEE ALSO

63       stat(2), utimensat(2), utimes(2), futimes(3), path_resolution(7)
64

COLOPHON

66       This page is part of release 3.22 of the Linux  man-pages  project.   A
67       description  of  the project, and information about reporting bugs, can
68       be found at http://www.kernel.org/doc/man-pages/.
69
70
71
72Linux                             2008-06-05                      FUTIMESAT(2)
Impressum