OSDN Git Service

(split) LDP: Release pages for LDP v3.39.
[linuxjm/LDP_man-pages.git] / release / 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 .\"
27 .\" This file was generated with po4a. Translate the source file.
28 .\"
29 .\"*******************************************************************
30 .TH NULL 4 1992\-11\-21 Linux "Linux Programmer's Manual"
31 .SH 名前
32 null, zero \- データの掃きだめ
33 .SH 説明
34 \fBnull\fP または \fBzero\fP スペシャルファイル(special file)に 書かれたデータは捨てられる。
35 .PP
36 \fBnull\fP スペシャルファイルを読むと常に end of file が返され (つまり、 \fBread\fP(2)  は 0 を返す)、対照的 に
37 \fBzero\fP を読むと常にバイト数 0 (\e0 文字) が返される。
38 .LP
39 \fBnull\fP と \fBzero\fP は一般的に次のようにして作られる:
40 .RS
41 .sp
42 mknod \-m 666 /dev/null c 1 3
43 .br
44 mknod \-m 666 /dev/zero c 1 5
45 .br
46 chown root:root /dev/null /dev/zero
47 .RE
48 .SH ファイル
49 \fI/dev/null\fP
50 .br
51 \fI/dev/zero\fP
52 .SH 注意
53 これらのデバイスが全てのユーザに対して読み書き可能でない場合、 多くのプログラムの動作がおかしくなるだろう。
54 .SH 関連項目
55 \fBchown\fP(1), \fBmknod\fP(1), \fBfull\fP(4)