zero(7)zero(7)NAMEzero - /dev/zero special file
DESCRIPTION
is a zero special file. Reads from a zero special file always return
characters whose value is 0 (\0 characters).
Data written on a zero special file is discarded or ignored.
Seeks on a zero special file always succeed.
When is memory mapped by calling the associated memory object behaves
as a object. It is initialized to all zeros. Writes to the object mod‐
ify the contents of the object which are observed by subsequent reads
to this object.
Both and are allowed.
When it is mapped shared, the memory object can be shared only with the
descendants of the current process. Modifications made to the object
are visible only to the process and its descendants.
When it is mapped private, any modifications done after are visible
only to the process.
EXAMPLES
In the following example, the buffer is filled with \0 characters.
In the following example, the process now has a range of \0 characters
at memory location
FILESSEE ALSOmmap(2), null(7).
zero(7)