lightning
[Top][All Lists]
Advanced

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

Re: [Lightning] Re: failure with GNU lightning on Mac OS X 10.6.2


From: Ludovic Courtès
Subject: Re: [Lightning] Re: failure with GNU lightning on Mac OS X 10.6.2
Date: Tue, 23 Feb 2010 13:58:28 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Hi,

Paolo Bonzini <address@hidden> writes:

>        codeBuffer = mmap (NULL, 4096, PROT_EXEC | PROT_READ | PROT_WRITE,
>                    MAP_PRIVATE | MAP_ANON, -1, 0);
>
> (Ludovic proposed "-1" as the last argument).

In theory, it’s supposed to be ignored, but who knows.

Gnulib says (info "(gnulib) mmap"):

   * To get anonymous memory, on some platforms, you can use the flags
     `MAP_ANONYMOUS | MAP_PRIVATE' and `-1' instead of a file
     descriptor; on others you have to use a read-only file descriptor
     of `/dev/zero'.

Perhaps worth a try, too.

Thanks,
Ludo’.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]