git: libc: Add reallocarray() from OpenBSD.

Sascha Wildner swildner at crater.dragonflybsd.org
Sat Jan 12 14:45:46 PST 2019


commit 66932323fb4e091cea3058d26a75356388944e78
Author: Sascha Wildner <saw at online.de>
Date:   Sat Jan 12 23:37:36 2019 +0100

    libc: Add reallocarray() from OpenBSD.
    
    It is useful for dhcpcd, mandoc and libssh. Also some dports might pick
    it up. A few other dports have workarounds which, once reallocarray() is
    in release too, can be removed.
    
    Taken-from:     OpenBSD (manual page from FreeBSD)
    Pointed-out-by: aly

Summary of changes:
 include/stdlib.h                                   |   1 +
 lib/libc/Versions.def                              |   4 +
 lib/libc/stdlib/Makefile.inc                       |   5 +-
 lib/libc/stdlib/Symbol.map                         |   4 +
 lib/libc/stdlib/malloc.3                           |   5 +-
 lib/libc/stdlib/reallocarray.3                     | 142 +++++++++++++++++++++
 .../compat => lib/libc/stdlib}/reallocarray.c      |  10 +-
 sbin/dhcpcd/Makefile                               |   2 +-
 sbin/dhcpcd/config.h                               |   1 -
 sys/sys/param.h                                    |   3 +-
 10 files changed, 165 insertions(+), 12 deletions(-)
 create mode 100644 lib/libc/stdlib/reallocarray.3
 copy {crypto/libressl/crypto/compat => lib/libc/stdlib}/reallocarray.c (80%)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/66932323fb4e091cea3058d26a75356388944e78


-- 
DragonFly BSD source repository



More information about the Commits mailing list