Page MenuHomeFreeBSD

libc: add link_ntoa_r()
ClosedPublic

Authored by ivy on May 6 2025, 5:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 12, 5:46 AM
Unknown Object (File)
Sat, Sep 27, 10:29 PM
Unknown Object (File)
Wed, Sep 24, 3:14 PM
Unknown Object (File)
Sep 3 2025, 10:46 PM
Unknown Object (File)
Sep 2 2025, 10:42 PM
Unknown Object (File)
Aug 27 2025, 1:16 AM
Unknown Object (File)
Aug 12 2025, 2:02 PM
Unknown Object (File)
Jul 29 2025, 8:46 AM

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ivy requested review of this revision.May 6 2025, 5:03 PM

remove an unnecessary and frankly excessive blank line

des requested changes to this revision.May 7 2025, 7:29 AM
des added inline comments.
lib/libc/net/linkaddr.3
151
lib/libc/net/linkaddr.c
35
40
42

These are out of order.

This revision now requires changes to proceed.May 7 2025, 7:29 AM

use .Fx in the manpage; sort linkaddr.c includes

ivy marked 4 inline comments as done.May 7 2025, 8:24 AM
This revision is now accepted and ready to land.May 7 2025, 9:31 AM
This revision was automatically updated to reflect the committed changes.