|
|
@ -600,7 +600,10 @@ void *OS_nonportable_mapfile(char *fname,long *filesizep,int32_t enablewrite) |
|
|
|
if ( ptr == 0 || ptr == MAP_FAILED ) |
|
|
|
{ |
|
|
|
if ( enablewrite != 0 ) |
|
|
|
printf("map_file.write%d: mapping %s failed? mp %p\n",enablewrite,fname,ptr); |
|
|
|
{ |
|
|
|
printf("map_file.write%d: mapping %s failed? mp %p, usually due to ulimit -n exceeded\n",enablewrite,fname,ptr); |
|
|
|
exit(-1); |
|
|
|
} |
|
|
|
return(0); |
|
|
|
} |
|
|
|
*filesizep = filesize; |
|
|
|