git: libc/stdlib: Refactor aligned_alloc().

Rimvydas Jasinskas zrj at crater.dragonflybsd.org
Sun Apr 7 12:07:19 PDT 2019


commit d3a54aee8be483132cb76ecb195180d8c3cf9ed4
Author: zrj <rimvydas.jasinskas at gmail.com>
Date:   Wed Apr 3 16:26:44 2019 +0300

    libc/stdlib: Refactor aligned_alloc().
    
      * Lift the restriction from posix_memalign() that alignment should be
        more or equal to sizeof(void *).
      * Make aligned_alloc() a weak symbol.
      * Adjust the manpage.

Summary of changes:
 lib/libc/stdlib/Makefile.inc     |  2 +-
 lib/libc/stdlib/Symbol.map       |  1 +
 lib/libc/stdlib/aligned_alloc.c  | 49 -----------------------------------
 lib/libc/stdlib/nmalloc.c        | 55 +++++++++++++++++++++++++++++++++++-----
 lib/libc/stdlib/posix_memalign.3 |  8 +++---
 5 files changed, 55 insertions(+), 60 deletions(-)
 delete mode 100644 lib/libc/stdlib/aligned_alloc.c

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d3a54aee8be483132cb76ecb195180d8c3cf9ed4


-- 
DragonFly BSD source repository



More information about the Commits mailing list