OSDN Git Service

a81bc1c10c8b6d5b6dfcb4f1a5aee97da15201c4
[linuxjm/LDP_man-pages.git] / draft / man4 / null.4
1 .\" Copyright (c) 1993 Michael Haardt (michael@moria.de),
2 .\"     Fri Apr  2 11:32:09 MET DST 1993
3 .\"
4 .\" This is free documentation; you can redistribute it and/or
5 .\" modify it under the terms of the GNU General Public License as
6 .\" published by the Free Software Foundation; either version 2 of
7 .\" the License, or (at your option) any later version.
8 .\"
9 .\" The GNU General Public License's references to "object code"
10 .\" and "executables" are to be interpreted as the output of any
11 .\" document formatting or typesetting system, including
12 .\" intermediate and printed output.
13 .\"
14 .\" This manual is distributed in the hope that it will be useful,
15 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
16 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 .\" GNU General Public License for more details.
18 .\"
19 .\" You should have received a copy of the GNU General Public
20 .\" License along with this manual; if not, write to the Free
21 .\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
22 .\" USA.
23 .\"
24 .\" Modified Sat Jul 24 17:00:12 1993 by Rik Faith (faith@cs.unc.edu)
25 .\"
26 .\" Japanese Version Copyright (c) 1996,1997,1998 ISHIKAWA Mutsumi
27 .\"         all rights reserved.
28 .\" Translated Tue Feb 6 16:42:51 JST 1997
29 .\"         by ISHIKAWA Mutsumi <ishikawa@linux.or.jp>
30 .\"
31 .\" Japanese Version Last Modified Sun Jan 11 04:04:34 JST 1998
32 .\"     by ISHIKAWA Mutsumi <ishikawa@linux.or.jp>
33 .\"
34 .\" WORD:       special file    スペシャルファイル
35 .\" WORD:       end of file     end of file
36 .\" WORD:       \0 character    \0 文字(null 文字)
37 .\" WORD:       device          デバイス
38 .\"
39 .TH NULL 4 1992-11-21 "Linux" "Linux Programmer's Manual"
40 .SH 名前
41 .\"O null, zero \- data sink
42 null, zero \- データの掃きだめ
43 .SH 説明
44 .\"O Data written to a \fBnull\fP or \fBzero\fP special file is discarded.
45 \fBnull\fP または \fBzero\fP スペシャルファイル(special file)に
46 書かれたデータは捨てられる。
47 .PP
48 .\"O Reads from the \fBnull\fP special file always return end of file (i.e.,
49 .\"O .BR read (2)
50 .\"O returns 0), whereas
51 .\"O reads from \fBzero\fP always return bytes containing zero (\e0 characters).
52 \fBnull\fP スペシャルファイルを読むと常に end of file が返され (つまり、
53 .BR read (2)
54 は 0 を返す)、対照的
55 に \fBzero\fP を読むと常にバイト数 0 (\e0 文字) が返される。
56 .LP
57 .\"O \fBnull\fP and \fBzero\fP are typically created by:
58 \fBnull\fP と \fBzero\fP は一般的に次のようにして作られる:
59 .RS
60 .sp
61 mknod \-m 666 /dev/null c 1 3
62 .br
63 mknod \-m 666 /dev/zero c 1 5
64 .br
65 chown root:root /dev/null /dev/zero
66 .RE
67 .SH ファイル
68 .I /dev/null
69 .br
70 .I /dev/zero
71 .SH 注意
72 .\"O If these devices are not writable and readable for all users, many
73 .\"O programs will act strangely.
74 これらのデバイスが全てのユーザに対して読み書き可能でない場合、
75 多くのプログラムの動作がおかしくなるだろう。
76 .SH 関連項目
77 .BR chown (1),
78 .BR mknod (1),
79 .BR full (4)
80 .\" .SH 翻訳者
81 .\" 石川 睦 <ishikawa@linux.or.jp>