OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / original / 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 .TH NULL 4 2009-02-23 "Linux" "Linux Programmer's Manual"
26 .SH NAME
27 null, zero \- data sink
28 .SH DESCRIPTION
29 Data written to a \fBnull\fP or \fBzero\fP special file is discarded.
30 .PP
31 Reads from the \fBnull\fP special file always return end of file (i.e.,
32 .BR read (2)
33 returns 0), whereas
34 reads from \fBzero\fP always return bytes containing zero (\e0 characters).
35 .LP
36 \fBnull\fP and \fBzero\fP are typically created by:
37 .RS
38 .sp
39 mknod \-m 666 /dev/null c 1 3
40 .br
41 mknod \-m 666 /dev/zero c 1 5
42 .br
43 chown root:root /dev/null /dev/zero
44 .RE
45 .SH FILES
46 .I /dev/null
47 .br
48 .I /dev/zero
49 .SH NOTES
50 If these devices are not writable and readable for all users, many
51 programs will act strangely.
52 .SH "SEE ALSO"
53 .BR chown (1),
54 .BR mknod (1),
55 .BR full (4)