getpwnam(3) uses dbopen(3), which pulls all 3 database backends into
authorderaadt <deraadt@openbsd.org>
Mon, 22 Jan 2024 17:21:52 +0000 (17:21 +0000)
committerderaadt <deraadt@openbsd.org>
Mon, 22 Jan 2024 17:21:52 +0000 (17:21 +0000)
commit5f5ca73179e5fdfb1850b1c2693d82422f7e84ae
treeaea2b119b57fa849347d88ab8c84d57d8afbb436
parenta8a43a803f3adc7627c33f01d7b339b5b85e115b
getpwnam(3) uses dbopen(3), which pulls all 3 database backends into
static binaries.  If we call libc-private __hash_open() instead, it
results in a ~40K reduction in many static binaries.
ok millert
lib/libc/gen/getnetgrent.c
lib/libc/gen/getpwent.c