On Sat, Oct 6, 2012 at 12:40 PM, Dawe <dawed...@gmx.de> wrote: > I think this information is already given in the sentences before.
No, it isn't. The previous sentences say that MAP_FAILED is returned on error; this one says that MAP_FAILED is *only* returned on error. Contrast this to strtoul(), where ULONG_MAX is returned on error, but can also be returned on success, meaning you have to do extra steps (clear errno before, test it afterwards) to detect failure. This sentence is the one that makes it clear that that isn't the case with mmap(). Philip Guenther