]> git.ipfire.org Git - thirdparty/glibc.git/blame - hurd/hurdmalloc.h
y2038: Introduce struct __timespec64 - new internal glibc type
[thirdparty/glibc.git] / hurd / hurdmalloc.h
CommitLineData
6d52618b 1/* XXX this file is a temporary hack.
28f540f4
RM
2
3 All hurd-internal code which uses malloc et al includes this file so it
4 will use the internal malloc routines _hurd_{malloc,realloc,free}
5 instead. The "hurd-internal" functions are the cthreads version,
6 which uses vm_allocate and is thread-safe. The normal user version
7 of malloc et al is the unixoid one using sbrk.
8
9 */
10
11extern void *_hurd_malloc (size_t);
12extern void *_hurd_realloc (void *, size_t);
13extern void _hurd_free (void *);
14
e67f54ab
ST
15extern void _hurd_malloc_fork_prepare (void);
16extern void _hurd_malloc_fork_parent (void);
17extern void _hurd_malloc_fork_child (void);
18
28f540f4
RM
19#define malloc _hurd_malloc
20#define realloc _hurd_realloc
21#define free _hurd_free