OSDN Git Service

85ce3357d8fa9e17b5ded670b171dfcd250992c5
[linuxjm/LDP_man-pages.git] / release / man3 / futimes.3
1 .\" Copyright (c) 2006, 2008, 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 Akihiro MOTOKI all rights reserved.
32 .\" Translated 2006-07-31, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
33 .\" Updated 2008-08-07, Akihiro MOTOKI, LDP v3.05
34 .\" Updated 2013-04-03, Akihiro MOTOKI <amotoki@gmail.com>
35 .\"
36 .TH FUTIMES 3 2013\-03\-15 Linux "Linux Programmer's Manual"
37 .SH 名前
38 futimes, lutimes \- ファイルのタイムスタンプを変更する
39 .SH 書式
40 .nf
41 \fB#include <sys/time.h>\fP
42
43 \fBint futimes(int \fP\fIfd\fP\fB, const struct timeval \fP\fItv\fP\fB[2]);\fP
44
45 \fBint lutimes(const char *\fP\fIfilename\fP\fB, const struct timeval \fP\fItv\fP\fB[2]);\fP
46 .fi
47 .sp
48 .in -4n
49 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
50 .in
51 .sp
52 \fBfutimes\fP(), \fBlutimes\fP(): _BSD_SOURCE
53 .SH 説明
54 \fBfutimes\fP()  は \fButimes\fP(2)  と同じ方法でファイルのアクセス時刻と修正時刻を変更する。
55 違いは、タイムスタンプを変更するファイルを、 パス名ではなく、ファイルディスクリプタ \fIfd\fP を用いて指定する点である。
56
57 \fBlutimes\fP() は \fButimes\fP(2) と同じ方法でファイルのアクセス時刻と修正時刻を変更する。違いは、 \fIfilename\fP
58 がシンボリック・リンクを参照している場合に、リンクの展開を行わず、代わりにシンボリック・リンクのタイムスタンプを変更する点である。
59 .SH 返り値
60 成功した場合は 0 が返される。エラーの場合は \-1 が返され、 \fIerrno\fP が適切に設定される。
61 .SH エラー
62 エラーは \fButimes\fP(2)  と同じだが、 \fBfutimes\fP()  では以下のエラーが追加になっている:
63 .TP 
64 \fBEBADF\fP
65 \fIfd\fP が有効なファイルディスクリプタでない。
66 .TP 
67 \fBENOSYS\fP
68 The \fI/proc\fP filesystem could not be accessed.
69 .PP
70 \fBlutimes\fP() では以下のエラーが追加になっている:
71 .TP 
72 \fBENOSYS\fP
73 カーネルがこの関数をサポートしていない。 Linux 2.6.22 以降が必要である。
74 .SH バージョン
75 \fBfutimes\fP()  は glibc 2.3 以降で利用可能である。 \fBlutimes\fP()  は glibc 2.6 以降で利用可能であり、
76 \fButimensat\fP(2)  システムコールを使って実装されている。 \fButimensat\fP(2)  はカーネル 2.6.22
77 以降でサポートされている。
78 .SH 準拠
79 これらの関数はどの標準でも規定されていない。 Linux 以外では、これらは BSD でのみ利用可能である。
80 .SH 関連項目
81 \fButime\fP(2), \fButimensat\fP(2), \fBsymlink\fP(7)
82 .SH この文書について
83 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.54 の一部
84 である。プロジェクトの説明とバグ報告に関する情報は
85 http://www.kernel.org/doc/man\-pages/ に書かれている。