Use MAP_FAILED instead of (void *) -1
While MAP_FAILED is generally defined to that value, we should not be relying on implementation details of system headers.
While MAP_FAILED is generally defined to that value, we should not be relying on implementation details of system headers.