Re: mmap64() behaviour on 64-bit machines ?
From: Nicholas Miell
Date: Tue Nov 22 2005 - 15:21:05 EST
On Tue, 2005-11-22 at 08:34 -0800, Badari Pulavarty wrote:
> I am confused on the behaviour of mmap64() on 64-bit machines.
> When I run following simple program, I get SIGSEGV in memset().
> But if I replace mmap64() with mmap() - it works fine.
> I verified this on ppc64, em64t, amd64.
> Whats happening here ? Any clues ?
If I fix all the compiler warnings, it works for me.
Also, mmap/mmap64 return MAP_FAILED on failure, not 0, but the compiler
doesn't know to warn about that.
Nicholas Miell <nmiell@xxxxxxxxxxx>
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/