lkml.org 
[lkml]   [2004]   [Jul]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [OT] Testing PROT_NONE and other protections, and a surprise
On Thu, Jul 01, 2004 at 10:43:05AM -0400, Kyle Moffett wrote:
> On Jul 01, 2004, at 08:39, Jamie Lokier wrote:
> >The error code is -1, aka. MAP_FAILED.
> Oops! I guess I was just lucky that part didn't fail :-D On the other
> hand, it
> couldn't legally return 0 anyway, could it? That would have been a
> slightly
> more sensible error code, IMHO, anyway, but it probably came from some
> silly standard somewhere.

It can, but only if you explicitly ask for it (MAP_FIXED with 0 as an
address), and it is very useful for DOS emulators.

Cheers,
Gabriel
-
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-03-22 14:04    [W:0.062 / U:1.460 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site