Tony Finch wrote: > Drew Eckhardt <[EMAIL PROTECTED]> wrote: > >In message <[EMAIL PROTECTED]>, [EMAIL PROTECTED] 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. FreeBSD malloc() calls mmap() as AFAIK many (if not all) malloc() implementations. Maxime -- Don't be fooled by cheap finnish imitations ; BSD is the One True Code Key fingerprint = F9B6 1D5A 4963 331C 88FC CA6A AB50 1EF2 8CBE 99D6 Public Key : http://www.epita.fr/~henrio_m/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
- Re: Setting memory allocators for library functio... Dag-Erling Smorgrav
- Re: Setting memory allocators for library fun... Daniel C. Sobral
- [hackers] Re: Setting memory allocators for l... David Gilbert
- Re: [hackers] Re: Setting memory allocators f... Peter Seebach
- Re: [hackers] Re: Setting memory allocators f... Tony Finch
- Re: [hackers] Re: Setting memory allocators f... Peter Seebach
- Re: [hackers] Re: Setting memory allocators f... Lyndon Nerenberg
- Re: [hackers] Re: Setting memory allocators f... Tony Finch
- Re: [hackers] Re: Setting memory allocators f... Drew Eckhardt
- Re: [hackers] Re: Setting memory allocators f... Tony Finch
- Re: [hackers] Re: Setting memory allocators f... Maxime Henrion
- Re: [hackers] Re: Setting memory allocators f... Tony Finch
- Re: Setting memory allocators for library functions. Daniel C. Sobral
- Re: Setting memory allocators for library functio... Peter Seebach
- Re: Setting memory allocators for library fun... Warner Losh
- Re: Setting memory allocators for library fun... Archie Cobbs
- Re: Setting memory allocators for library fun... Julian Elischer
- Re: Setting memory allocators for library fun... Peter Seebach
- Re: Setting memory allocators for library fun... Daniel C. Sobral
- Re: Setting memory allocators for library fun... Peter Seebach
- Re: Setting memory allocators for library fun... Peter Dufault

