While here, make a wider use of .Dv macro for socket types and protocol families and reference fcntl(2) flags for the type argument values.
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
| lib/libsys/socket.2 | ||
|---|---|---|
| 126–148 | Here I changed .Bd to .Bl, because I've already done this for a list of protocol families above. Also, it allows to use a .Dv for values here. | |
Comment Actions
I think this looks great! Let's wait for a second opinion on the content and then I'd be happy to take this.
| lib/libsys/socket.2 | ||
|---|---|---|
| 84 | Let's document it as legacy. | |
| 88 | ipsec(4) should be referenced here. | |
| 94 | The ng_ksocket reference better be removed, it will create more confusion than help. And I'd better reference netgraph(3) than netgraph(4). The former talks about how to use netgraph sockets while the latter on how build netgraph nodes. | |
| 148 | Let's make it consistent: use either descriptor or socket. Let's also make a reference to exact fcntl(2) flags that are set. Mention FD_CLOEXEC, FD_CLOFORK, and F_SETFL with O_NONBLOCK. | |