2006-05-02 00:05:35 +00:00
|
|
|
.\" Hey Emacs! This file is -*- nroff -*- source.
|
|
|
|
.\"
|
|
|
|
.\" This manpage is Copyright (C) 2006, Michael Kerrisk
|
|
|
|
.\"
|
|
|
|
.\" Permission is granted to make and distribute verbatim copies of this
|
|
|
|
.\" manual provided the copyright notice and this permission notice are
|
|
|
|
.\" preserved on all copies.
|
|
|
|
.\"
|
|
|
|
.\" Permission is granted to copy and distribute modified versions of this
|
|
|
|
.\" manual under the conditions for verbatim copying, provided that the
|
|
|
|
.\" entire resulting derived work is distributed under the terms of a
|
|
|
|
.\" permission notice identical to this one.
|
2007-04-12 22:42:49 +00:00
|
|
|
.\"
|
2006-05-02 00:05:35 +00:00
|
|
|
.\" Since the Linux kernel and libraries are constantly changing, this
|
|
|
|
.\" manual page may be incorrect or out-of-date. The author(s) assume no
|
|
|
|
.\" responsibility for errors or omissions, or for damages resulting from
|
|
|
|
.\" the use of the information contained herein. The author(s) may not
|
|
|
|
.\" have taken the same level of care in the production of this manual,
|
|
|
|
.\" which is licensed free of charge, as they might when working
|
|
|
|
.\" professionally.
|
2007-04-12 22:42:49 +00:00
|
|
|
.\"
|
2006-05-02 00:05:35 +00:00
|
|
|
.\" Formatted or processed versions of this manual, if unaccompanied by
|
|
|
|
.\" the source, must acknowledge the copyright and authors of this work.
|
|
|
|
.\"
|
|
|
|
.\"
|
faccessat.2, fchmodat.2, fchownat.2, fstatat.2, futimesat.2, linkat.2, mkdirat.2, mknodat.2, openat.2, readlinkat.2, renameat.2, symlinkat.2, unlinkat.2, utimensat.2, mkfifoat.3: Update feature test macro requirements
Starting in glibc 2.10, defining _XOPEN_SOURCE >= 700,
or _POSIX_C_SOURCE >= 200809 exposes the declarations of
these functions.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-12-13 21:54:45 +00:00
|
|
|
.TH FUTIMESAT 2 2009-12-13 "Linux" "Linux Programmer's Manual"
|
2006-05-02 00:05:35 +00:00
|
|
|
.SH NAME
|
2007-05-11 23:07:02 +00:00
|
|
|
futimesat \- change timestamps of a file relative to a \
|
2006-05-02 00:05:35 +00:00
|
|
|
directory file descriptor
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.nf
|
2007-10-08 18:45:41 +00:00
|
|
|
.B #include <fcntl.h> /* Definition of AT_* constants */
|
2006-05-02 00:05:35 +00:00
|
|
|
.sp
|
2007-04-12 22:42:49 +00:00
|
|
|
.BI "int futimesat(int " dirfd ", const char *" pathname ,
|
2006-05-02 00:05:35 +00:00
|
|
|
.BI " const struct timeval " times [2]);
|
|
|
|
.fi
|
faccessat.2, fchmodat.2, fchownat.2, fstatat.2, futimesat.2, linkat.2, mkdirat.2, mknodat.2, openat.2, readlinkat.2, renameat.2, symlinkat.2, unlinkat.2, utimensat.2, mkfifoat.3: Update feature test macro requirements
Starting in glibc 2.10, defining _XOPEN_SOURCE >= 700,
or _POSIX_C_SOURCE >= 200809 exposes the declarations of
these functions.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2009-12-13 21:54:45 +00:00
|
|
|
.sp
|
|
|
|
.in -4n
|
|
|
|
Feature Test Macro Requirements for glibc (see
|
|
|
|
.BR feature_test_macros (7)):
|
|
|
|
.in
|
|
|
|
.sp
|
|
|
|
.BR futimesat ():
|
|
|
|
.br
|
|
|
|
Since glibc 2.10: _XOPEN_SOURCE >= 700 || _POSIX_C_SOURCE >= 200809L
|
|
|
|
.br
|
|
|
|
Before glibc 2.10:
|
|
|
|
_ATFILE_SOURCE
|
2006-05-02 00:05:35 +00:00
|
|
|
.SH DESCRIPTION
|
2008-06-02 14:12:37 +00:00
|
|
|
This system call is obsolete.
|
|
|
|
Use
|
|
|
|
.BR utimensat (2)
|
|
|
|
instead.
|
|
|
|
|
2006-05-02 00:05:35 +00:00
|
|
|
The
|
|
|
|
.BR futimesat ()
|
|
|
|
system call operates in exactly the same way as
|
|
|
|
.BR utimes (2),
|
|
|
|
except for the differences described in this manual page.
|
|
|
|
|
2007-04-12 22:42:49 +00:00
|
|
|
If the pathname given in
|
2006-05-02 00:05:35 +00:00
|
|
|
.I pathname
|
|
|
|
is relative, then it is interpreted relative to the directory
|
|
|
|
referred to by the file descriptor
|
2007-09-20 16:26:31 +00:00
|
|
|
.I dirfd
|
2007-04-12 22:42:49 +00:00
|
|
|
(rather than relative to the current working directory of
|
2006-05-02 00:05:35 +00:00
|
|
|
the calling process, as is done by
|
|
|
|
.BR utimes (2)
|
|
|
|
for a relative pathname).
|
|
|
|
|
2006-08-09 09:08:01 +00:00
|
|
|
If
|
2006-05-02 00:05:35 +00:00
|
|
|
.I pathname
|
2007-04-12 22:42:49 +00:00
|
|
|
is relative and
|
2006-05-02 00:05:35 +00:00
|
|
|
.I dirfd
|
|
|
|
is the special value
|
|
|
|
.BR AT_FDCWD ,
|
|
|
|
then
|
|
|
|
.I pathname
|
2007-04-12 22:42:49 +00:00
|
|
|
is interpreted relative to the current working
|
2006-05-02 00:05:35 +00:00
|
|
|
directory of the calling process (like
|
|
|
|
.BR utimes (2)).
|
|
|
|
|
2006-08-09 09:08:01 +00:00
|
|
|
If
|
2007-09-20 16:26:31 +00:00
|
|
|
.I pathname
|
2007-04-12 22:42:49 +00:00
|
|
|
is absolute, then
|
|
|
|
.I dirfd
|
2006-05-02 00:05:35 +00:00
|
|
|
is ignored.
|
|
|
|
.SH "RETURN VALUE"
|
|
|
|
On success,
|
2007-04-12 22:42:49 +00:00
|
|
|
.BR futimesat ()
|
2006-05-02 00:05:35 +00:00
|
|
|
returns a 0.
|
|
|
|
On error, \-1 is returned and
|
|
|
|
.I errno
|
|
|
|
is set to indicate the error.
|
|
|
|
.SH ERRORS
|
|
|
|
The same errors that occur for
|
|
|
|
.BR utimes (2)
|
|
|
|
can also occur for
|
|
|
|
.BR futimesat ().
|
2007-04-12 22:42:49 +00:00
|
|
|
The following additional errors can occur for
|
2006-05-02 00:05:35 +00:00
|
|
|
.BR futimesat ():
|
|
|
|
.TP
|
|
|
|
.B EBADF
|
|
|
|
.I dirfd
|
|
|
|
is not a valid file descriptor.
|
|
|
|
.TP
|
|
|
|
.B ENOTDIR
|
|
|
|
.I pathname
|
2006-08-08 16:34:16 +00:00
|
|
|
is relative and
|
2006-05-02 00:05:35 +00:00
|
|
|
.I dirfd
|
|
|
|
is a file descriptor referring to a file other than a directory.
|
2007-05-18 16:06:42 +00:00
|
|
|
.SH VERSIONS
|
|
|
|
.BR futimesat ()
|
|
|
|
was added to Linux in kernel 2.6.16.
|
2006-05-02 00:05:35 +00:00
|
|
|
.SH "CONFORMING TO"
|
accept.2, execve.2, futimesat.2, getresuid.2, getrlimit.2, madvise.2, mq_getsetattr.2, msgctl.2, nice.2, open.2, poll.2, setresuid.2, shmctl.2, sigaction.2, times.2, utimensat.2, __setfpucw.3, atoi.3, endian.3, err.3, euidaccess.3, fenv.3, fopencookie.3, fpurge.3, getgrouplist.3, getutmp.3, j0.3, lgamma.3, netlink.3, pthread_attr_init.3, pthread_attr_setaffinity_np.3, pthread_cleanup_push_defer_np.3, pthread_getattr_np.3, pthread_kill_other_threads_np.3, pthread_setaffinity_np.3, pthread_tryjoin_np.3, pthread_yield.3, random_r.3, readdir.3, rtnetlink.3, scanf.3, setenv.3, significand.3, sigsetops.3, strerror.3, strstr.3, sysv_signal.3, termios.3, timegm.3, unlocked_stdio.3, y0.3, locale.5, bootparam.7, feature_test_macros.7, ip.7, locale.7, pthreads.7, rtld-audit.7, nscd.8: Global fix: s/non-standard/nonstandard/
The tendency in English, as prescribed in style guides like
Chicago MoS, is towards removing hyphens after prefixes
like "non-" etc.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-01-16 16:37:52 +00:00
|
|
|
This system call is nonstandard.
|
2008-09-18 12:30:37 +00:00
|
|
|
It was implemented from a specification that was proposed for POSIX.1,
|
2008-06-02 14:12:37 +00:00
|
|
|
but that specification was replaced by the one for
|
2008-06-03 12:24:19 +00:00
|
|
|
.BR utimensat (2).
|
2008-06-02 14:12:37 +00:00
|
|
|
|
2006-05-02 00:05:35 +00:00
|
|
|
A similar system call exists on Solaris.
|
2007-05-18 10:30:02 +00:00
|
|
|
.SH NOTES
|
|
|
|
.SS Glibc Notes
|
2006-08-09 09:08:01 +00:00
|
|
|
If
|
|
|
|
.I pathname
|
2007-04-12 22:42:49 +00:00
|
|
|
is NULL, then the glibc
|
2007-05-11 23:07:02 +00:00
|
|
|
.BR futimesat ()
|
2006-05-02 00:05:35 +00:00
|
|
|
wrapper function updates the times for the file referred to by
|
|
|
|
.IR dirfd .
|
|
|
|
.\" The Solaris futimesat() also has this strangeness.
|
|
|
|
.SH "SEE ALSO"
|
|
|
|
.BR stat (2),
|
2008-06-02 14:12:37 +00:00
|
|
|
.BR utimensat (2),
|
2006-05-02 00:05:35 +00:00
|
|
|
.BR utimes (2),
|
2007-06-01 05:25:11 +00:00
|
|
|
.BR futimes (3),
|
2007-05-26 12:41:39 +00:00
|
|
|
.BR path_resolution (7)
|