Kazunori-san, > - return (void*) -1; > + > + if (ptr == (void*)-1) { > + errno = EACCES; > + return NULL; > + } > + I think MAP_FAILED would be better here, rather than explicitly using (void *)-1. Alternatively, should the API say that MAP_FAILED is the correct error code? Regards, Jeremy