OSDN Git Service

0cf252237f48dbb9dfe7a190ef89eeb673eca884
[linuxjm/LDP_man-pages.git] / release / man2 / futimesat.2
1 .\" This manpage is Copyright (C) 2006, Michael Kerrisk
2 .\"
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" %%%LICENSE_END
24 .\"
25 .\"*******************************************************************
26 .\"
27 .\" This file was generated with po4a. Translate the source file.
28 .\"
29 .\"*******************************************************************
30 .\"
31 .\" Japanese Version Copyright (c) 2006 Yuichi SATO
32 .\"         all rights reserved.
33 .\" Translated 2006-09-30 by Yuichi SATO <ysato444@yahoo.co.jp>, LDP v2.39
34 .\" Updated 2012-05-29, Akihiro MOTOKI <amotoki@gmail.com>
35 .\"
36 .TH FUTIMESAT 2 2012\-05\-10 Linux "Linux Programmer's Manual"
37 .SH 名前
38 futimesat \- ディレクトリファイルディスクリプタに対する相対パスのファイルのタイムスタンプを変更する
39 .SH 書式
40 .nf
41 \fB#include <fcntl.h> /* AT_* 定数の定義 */\fP
42 \fB#include <sys/time.h>\fP
43 .sp
44 \fBint futimesat(int \fP\fIdirfd\fP\fB, const char *\fP\fIpathname\fP\fB,\fP
45 \fB              const struct timeval \fP\fItimes\fP\fB[2]);\fP
46 .fi
47 .sp
48 .in -4n
49 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
50 .in
51 .sp
52 \fBfutimesat\fP(): _GNU_SOURCE
53 .SH 説明
54 このシステムコールは廃止予定である。代わりに \fButimensat\fP を使用すること。
55
56 \fBfutimesat\fP() システムコールは \fButimes\fP() と全く同様に動作するが、このマニュアルページで説明する点が異なる。
57
58 \fIpathname\fP で渡されたパス名が相対パスの場合、 パス名はファイルディスクリプター \fIdirfd\fP
59 が参照するディレクトリに対する相対パスと解釈される (相対パスの場合に \fButimes\fP(2)
60 で行われるように、呼び出したプロセスのカレントワーキングディレクトリに対する相対パスと解釈されるわけではない)。
61
62 \fIpathname\fP が相対パスで \fIdirfd\fP が特別な値 \fBAT_FDCWD\fP の場合、 \fIpathname\fP は
63 (\fButimes\fP(2) 同様) 呼び出したプロセスのカレントワーキングディレクトリに対する相対パスと解釈される。
64
65 \fIpathname\fP が絶対パスの場合、 \fIdirfd\fP は無視される。
66 .SH 返り値
67 成功すると、 \fBfutimesat\fP()  は 0 を返す。 エラーの場合、\-1 を返し、 \fIerrno\fP にエラーを示す値をセットする。
68 .SH エラー
69 \fButimes\fP(2) で発生する可能性があるエラーのいくつかは \fBfutimesat\fP() でも起こること可能性がある。
70 また、 以下のエラーも \fBfutimesat\fP() では発生することがある。
71 .TP 
72 \fBEBADF\fP
73 \fIdirfd\fP が有効なファイルディスクリプタでない。
74 .TP 
75 \fBENOTDIR\fP
76 \fIpathname\fP が相対パスで、 \fIdirfd\fP がディレクトリ以外のファイルを参照するファイルディスクリプタである。
77 .SH バージョン
78 \fBfutimesat\fP() はカーネル 2.6.16 で Linux に追加された。 ライブラリのサポートは glibc バージョン 2.4
79 で追加された。
80 .SH 準拠
81 このシステムコールは非標準である。 POSIX.1 に提案された仕様に基づいて実装されたが、 その仕様は \fButimensat\fP(2)
82 で置き換えれた。
83
84 同様のシステムコールが Solaris に存在する。
85 .SH 注意
86 .SS "glibc での注意"
87 .\" The Solaris futimesat() also has this strangeness.
88 \fIpathname\fP が NULL の場合、 glibc の \fBfutimesat\fP() のラッパー関数は \fIdirfd\fP
89 が参照するファイルの時刻情報を更新する。
90 .SH 関連項目
91 \fBstat\fP(2), \fButimensat\fP(2), \fButimes\fP(2), \fBfutimes\fP(3),
92 \fBpath_resolution\fP(7)
93 .SH この文書について
94 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.78 の一部
95 である。プロジェクトの説明とバグ報告に関する情報は
96 http://www.kernel.org/doc/man\-pages/ に書かれている。