HomeFreeBSD

libc: add link_ntoa_r()

Description

libc: add link_ntoa_r()

this is a re-entrant version of link_ntoa. use an in-out parameter for
the buffer size, so the user requires at most two calls to determine the
needed size.

reimplement link_ntoa using link_ntoa_r with a static buffer.

Reviewed by: des
Approved by: des (mentor)
Differential Revision: https://reviews.freebsd.org/D50202

Details

Provenance
ivyAuthored on May 7 2025, 9:34 AM
Reviewer
des
Differential Revision
D50202: libc: add link_ntoa_r()
Parents
rG6f2b1b56ac3d: column(1): add tests
Branches
Unknown
Tags
Unknown