0

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.

enter image description here


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.

James Risner
  • 5,451
  • 11
  • 25
  • 47
eonil
  • 83,476
  • 81
  • 317
  • 516
  • This link mention section 7 : https://www.man7.org/linux/man-pages/man2/bind.2.html – Philippe Jun 14 '20 at 22:52
  • 1
    @Philippe It's a Linux man page, not the macOS man page. – zrzka Jun 15 '20 at 06:43
  • 2
    @Eonil there's no `bind` in the `man4` folder. My guess is that it refers to `man 4 unix`, `man 4 ip`, ... Man pages are stored inside the `/usr/share/man` folder, but I'm afraid you wont find more info there (about `bind`). – zrzka Jun 15 '20 at 06:47

1 Answers1

0

The rules used in address binding vary between communication domains. Consult the manual entries in section 4 for detailed information.

This is not referring to bind in section 4, it is referring to domains. Some examples are:

man 4 ip
man 4 ip6
man 4 net
James Risner
  • 5,451
  • 11
  • 25
  • 47