We can also use MAP_FAILED instead of (void*)-1, but that's entirely up to you.