man 2 bind
on macOS Terminal contains this comment.
... The rules used in address binding vary between communication domains. Consult the manual entries in section 4 for detailed information.
What's the "the manual entries in section 4" and how to find it? I'm pretty sure that this is referring an entry in BSD manual, but I have no idea how to find it.
I tried man 4 bind
but it says
No entry for bind in section 4 of the manual
A search of the FreeBSD manual does not show any result.
I tried various searches and every BSD-based manual pages say same "section 4" stuff, but no one has link to it. I see Linux manual for bind
has more information, but it's for Linux and could be different with macOS as it is based on BSD. And I heard that bind
can show different behaviors on different platforms. I want to get a precise manual for macOS bind
.
The initial intention was looking for guaranteed behavior about how bind(0)
works on macOS. I know that is likely to give binding to a free port, but I just want to check whether it is guaranteed by the OS vendor.