.\" This manpage is Copyright (C) 2006, Michael Kerrisk .\" .\" %%%LICENSE_START(VERBATIM) .\" 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. .\" .\" 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. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" %%%LICENSE_END .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .\" .\" Japanese Version Copyright (c) 2006 Yuichi SATO .\" all rights reserved. .\" Translated 2006-09-30 by Yuichi SATO , LDP v2.39 .\" Updated 2012-05-29, Akihiro MOTOKI .\" .TH FUTIMESAT 2 2012\-05\-10 Linux "Linux Programmer's Manual" .SH 名前 futimesat \- ディレクトリファイルディスクリプターに対する相対パスのファイルのタイムスタンプを変更する .SH 書式 .nf \fB#include /* AT_* 定数の定義 */\fP \fB#include \fP .sp \fBint futimesat(int \fP\fIdirfd\fP\fB, const char *\fP\fIpathname\fP\fB,\fP \fB const struct timeval \fP\fItimes\fP\fB[2]);\fP .fi .sp .in -4n glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7) 参照): .in .sp \fBfutimesat\fP(): _GNU_SOURCE .SH 説明 このシステムコールは廃止予定である。代わりに \fButimensat\fP を使用すること。 \fBfutimesat\fP() システムコールは \fButimes\fP() と全く同様に動作するが、このマニュアルページで説明する点が異なる。 \fIpathname\fP で渡されたパス名が相対パスの場合、 パス名はファイルディスクリプター \fIdirfd\fP が参照するディレクトリに対する相対パスと解釈される (相対パスの場合に \fButimes\fP(2) で行われるように、呼び出したプロセスのカレントワーキングディレクトリに対する相対パスと解釈されるわけではない)。 \fIpathname\fP が相対パスで \fIdirfd\fP が特別な値 \fBAT_FDCWD\fP の場合、 \fIpathname\fP は (\fButimes\fP(2) 同様) 呼び出したプロセスのカレントワーキングディレクトリに対する相対パスと解釈される。 \fIpathname\fP が絶対パスの場合、 \fIdirfd\fP は無視される。 .SH 返り値 成功すると、 \fBfutimesat\fP() は 0 を返す。 エラーの場合、\-1 を返し、 \fIerrno\fP にエラーを示す値をセットする。 .SH エラー \fButimes\fP(2) で発生する可能性があるエラーのいくつかは \fBfutimesat\fP() でも起こること可能性がある。 また、 以下のエラーも \fBfutimesat\fP() では発生することがある。 .TP \fBEBADF\fP \fIdirfd\fP が有効なファイルディスクリプターでない。 .TP \fBENOTDIR\fP \fIpathname\fP が相対パスで、 \fIdirfd\fP がディレクトリ以外のファイルを参照するファイルディスクリプターである。 .SH バージョン \fBfutimesat\fP() はカーネル 2.6.16 で Linux に追加された。 ライブラリのサポートは glibc バージョン 2.4 で追加された。 .SH 準拠 このシステムコールは非標準である。 POSIX.1 に提案された仕様に基づいて実装されたが、 その仕様は \fButimensat\fP(2) で置き換えれた。 同様のシステムコールが Solaris に存在する。 .SH 注意 .SS "glibc での注意" .\" The Solaris futimesat() also has this strangeness. \fIpathname\fP が NULL の場合、 glibc の \fBfutimesat\fP() のラッパー関数は \fIdirfd\fP が参照するファイルの時刻情報を更新する。 .SH 関連項目 \fBstat\fP(2), \fButimensat\fP(2), \fButimes\fP(2), \fBfutimes\fP(3), \fBpath_resolution\fP(7) .SH この文書について この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部 である。プロジェクトの説明とバグ報告に関する情報は http://www.kernel.org/doc/man\-pages/ に書かれている。