OSDN Git Service

(split) LDP: draft snapshot generated from latest pthread/ja.po files.
[linuxjm/LDP_man-pages.git] / release / man2 / futimesat.2
1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\"
3 .\" This manpage is Copyright (C) 2006, Michael Kerrisk
4 .\"
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
13 .\"
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\"
25 .\" Japanese Version Copyright (c) 2006 Yuichi SATO
26 .\"         all rights reserved.
27 .\" Translated 2006-09-30 by Yuichi SATO <ysato444@yahoo.co.jp>, LDP v2.39
28 .\"
29 .TH FUTIMESAT 2 2009-12-13 "Linux" "Linux Programmer's Manual"
30 .SH 名前
31 futimesat \- ディレクトリファイルディスクリプタから相対的な位置にあるファイルのタイムスタンプを変更する
32 .SH 書式
33 .nf
34 .B #include <fcntl.h>           /* AT_* 定数の定義 */
35 .sp
36 .BI "int futimesat(int " dirfd ", const char *" pathname ,
37 .BI "              const struct timeval " times [2]);
38 .fi
39 .sp
40 .in -4n
41 glibc 向けの機能検査マクロの要件
42 .RB ( feature_test_macros (7)
43 参照):
44 .in
45 .sp
46 .BR futimesat ():
47 .PD 0
48 .ad l
49 .RS 4
50 .TP 4
51 glibc 2.10 以降:
52 _XOPEN_SOURCE\ >=\ 700 || _POSIX_C_SOURCE\ >=\ 200809L
53 .TP
54 glibc 2.10 より前:
55 _ATFILE_SOURCE
56 .RE
57 .ad
58 .PD
59 .SH 説明
60 このシステムコールは廃止予定である。
61 代わりに
62 .BR utimensat (2)
63 を使用すること。
64
65 .BR futimesat ()
66 システムコールは、この man ページで説明している違いがある以外は、
67 .BR utimes (2)
68 と全く同じように動作する。
69
70 .I pathname
71 で指定されるパス名が相対パス名である場合、
72 ファイルディスクリプタ
73 .I dirfd
74 で参照されるディレクトリからの相対パス名として解釈される
75 .RB ( utimes (2)
76 では、相対パスは呼び出し元プロセスの
77 カレントワーキングディレクトリからの相対パスとなる)。
78
79 .I pathname
80 が相対パスであり、かつ
81 .I dirfd
82 が特別な値
83 .B AT_FDCWD
84 である場合、
85 .I pathname
86
87 .RB ( utimes (2)
88 と同じように) 呼び出し元プロセスの
89 カレントワーキングディレクトリからの相対パス名として解釈される。
90
91 .I pathname
92 が絶対パスである場合、
93 .I dirfd
94 は無視される。
95 .SH 返り値
96 成功した場合、
97 .BR futimesat ()
98 は 0 を返す。
99 エラーの場合、\-1 が返されて、
100 .I errno
101 にはエラーを示す値が設定される。
102 .SH エラー
103 .BR utimes (2)
104 と同じエラーが
105 .BR futimesat ()
106 でも起こる。
107 .BR futimesat ()
108 では、その他に以下のエラーが起こる:
109 .TP
110 .B EBADF
111 .I dirfd
112 が有効なファイルディスクリプタでない。
113 .TP
114 .B ENOTDIR
115 .I pathname
116 が相対パスで、かつ
117 .I dirfd
118 がディレクトリ以外のファイルを参照するファイルディスクリプタである。
119 .SH バージョン
120 .BR futimesat ()
121 は Linux カーネル 2.6.16 で追加された。
122 .SH 準拠
123 このシステムコールは標準的ではない。
124 POSIX.1 で提案されていた仕様に由来して実装されたが、
125 その仕様は
126 .BR utimensat (2)
127 で置き換えられた。
128
129 Solaris には、これと同じようなシステムコールが存在する。
130 .SH 注意
131 .SS GLIBC についての注意
132 .I pathname
133 が NULL の場合、glibc の
134 .BR futimesat ()
135 ラッパー関数は
136 .I dirfd
137 で参照されるファイルの時刻を更新する。
138 .\" The Solaris futimesat() also has this strangeness.
139 .SH 関連項目
140 .BR stat (2),
141 .BR utimensat (2),
142 .BR utimes (2),
143 .BR futimes (3),
144 .BR path_resolution (7)