I agree, including unnecessary text makes the man page harder to use,
but I don't see why the memory could not be filled with 0xFF bytes, or
with bytes coming from /dev/urandom.

Since the man pages are "the authoritative source of information for
OpenBSD", I am currently forced to assume that the newly allocated
memory is in an undefined state (because that state is not defined in
the documentation).  I can't rely on an undocumented feature.

Of course it is zero filled.  What else would it be?  There are no
plausible alternatives.

I think it detracts from the rest of the message to say something
so obvious.

>In the man page of mmap(2), the description of the flag MAP_ANON
>does not indicate the state of the newly allocated memory.
>
>Is it zero-initialized? Or is it undefined?

Reply via email to