OSDN Git Service

(split) LDP: Update draft and release (from the previous commit)
[linuxjm/LDP_man-pages.git] / release / man3 / mkstemp.3
index f9803a2..2842ab9 100644 (file)
@@ -101,13 +101,10 @@ _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500 || _XOPEN_SOURCE\ &&\ _XOP
 フラグ付きでオープンされる。
 
 .\" Reportedly, FreeBSD
-The \fBmkostemp\fP()  function is like \fBmkstemp\fP(), with the difference that
-the following bits\(emwith the same meaning as for \fBopen\fP(2)\(emmay be
-specified in \fIflags\fP: \fBO_APPEND\fP, \fBO_CLOEXEC\fP, and \fBO_SYNC\fP.  Note that
-when creating the file, \fBmkostemp\fP()  includes the values \fBO_RDWR\fP,
-\fBO_CREAT\fP, and \fBO_EXCL\fP in the \fIflags\fP argument given to \fBopen\fP(2);
-including these values in the \fIflags\fP argument given to \fBmkostemp\fP()  is
-unnecessary, and produces errors on some systems.
+\fBmkostemp\fP() 関数は \fBmkstemp\fP() と同様だが、 \fIflags\fP に \fBO_APPEND\fP, \fBO_CLOEXEC\fP,
+\fBO_SYNC\fP のビットを指定できる点が異なる (意味は \fBopen\fP(2) と同じである)。ファイルを作成する際、 \fBmkostemp\fP()
+は \fBopen\fP(2) に渡す \fIflags\fP 引き数に \fBO_RDWR\fP, \fBO_CREAT\fP, \fBO_EXCL\fP を含める。そのため、
+\fBmkostemp\fP() に渡す \fIflags\fP 引き数にこれらの値を含める必要はなく、システムによってはエラーが発生する点に注意すること。
 
 \fBmkstemps\fP() 関数は \fBmkstemp\fP() と同様だが、 \fItemplate\fP 内の文字列に長さ
 が \fIsuffixlen\fP 文字の接尾辞 (suffix) が含まれる点が異なる。