OSDN Git Service

(split) LDP: Update release pages based on LDP 3.54 release
[linuxjm/LDP_man-pages.git] / release / man2 / mknod.2
index 07f5c9c..cb04fbd 100644 (file)
@@ -1,6 +1,6 @@
 .\" This manpage is Copyright (C) 1992 Drew Eckhardt;
-.\"                               1993 Michael Haardt
-.\"                               1993,1994 Ian Jackson.
+.\"             and Copyright (C) 1993 Michael Haardt
+.\"             and Copyright (C) 1993,1994 Ian Jackson.
 .\"
 .\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
 .\" You may distribute it under the terms of the GNU General
 .\" This file was generated with po4a. Translate the source file.
 .\"
 .\"*******************************************************************
+.\"
+.\" Japanese Version Copyright (c) 1997 SUTO, Mitsuaki
+.\"         all rights reserved.
+.\" Translated 1997-06-26, SUTO, Mitsuaki <suto@av.crl.sony.co.jp>
+.\" Updated & Modified 1999-03-01, NAKANO Takeo <nakano@apm.seikei.ac.jp>
+.\" Updated & Modified 2001-06-04, Yuichi SATO <ysato@h4.dion.ne.jp>
+.\" Updated & Modified 2003-07-26, Yuichi SATO <ysato444@yahoo.co.jp>
+.\" Updated & Modified 2004-12-31, Yuichi SATO
+.\" Updated 2005-09-06, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
+.\"
 .TH MKNOD 2 2013\-01\-27 Linux "Linux Programmer's Manual"
 .SH 名前
 mknod \- 特殊ファイルや通常のファイルを作成する
@@ -40,8 +50,9 @@ _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500 || _XOPEN_SOURCE\ &&\ _XOP
 .RE
 .ad
 .SH 説明
-システムコール \fBmknod\fP()  は \fIpathname\fP という名前のファイルシステム・ノード
-(ファイル、デバイススペシャルファイル、名前付きパイプ) を、 属性 \fImode\fP と \fIdev\fP の指定にしたがって作成する。
+The system call \fBmknod\fP()  creates a filesystem node (file, device special
+file or named pipe) named \fIpathname\fP, with attributes specified by \fImode\fP
+and \fIdev\fP.
 
 \fImode\fP 引き数には、作成するノードの許可属性 (permission) とタイプを指定する。 \fImode\fP
 の指定は以下にあげるファイルタイプのうちの 1 つと、 許可属性の組合せ (ビットごとの OR を使用) で行う。
@@ -60,10 +71,11 @@ _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500 || _XOPEN_SOURCE\ &&\ _XOP
 
 \fIpathname\fP が既に存在する場合、またはシンボリックリンクの場合、 この呼び出しは \fBEEXIST\fP エラーで失敗する。
 
-新しく作成されたノードの所有者はプロセスの実効ユーザ ID にセットされる。 新たに作られたノードを保持する 親ディレクトリの set\-group\-ID
-ビットがセットされていたり、 ファイルシステムが BSD のグループセマンティクスにしたがって
-マウントされている場合には、新しいノードのグループ所有権は親ディレクトリの グループ所有権を継承する (親ディレクトリと同じになる)。
-また、そうでなかった場合の所有グループはプロセスの実効グループ ID となる。
+The newly created node will be owned by the effective user ID of the
+process.  If the directory containing the node has the set\-group\-ID bit set,
+or if the filesystem is mounted with BSD group semantics, the new node will
+inherit the group ownership from its parent directory; otherwise it will be
+owned by the effective group ID of the process.
 .SH 返り値
 \fBmknod\fP()  は成功した場合 0 を、失敗した場合 \-1 を返す (失敗した場合 \fIerrno\fP がエラーの内容にしたがってセットされる)。
 .SH エラー
@@ -73,7 +85,7 @@ _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 500 || _XOPEN_SOURCE\ &&\ _XOP
 (\fBpath_resolution\fP(7)  も参照すること)。
 .TP 
 \fBEDQUOT\fP
-The user's quota of disk blocks or inodes on the file system has been
+The user's quota of disk blocks or inodes on the filesystem has been
 exhausted.
 .TP 
 \fBEEXIST\fP
@@ -105,15 +117,17 @@ exhausted.
 \fIpathname\fP 中のディレクトリ要素が、実際にはディレクトリでない。
 .TP 
 \fBEPERM\fP
-.\" For UNIX domain sockets and regular files, EPERM is only returned in
+.\" For UNIX domain sockets and regular files, EPERM is returned only in
 .\" Linux 2.2 and earlier; in Linux 2.4 and later, unprivileged can
 .\" use mknod() to make these files.
-\fImode\fP は通常のファイル・FIFO (名前付きパイプ)・UNIX ドメインソケット以外を 作成するようにセットされているが、実行者が特権
-(Linux では \fBCAP_MKNOD\fP ケーパビリティ (capability)) を持っていない。 または \fIpathname\fP
-を保持するファイルシステムが、指定されたノード形式をサポートしていない。
+\fImode\fP requested creation of something other than a regular file, FIFO
+(named pipe), or UNIX domain socket, and the caller is not privileged
+(Linux: does not have the \fBCAP_MKNOD\fP capability); also returned if the
+filesystem containing \fIpathname\fP does not support the type of node
+requested.
 .TP 
 \fBEROFS\fP
-\fIpathname\fP が読み出し専用ファイルシステム上のファイルを指している。
+\fIpathname\fP refers to a file on a read\-only filesystem.
 .SH 準拠
 .\" The Linux version differs from the SVr4 version in that it
 .\" does not require root permission to create pipes, also in that no
@@ -134,6 +148,6 @@ NFS を実現しているプロトコルには多くの不備が存在し、 そ
 \fBmount\fP(2), \fBsocket\fP(2), \fBstat\fP(2), \fBumask\fP(2), \fBunlink\fP(2),
 \fBmakedev\fP(3), \fBmkfifo\fP(3), \fBpath_resolution\fP(7)
 .SH この文書について
-この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.50 の一部
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.54 の一部
 である。プロジェクトの説明とバグ報告に関する情報は
 http://www.kernel.org/doc/man\-pages/ に書かれている。