Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Feb 2001 21:12:15 +0000
From:      Tony Finch <dot@dotat.at>
To:        Drew Eckhardt <drew@PoohSticks.ORG>
Cc:        Lyndon Nerenberg <lyndon@orthanc.ab.ca>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: [hackers] Re: Setting memory allocators for library functions.
Message-ID:  <20010227211215.M609@hand.dotat.at>
In-Reply-To: <200102272044.f1RKi0n13690@chopper.Poohsticks.ORG>
References:  <20010227202234.K609@hand.dotat.at> <200102272044.f1RKi0n13690@chopper.Poohsticks.ORG>

next in thread | previous in thread | raw e-mail | index | archive | help
Drew Eckhardt <drew@PoohSticks.ORG> wrote:
>In message <20010227202234.K609@hand.dotat.at>, dot@dotat.at writes:
>>In most cases it is impossible to declare the data read-only because
>>it originally had to be read-write and you can't change its attributes
>>later. 
>
>mprotect(2).

If it's available at all, mprotect() is often limited to memory
obtained with mmap(), i.e. not malloc(). Not great for portability.

Tony.
-- 
f.a.n.finch    fanf@covalent.net    dot@dotat.at
FORTH: NORTHEAST 6 TO GALE 8 DECREASING 5 OR 6. SLEET. MAINLY MODERATE.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010227211215.M609>