Page MenuHomeFreeBSD

libc: add link_ntoa_r()
ClosedPublic

Authored by ivy on May 6 2025, 5:03 PM.
Tags
None
Referenced Files
F123276324: D50202.id154976.diff
Sun, Jul 13, 1:50 AM
Unknown Object (File)
Mon, Jul 7, 3:23 PM
Unknown Object (File)
Sun, Jul 6, 5:11 PM
Unknown Object (File)
Thu, Jul 3, 5:47 PM
Unknown Object (File)
Sat, Jun 28, 4:15 PM
Unknown Object (File)
Mon, Jun 23, 8:02 AM
Unknown Object (File)
Sun, Jun 15, 8:10 AM
Unknown Object (File)
Jun 12 2025, 5:53 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.