Query: zero
OS: hpux
Section: 7
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
zero(7) Miscellaneous Information Manual zero(7)NAMEzero - /dev/zero special fileDESCRIPTIONis a zero special file. Reads from a zero special file always return characters whose value is 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 modify 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.EXAMPLESIn the following example, the buffer is filled with characters. In the following example, the process now has a range of characters at memory locationFILESSEE ALSOmmap(2), null(7). zero(7)