cvs commit: src/lib/libc/include libc_private.h src/lib/libc/stdlib Makefile.inc calloc.c malloc.c posix_memalign.3 src/lib/libpthread/thread thr_fork.c src/lib/libthr/thread thr_fork.c src/libexec/rtld-elf malloc.c

Jason Evans jasone at FreeBSD.org
Wed Jan 11 23:28:22 PST 2006


jasone      2006-01-12 07:28:21 UTC

  FreeBSD src repository

  Modified files:
    lib/libc/include     libc_private.h 
    lib/libc/stdlib      Makefile.inc malloc.c 
    lib/libpthread/thread thr_fork.c 
    lib/libthr/thread    thr_fork.c 
    libexec/rtld-elf     malloc.c 
  Added files:
    lib/libc/stdlib      posix_memalign.3 
  Removed files:
    lib/libc/stdlib      calloc.c 
  Log:
  In preparation for a new malloc implementation:
  
    * Add posix_memalign().
  
    * Move calloc() from calloc.c to malloc.c.  Add a calloc() implementation in
      rtld-elf in order to make the loader happy (even though calloc() isn't
      used in rtld-elf).
  
    * Add _malloc_prefork() and _malloc_postfork(), and use them instead of
      directly manipulating __malloc_lock.
  
  Approved by:    phk, markm (mentor)
  
  Revision  Changes    Path
  1.14      +4 -3      src/lib/libc/include/libc_private.h
  1.50      +3 -2      src/lib/libc/stdlib/Makefile.inc
  1.8       +0 -61     src/lib/libc/stdlib/calloc.c (dead)
  1.91      +64 -0     src/lib/libc/stdlib/malloc.c
  1.1       +89 -0     src/lib/libc/stdlib/posix_memalign.3 (new)
  1.36      +3 -3      src/lib/libpthread/thread/thr_fork.c
  1.3       +4 -10     src/lib/libthr/thread/thr_fork.c
  1.11      +16 -0     src/libexec/rtld-elf/malloc.c


More information about the cvs-src mailing list