OSDN Git Service

(split) LDP: Update draft and release (from the previous commit)
[linuxjm/LDP_man-pages.git] / release / man2 / mkdir.2
index 13c7b8a..0165d40 100644 (file)
@@ -81,21 +81,18 @@ group ID ビットがセットされていたり、ファイルシステムが B
 もし親ディレクトリに set group ID ビットがセットされていれば新しく作成される ディレクトリにも set group ID
 ビットがセットされる。
 .SS mkdirat()
-The \fBmkdirat\fP()  system call operates in exactly the same way as
-\fBmkdir\fP(), except for the differences described here.
+\fBmkdirat\fP() システムコールは \fBmkdir\fP() と全く同様に動作するが、以下で説明する点が異なる。
 
-If the pathname given in \fIpathname\fP is relative, then it is interpreted
-relative to the directory referred to by the file descriptor \fIdirfd\fP
-(rather than relative to the current working directory of the calling
-process, as is done by \fBmkdir\fP()  for a relative pathname).
+\fIpathname\fP で指定されたパス名が相対パスの場合、このパス名はファイルディスクリプター \fIdirfd\fP
+が参照するディレクトリに対する相対パスと解釈される (\fBmkdir\fP()
+に相対パス名を渡した場合のように、呼び出したプロセスのカレントワーキングディレクトリに対する相対パスではない)。
 
-If \fIpathname\fP is relative and \fIdirfd\fP is the special value \fBAT_FDCWD\fP,
-then \fIpathname\fP is interpreted relative to the current working directory of
-the calling process (like \fBmkdir\fP()).
+\fIpathname\fP で指定されたパス名が相対パスで、 \fIdirfd\fP が特別な値 \fBAT_FDCWD\fP の場合、 (\fBmkdir\fP()
+と同様に) \fIpathname\fP は呼び出したプロセスのカレントワーキングディレクトリに対する相対パスと解釈される。
 
-If \fIpathname\fP is absolute, then \fIdirfd\fP is ignored.
+\fIpathname\fP で指定されたパス名が絶対パスの場合、 \fIdirfd\fP は無視される。
 .PP
-See \fBopenat\fP(2)  for an explanation of the need for \fBmkdirat\fP().
+\fBmkdirat\fP() の必要性についての説明については \fBopenat\fP(2) を参照。
 .SH 返り値
 \fBmkdir\fP() と \fBmkdirat\fP() は成功した場合 0 を、失敗した場合 \-1 を返す (また、 \fIerrno\fP
 がエラーの内容にしたがって適切に設定される)。
@@ -145,17 +142,16 @@ See \fBopenat\fP(2)  for an explanation of the need for \fBmkdirat\fP().
 \fBEROFS\fP
 \fIpathname\fP が読み出し専用ファイルシステム上のファイルを指している。
 .PP
-The following additional errors can occur for \fBmkdirat\fP():
+\fBmkdirat\fP() では以下のエラーも発生する。
 .TP 
 \fBEBADF\fP
 \fIdirfd\fP が適切なファイルディスクリプタでない。
 .TP 
 \fBENOTDIR\fP
-\fIpathname\fP is relative and \fIdirfd\fP is a file descriptor referring to a
-file other than a directory.
+\fIpathname\fP が相対パスで、 \fIdirfd\fP がディレクトリ以外のファイルを参照しているファイルディスクリプタである。
 .SH バージョン
-\fBmkdirat\fP()  was added to Linux in kernel 2.6.16; library support was added
-to glibc in version 2.4.
+\fBmkdirat\fP()  はカーネル 2.6.16 で Linux に追加された。 ライブラリによるサポートはバージョン 2.4 で glibc
+に追加された。
 .SH 準拠
 .\" SVr4 documents additional EIO, EMULTIHOP
 \fBmkdir\fP(): SVr4, BSD, POSIX.1\-2001, POSIX.1\-2008.