git: DragonFly_RELEASE_6_4 hcreate(3): Stop freeing key values

Aaron LI aly at crater.dragonflybsd.org
Sun Oct 4 06:12:27 PDT 2026


commit 832c4d84aea2b0a8cdff369bb06684f497870ae2
Author: Aaron LI <aly at aaronly.me>
Date:   Sun Oct 4 20:59:28 2026 +0800

    hcreate(3): Stop freeing key values
    
    POSIX leaves ownership of ENTRY.key with the caller. NetBSD and FreeBSD
    both stopped freeing key values in July 2014, and OpenBSD made the
    change in August 2026.
    
    Update the function description in the man page according to OpenBSD's;
    adjust the example in the man page according to the POSIX spec.
    
    OpenBSD: https://github.com/openbsd/src/commit/99858244924d27f541bdf37cb5565ee9525d7753
    POSIX: https://pubs.opengroup.org/onlinepubs/9799919799/functions/hcreate.html
    Bug: https://bugs.dragonflybsd.org/issues/1398

Summary of changes:
 lib/libc/stdlib/hcreate.3 | 113 +++++++++++++++++++++-------------------------
 lib/libc/stdlib/hcreate.c |   1 -
 2 files changed, 52 insertions(+), 62 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/832c4d84aea2b0a8cdff369bb06684f497870ae2


-- 
DragonFly BSD source repository


More information about the Commits mailing list