Re: mmap64() behaviour on 64-bit machines ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2005-11-22 at 08:34 -0800, Badari Pulavarty wrote:
> Hi,
> 
> 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 <[email protected]>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux