1zero(7D) Devices zero(7D)
2
3
4
6 zero - source of zeroes
7
9 A zero special file is a source of zeroed unnamed memory.
10
11
12 Reads from a zero special file always return a buffer full of zeroes.
13 The file is of infinite length.
14
15
16 Writes to a zero special file are always successful, but the data writ‐
17 ten is ignored.
18
19
20 Mapping a zero special file creates a zero-initialized unnamed memory
21 object of a length equal to the length of the mapping and rounded up to
22 the nearest page size as returned by sysconf. Multiple processes can
23 share such a zero special file object provided a common ancestor mapped
24 the object MAP_SHARED.
25
27 /dev/zero
28
29
31 fork(2), mmap(2), sysconf(3C)
32
33
34
35SunOS 5.11 3 Jul 1990 zero(7D)