Back to index

glibc  2.9
hurdmalloc.h
Go to the documentation of this file.
00001 /* XXX this file is a temporary hack.
00002 
00003    All hurd-internal code which uses malloc et al includes this file so it
00004    will use the internal malloc routines _hurd_{malloc,realloc,free}
00005    instead.  The "hurd-internal" functions are the cthreads version,
00006    which uses vm_allocate and is thread-safe.  The normal user version
00007    of malloc et al is the unixoid one using sbrk.
00008 
00009  */
00010 
00011 extern void *_hurd_malloc (size_t);
00012 extern void *_hurd_realloc (void *, size_t);
00013 extern void _hurd_free (void *);
00014 
00015 #define malloc       _hurd_malloc
00016 #define realloc      _hurd_realloc
00017 #define free  _hurd_free