>>>>> "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:

Jean-Marc> RETURN VALUES

Jean-Marc>   Upon successful completion, the mmap() function returns
Jean-Marc> the address at which the mapping was placed. Otherwise,
Jean-Marc> mmap() returns (caddr_t)-1 and sets errno to indicate the
Jean-Marc> error.

Actually in sysmman.h, I find
/usr/include/sys/mman.h:#define MAP_FAILED      (-1L)   /* unsuccessful return from 
mmap() */

So the reinterpret_cast is probably the right solution here. 

UNfortunately, I cannot apply the patch just to try it out, because I
am over a telnet connection.

JMarc

PS: sorry for posting the whole man page. This was not the intent.

Reply via email to