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)
Mon, Nov 17, 11:57 PM
Unknown Object (File)
Wed, Nov 12, 8:43 PM
Unknown Object (File)
Wed, Nov 12, 6:19 PM
Unknown Object (File)
Wed, Nov 12, 3:56 PM
Unknown Object (File)
Wed, Nov 12, 12:11 PM
Unknown Object (File)
Tue, Nov 11, 4:15 AM
Unknown Object (File)
Oct 28 2025, 9:59 AM
Unknown Object (File)
Oct 27 2025, 3:24 PM

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.