\fBrenameat\fP() の必要性についての説明については \fBopenat\fP(2) を参照。
.SS renameat2()
-\fBrenameat2\fP() has an additional \fIflags\fP argument. A \fBrenameat2\fP() call
-with a zero \fIflags\fP argument is equivalent to \fBrenameat\fP().
+\fBrenameat2\fP() には追加の \fIflags\fP 引き数がある。 \fIflags\fP 引き数が 0 の \fBrenameat2\fP()
+の呼び出しは \fBrenameat\fP() と等価である。
-The \fIflags\fP argument is a bit mask consisting of zero or more of the
-following flags:
+\fIflags\fP 引き数は、以下のフラグの 0 個以上のビットマスクである。
.TP
\fBRENAME_NOREPLACE\fP
-Don't overwrite \fInewpath\fP. of the rename. Return an error if \fInewpath\fP
-already exists.
+rename の \fInewpath\fP を上書きしない。 \fInewpath\fP がすでに存在する場合エラーを返す。
.TP
\fBRENAME_EXCHANGE\fP
-Atomically exchange \fIoldpath\fP and \fInewpath\fP. Both pathnames must exist
-but may be of different types (e.g., one could be a non\-empty directory and
-the other a symbolic link).
+\fIoldpath\fP と \fInewpath\fP をアトミックに入れ換える。 両方のパス名が存在しなければならないが、 ファイル種別は異なっていてもよい
+(例えば、一方は空でないディレクトリで、もう一方はシンボリックリンクであるなど)。
.SH 返り値
成功した場合は 0 が返される。エラーの場合は \-1 が返され、 \fIerrno\fP が適切に設定される。
.SH エラー
\fBrenameat2\fP() では以下のエラーも発生する。
.TP
\fBEEXIST\fP
-\fIflags\fP contains \fBRENAME_NOREPLACE\fP and \fInewpath\fP already exists.
+\fIflags\fP に \fBRENAME_NOREPLACE\fP が指定されているが、 \fInewpath\fP がすでに存在する。
.TP
\fBEINVAL\fP
-An invalid flag was specified in \fIflags\fP, or both \fBRENAME_NOREPLACE\fP and
-\fBRENAME_EXCHANGE\fP were specified.
+\fIflags\fP に無効なフラグが指定された。 \fBRENAME_NOREPLACE\fP と \fBRENAME_EXCHANGE\fP の両方が指定された。
.TP
\fBEINVAL\fP
-The filesystem does not support one of the flags in \fIflags\fP.
+\fIflags\fP にファイルシステムでサポートされていないフラグが指定された。
.TP
\fBENOENT\fP
-\fIflags\fP contains \fBRENAME_EXCHANGE\fP and \fInewpath\fP does not exist.
+\fIflags\fP に \fBRENAME_EXCHANGE\fP が指定されたが、 \fInewpath\fP が存在しない。
.SH バージョン
\fBrenameat\fP() はカーネル 2.6.16 で Linux に追加された。 ライブラリによるサポートはバージョン 2.4 で glibc
に追加された。
\fBmv\fP(1), \fBchmod\fP(2), \fBlink\fP(2), \fBsymlink\fP(2), \fBunlink\fP(2),
\fBpath_resolution\fP(7), \fBsymlink\fP(7)
.SH この文書について
-この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.76 の一部
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.77 の一部
である。プロジェクトの説明とバグ報告に関する情報は
http://www.kernel.org/doc/man\-pages/ に書かれている。