|
Packit |
6c4009 |
/* XXX this file is a temporary hack.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
All hurd-internal code which uses malloc et al includes this file so it
|
|
Packit |
6c4009 |
will use the internal malloc routines _hurd_{malloc,realloc,free}
|
|
Packit |
6c4009 |
instead. The "hurd-internal" functions are the cthreads version,
|
|
Packit |
6c4009 |
which uses vm_allocate and is thread-safe. The normal user version
|
|
Packit |
6c4009 |
of malloc et al is the unixoid one using sbrk.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
*/
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
extern void *_hurd_malloc (size_t);
|
|
Packit |
6c4009 |
extern void *_hurd_realloc (void *, size_t);
|
|
Packit |
6c4009 |
extern void _hurd_free (void *);
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
extern void _hurd_malloc_fork_prepare (void);
|
|
Packit |
6c4009 |
extern void _hurd_malloc_fork_parent (void);
|
|
Packit |
6c4009 |
extern void _hurd_malloc_fork_child (void);
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#define malloc _hurd_malloc
|
|
Packit |
6c4009 |
#define realloc _hurd_realloc
|
|
Packit |
6c4009 |
#define free _hurd_free
|