Page MenuHomeFreeBSD

libc: add link_ntoa_r()
ClosedPublic

Authored by ivy on May 6 2025, 5:03 PM.
Tags
None
Referenced Files
F144460831: D50202.id154963.diff
Sun, Feb 8, 1:40 PM
F144444144: D50202.id154976.diff
Sun, Feb 8, 11:36 AM
F144442900: D50202.id155041.diff
Sun, Feb 8, 11:29 AM
Unknown Object (File)
Sat, Feb 7, 8:45 PM
Unknown Object (File)
Fri, Jan 30, 10:35 PM
Unknown Object (File)
Thu, Jan 29, 2:51 PM
Unknown Object (File)
Sun, Jan 18, 8:36 PM
Unknown Object (File)
Sat, Jan 17, 2:35 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.