HomeFreeBSD

pkg(7): replace usage of sbuf(9) with open_memstream(3)

Description

pkg(7): replace usage of sbuf(9) with open_memstream(3)

open_memstream(3) is a standard way to obtain the same feature we do get
by using sbuf(9) (aka dynamic size buffer), switching to using it makes
pkg(7) more portable, and reduces its number of dependencies.

Reviewed by: manu
Differential Revision: https://reviews.freebsd.org/D30005

(cherry picked from commit cc9a8a116d19daf224222506441e91a3d329160e)

Details

Provenance
baptAuthored on Apr 27 2021, 2:38 AM
Reviewer
manu
Differential Revision
D30005: pkg(7): replace usage of sbuf(9) with open_memstream(3)
Parents
rG1c6e6d014ae4: pkg(7): indentation fixes
Branches
Unknown
Tags
Unknown