tzfile.5, tzselect.8: sync from tzdb upstream
[man-pages.git] / man4 / null.4
blob4097559978eff1f402fbd692a6cd494aea1c1576
1 .\" Copyright (c) 1993 Michael Haardt (michael@moria.de),
2 .\"     Fri Apr  2 11:32:09 MET DST 1993
3 .\"
4 .\" SPDX-License-Identifier: GPL-2.0-or-later
5 .\"
6 .\" Modified Sat Jul 24 17:00:12 1993 by Rik Faith (faith@cs.unc.edu)
7 .TH null 4 (date) "Linux man-pages (unreleased)"
8 .SH NAME
9 null, zero \- data sink
10 .SH DESCRIPTION
11 Data written to the
12 .I /dev/null
13 and
14 .I /dev/zero
15 special files is discarded.
16 .PP
17 Reads from
18 .I /dev/null
19 always return end of file (i.e.,
20 .BR read (2)
21 returns 0), whereas reads from
22 .I /dev/zero
23 always return bytes containing zero (\[aq]\e0\[aq] characters).
24 .PP
25 These devices are typically created by:
26 .PP
27 .in +4n
28 .EX
29 mknod \-m 666 /dev/null c 1 3
30 mknod \-m 666 /dev/zero c 1 5
31 chown root:root /dev/null /dev/zero
32 .EE
33 .in
34 .SH FILES
35 .I /dev/null
36 .br
37 .I /dev/zero
38 .SH NOTES
39 If these devices are not writable and readable for all users, many
40 programs will act strangely.
41 .PP
42 Since Linux 2.6.31,
43 .\" commit 2b83868723d090078ac0e2120e06a1cc94dbaef0
44 reads from
45 .I /dev/zero
46 are interruptible by signals.
47 (This change was made to help with bad latencies for large reads from
48 .IR /dev/zero .)
49 .SH SEE ALSO
50 .BR chown (1),
51 .BR mknod (1),
52 .BR full (4)