OSDN Git Service

(split) LDP: Update the version to 3.53 in PO files
[linuxjm/LDP_man-pages.git] / draft / man2 / futimesat.2
index f292e3b..23035e3 100644 (file)
@@ -1,7 +1,6 @@
-.\" Hey Emacs! This file is -*- nroff -*- source.
-.\"
 .\" 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.
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
+.\"
+.\"*******************************************************************
 .\"
-.\" Japanese Version Copyright (c) 2006 Yuichi SATO
-.\"         all rights reserved.
-.\" Translated 2006-09-30 by Yuichi SATO <ysato444@yahoo.co.jp>, LDP v2.39
+.\" This file was generated with po4a. Translate the source file.
 .\"
-.TH FUTIMESAT 2 2009-12-13 "Linux" "Linux Programmer's Manual"
-.\"O .SH NAME
-.SH Ì¾Á°
-.\"O futimesat \- change timestamps of a file relative to a \
-.\"O directory file descriptor
-futimesat \- ¥Ç¥£¥ì¥¯¥È¥ê¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿¤«¤éÁêÂÐŪ¤Ê°ÌÃ֤ˤ¢¤ë¥Õ¥¡¥¤¥ë¤Î¥¿¥¤¥à¥¹¥¿¥ó¥×¤òÊѹ¹¤¹¤ë
-.\"O .SH SYNOPSIS
-.SH ½ñ¼°
+.\"*******************************************************************
+.TH FUTIMESAT 2 2012\-05\-10 Linux "Linux Programmer's Manual"
+.SH 名前
+futimesat \- ディレクトリファイルディスクリプタから相対的な位置にあるファイルのタイムスタンプを変更する
+.SH 書式
 .nf
-.\"O .B #include <fcntl.h>           /* Definition of AT_* constants */
-.B #include <fcntl.h>           /* AT_* Äê¿ô¤ÎÄêµÁ */
+\fB#include <fcntl.h> /* AT_* 定数の定義 */\fP
+\fB#include <sys/time.h>\fP
 .sp
-.BI "int futimesat(int " dirfd ", const char *" pathname ,
-.BI "              const struct timeval " times [2]);
+\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
-.\"O Feature Test Macro Requirements for glibc (see
-.\"O .BR feature_test_macros (7)):
-glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
-.RB ( feature_test_macros (7)
-»²¾È):
+glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
 .in
 .sp
-.BR futimesat ():
-.br
-.\"O Since glibc 2.10: _XOPEN_SOURCE >= 700 || _POSIX_C_SOURCE >= 200809L
-glibc 2.10 °Ê¹ß: _XOPEN_SOURCE >= 700 || _POSIX_C_SOURCE >= 200809L
-.br
-.\"O Before glibc 2.10:
-glibc 2.10 ¤è¤êÁ°:
-_ATFILE_SOURCE
-.\"O .SH DESCRIPTION
-.SH ÀâÌÀ
-.\"O This system call is obsolete.
-.\"O Use
-.\"O .BR utimensat (2)
-.\"O instead.
-¤³¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤ÏÇÑ»ßͽÄê¤Ç¤¢¤ë¡£
-Âå¤ï¤ê¤Ë
-.BR utimensat (2)
-¤ò»ÈÍѤ¹¤ë¤³¤È¡£
+\fBfutimesat\fP(): _GNU_SOURCE
+.SH 説明
+このシステムコールは廃止予定である。 代わりに \fButimensat\fP(2)  を使用すること。
 
-.\"O The
-.\"O .BR futimesat ()
-.\"O system call operates in exactly the same way as
-.\"O .BR utimes (2),
-.\"O except for the differences described in this manual page.
-.BR futimesat ()
-¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï¡¢¤³¤Î man ¥Ú¡¼¥¸¤ÇÀâÌÀ¤·¤Æ¤¤¤ë°ã¤¤¤¬¤¢¤ë°Ê³°¤Ï¡¢
-.BR utimes (2)
-¤ÈÁ´¤¯Æ±¤¸¤è¤¦¤ËÆ°ºî¤¹¤ë¡£
+\fBfutimesat\fP()  システムコールは、この man ページで説明している違いがある以外は、 \fButimes\fP(2)
+と全く同じように動作する。
 
-.\"O If the pathname given in
-.\"O .I pathname
-.\"O is relative, then it is interpreted relative to the directory
-.\"O referred to by the file descriptor
-.\"O .I dirfd
-.\"O (rather than relative to the current working directory of
-.\"O the calling process, as is done by
-.\"O .BR utimes (2)
-.\"O for a relative pathname).
-.I pathname
-¤Ç»ØÄꤵ¤ì¤ë¥Ñ¥¹Ì¾¤¬ÁêÂХѥ¹Ì¾¤Ç¤¢¤ë¾ì¹ç¡¢
-¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿
-.I dirfd
-¤Ç»²¾È¤µ¤ì¤ë¥Ç¥£¥ì¥¯¥È¥ê¤«¤é¤ÎÁêÂХѥ¹Ì¾¤È¤·¤Æ²ò¼á¤µ¤ì¤ë
-.RB ( utimes (2)
-¤Ç¤Ï¡¢ÁêÂХѥ¹¤Ï¸Æ¤Ó½Ð¤·¸µ¥×¥í¥»¥¹¤Î
-¥«¥ì¥ó¥È¥ï¡¼¥­¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤«¤é¤ÎÁêÂХѥ¹¤È¤Ê¤ë)¡£
+\fIpathname\fP で指定されるパス名が相対パス名である場合、 ファイルディスクリプタ \fIdirfd\fP
+で参照されるディレクトリからの相対パス名として解釈される (\fButimes\fP(2)  では、相対パスは呼び出し元プロセスの
+カレントワーキングディレクトリからの相対パスとなる)。
 
-.\"O If
-.\"O .I pathname
-.\"O is relative and
-.\"O .I dirfd
-.\"O is the special value
-.\"O .BR AT_FDCWD ,
-.\"O then
-.\"O .I pathname
-.\"O is interpreted relative to the current working
-.\"O directory of the calling process (like
-.\"O .BR utimes (2)).
-.I pathname
-¤¬ÁêÂХѥ¹¤Ç¤¢¤ê¡¢¤«¤Ä
-.I dirfd
-¤¬ÆÃÊ̤ÊÃÍ
-.B AT_FDCWD
-¤Ç¤¢¤ë¾ì¹ç¡¢
-.I pathname
-¤Ï
-.RB ( utimes (2)
-¤ÈƱ¤¸¤è¤¦¤Ë) ¸Æ¤Ó½Ð¤·¸µ¥×¥í¥»¥¹¤Î
-¥«¥ì¥ó¥È¥ï¡¼¥­¥ó¥°¥Ç¥£¥ì¥¯¥È¥ê¤«¤é¤ÎÁêÂХѥ¹Ì¾¤È¤·¤Æ²ò¼á¤µ¤ì¤ë¡£
+\fIpathname\fP が相対パスであり、かつ \fIdirfd\fP が特別な値 \fBAT_FDCWD\fP である場合、 \fIpathname\fP は
+(\fButimes\fP(2)  と同じように) 呼び出し元プロセスの カレントワーキングディレクトリからの相対パス名として解釈される。
 
-.\"O If
-.\"O .I pathname
-.\"O is absolute, then
-.\"O .I dirfd
-.\"O is ignored.
-.I pathname
-¤¬ÀäÂХѥ¹¤Ç¤¢¤ë¾ì¹ç¡¢
-.I dirfd
-¤Ï̵»ë¤µ¤ì¤ë¡£
-.\"O .SH "RETURN VALUE"
-.SH ÊÖ¤êÃÍ
-.\"O On success,
-.\"O .BR futimesat ()
-.\"O returns a 0.
-À®¸ù¤·¤¿¾ì¹ç¡¢
-.BR futimesat ()
-¤Ï 0 ¤òÊÖ¤¹¡£
-.\"O On error, \-1 is returned and
-.\"O .I errno
-.\"O is set to indicate the error.
-¥¨¥é¡¼¤Î¾ì¹ç¡¢\-1 ¤¬ÊÖ¤µ¤ì¤Æ¡¢
-.I errno
-¤Ë¤Ï¥¨¥é¡¼¤ò¼¨¤¹Ãͤ¬ÀßÄꤵ¤ì¤ë¡£
-.\"O .SH ERRORS
-.SH ¥¨¥é¡¼
-.\"O The same errors that occur for
-.\"O .BR utimes (2)
-.\"O can also occur for
-.\"O .BR futimesat ().
-.BR utimes (2)
-¤ÈƱ¤¸¥¨¥é¡¼¤¬
-.BR futimesat ()
-¤Ç¤âµ¯¤³¤ë¡£
-.\"O The following additional errors can occur for
-.\"O .BR futimesat ():
-.BR futimesat ()
-¤Ç¤Ï¡¢¤½¤Î¾¤Ë°Ê²¼¤Î¥¨¥é¡¼¤¬µ¯¤³¤ë:
-.TP
-.B EBADF
-.\"O .I dirfd
-.\"O is not a valid file descriptor.
-.I dirfd
-¤¬Í­¸ú¤Ê¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿¤Ç¤Ê¤¤¡£
-.TP
-.B ENOTDIR
-.\"O .I pathname
-.\"O is relative and
-.\"O .I dirfd
-.\"O is a file descriptor referring to a file other than a directory.
-.I pathname
-¤¬ÁêÂХѥ¹¤Ç¡¢¤«¤Ä
-.I dirfd
-¤¬¥Ç¥£¥ì¥¯¥È¥ê°Ê³°¤Î¥Õ¥¡¥¤¥ë¤ò»²¾È¤¹¤ë¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿¤Ç¤¢¤ë¡£
-.\"O .SH VERSIONS
-.SH ¥Ð¡¼¥¸¥ç¥ó
-.\"O .BR futimesat ()
-.\"O was added to Linux in kernel 2.6.16.
-.BR futimesat ()
-¤Ï Linux ¥«¡¼¥Í¥ë 2.6.16 ¤ÇÄɲ䵤줿¡£
-.\"O .SH "CONFORMING TO"
-.SH ½àµò
-.\"O This system call is nonstandard.
-.\"O It was implemented from a specification that was proposed for POSIX.1,
-.\"O but that specification was replaced by the one for
-.\"O .BR utimensat (2).
-¤³¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ïɸ½àŪ¤Ç¤Ï¤Ê¤¤¡£
-POSIX.1 ¤ÇÄó°Æ¤µ¤ì¤Æ¤¤¤¿»ÅÍͤËͳÍ褷¤Æ¼ÂÁõ¤µ¤ì¤¿¤¬¡¢
-¤½¤Î»ÅÍͤÏ
-.BR utimensat (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()  は Linux カーネル 2.6.16 で追加された。
+ライブラリによるサポートは glibc バージョン 2.4 で追加された。
+.SH 準拠
+このシステムコールは標準的ではない。 POSIX.1 で提案されていた仕様に由来して実装されたが、 その仕様は \fButimensat\fP(2)
+で置き換えられた。
 
-.\"O A similar system call exists on Solaris.
-Solaris ¤Ë¤Ï¡¢¤³¤ì¤ÈƱ¤¸¤è¤¦¤Ê¥·¥¹¥Æ¥à¥³¡¼¥ë¤¬Â¸ºß¤¹¤ë¡£
-.\"O .SH NOTES
-.\"O .SS Glibc Notes
-.SH Ãí°Õ
-.SS GLIBC ¤Ë¤Ä¤¤¤Æ¤ÎÃí°Õ
-.\"O If
-.\"O .I pathname
-.\"O is NULL, then the glibc
-.\"O .BR futimesat ()
-.\"O wrapper function updates the times for the file referred to by
-.\"O .IR dirfd .
-.I pathname
-¤¬ NULL ¤Î¾ì¹ç¡¢glibc ¤Î
-.BR futimesat ()
-¥é¥Ã¥Ñ¡¼´Ø¿ô¤Ï
-.I dirfd
-¤Ç»²¾È¤µ¤ì¤ë¥Õ¥¡¥¤¥ë¤Î»þ¹ï¤ò¹¹¿·¤¹¤ë¡£
+Solaris には、これと同じようなシステムコールが存在する。
+.SH 注意
+.SS "glibc についての注意"
 .\" The Solaris futimesat() also has this strangeness.
-.\"O .SH "SEE ALSO"
-.SH ´ØÏ¢¹àÌÜ
-.BR stat (2),
-.BR utimensat (2),
-.BR utimes (2),
-.BR futimes (3),
-.BR path_resolution (7)
+\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.53 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。