sendto on an unconnected sock_stream unix socket can return ENOTCONN, which is not documented in the man page until now. Change that.
Details
Details
- Reviewers
markj - Group Reviewers
docs manpages - Commits
- rS360384: Document handling of connection-mode sockets by sendto(2).
Diff Detail
Diff Detail
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
lib/libc/sys/send.2 | ||
---|---|---|
79 | Sentences should start with a capital letter. | |
80 | Should be .Er ENOTCONN | |
82 | This sentence contradicts the previous one, which says that these functions can be used at any time. | |
208 | Usually we'd use the text from POSIX, in this case "The socket is connection-mode but is not connected." The text about implied open should be moved up to the paragraph that you're modifying above. |
Comment Actions
Updated according to review comments. ENOTCONN description aligned with POSIX. Self-contradiction rewritten.
Comment Actions
Clarified that destination address is ignored if socket is already connected, and clarified where the destination address is sent in the sendmsg call. Formatting.