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

(cherry picked from commit da509c29089ab169b667ebdf82aa903987ba9c6d)

Details

Provenance
ivyAuthored on May 7 2025, 9:34 AM
Reviewer
des
Differential Revision
D50202: libc: add link_ntoa_r()
Parents
rG55f0de279306: libc tests: add tests for link_addr(3) and link_ntoa(3)
Branches
Unknown
Tags
Unknown