lkml.org 
[lkml]   [2005]   [Nov]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: mmap64() behaviour on 64-bit machines ?
From
Date
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 <nmiell@comcast.net>

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

\
 
 \ /
  Last update: 2005-11-22 21:24    [W:0.058 / U:0.308 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site