summaryrefslogtreecommitdiffstats
path: root/lib/libc/db
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2000-11-21 00:49:58 +0000
committermillert <millert@openbsd.org>2000-11-21 00:49:58 +0000
commit9a234f2d418ae148212ed18a23b5178849a39a1d (patch)
treec734982f90fb67b397b641ed6c9d3277c40dfa0a /lib/libc/db
parentMissed this in the strnvis(3) commit. (diff)
downloadwireguard-openbsd-9a234f2d418ae148212ed18a23b5178849a39a1d.tar.xz
wireguard-openbsd-9a234f2d418ae148212ed18a23b5178849a39a1d.zip
Add pw_dup(3), a function to copy 'struct passwd'. It is allocated as
a single chunk with the strings pointing elsewhere in the buffer so a simple free() of the struct passwd * is all that is needed to decallocate.
Diffstat (limited to 'lib/libc/db')
0 files changed, 0 insertions, 0 deletions