hurdmalloc.h 712 B

123456789101112131415161718192021
  1. /* XXX this file is a temporary hack.
  2. All hurd-internal code which uses malloc et al includes this file so it
  3. will use the internal malloc routines _hurd_{malloc,realloc,free}
  4. instead. The "hurd-internal" functions are the cthreads version,
  5. which uses vm_allocate and is thread-safe. The normal user version
  6. of malloc et al is the unixoid one using sbrk.
  7. */
  8. extern void *_hurd_malloc (size_t);
  9. extern void *_hurd_realloc (void *, size_t);
  10. extern void _hurd_free (void *);
  11. extern void _hurd_malloc_fork_prepare (void);
  12. extern void _hurd_malloc_fork_parent (void);
  13. extern void _hurd_malloc_fork_child (void);
  14. #define malloc _hurd_malloc
  15. #define realloc _hurd_realloc
  16. #define free _hurd_free