This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how to delay cleanup from exit.c


Gian Lorenzo Meocci wrote:
Hi all,

How can I disable or delay a cleanup from exit function in stdlib/exit.c?
I have allocate some dynamic memory with malloc in gmon.c and I want
use them in mcleanup.

It may not be possible.


A portable implementation could use mmap to allocate memory, and munmap later to remove the mapping (see _POSIX_MAPPED_FILES).

Cheers,
Carlos.
--
Carlos O'Donell
CodeSourcery
carlos@codesourcery.com
(650) 331-3385 x716


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]