Basile STARYNKEVITCH <[EMAIL PROTECTED]> writes:
> Le Fri, Mar 24, 2006 at 04:24:46PM +0800, Davyd Madeley écrivait/wrote:
>> Quoting Goswin von Brederlow <[EMAIL PROTECTED]>:
>>
>> >mmap /dev/zero, that way you can pick the address you want.
>
>
> I suggest more precisely to
> mmap((void*)0, (size_t)size, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, (int)-1 /*no fd*/, (off_t)0)
>
> with MAP_ANONYMOUS you don't need to open /dev/zero (but internally it is
> the same)
>
> Regards
Is that protable or just a linux speciality?
MfG
Goswin
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]