[Bug 245817] sendto() can return ENOTCONN on SOCK_STREAM unix socket, which is not documented

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Apr 27 16:12:59 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245817

--- Comment #3 from commit-hook at freebsd.org ---
A commit references this bug:

Author: markj
Date: Mon Apr 27 16:12:33 UTC 2020
New revision: 360384
URL: https://svnweb.freebsd.org/changeset/base/360384

Log:
  Document handling of connection-mode sockets by sendto(2).

  sendto(2), sendmsg(2) and sendmmsg(2) return ENOTCONN if a destination
  address is specified and the socket is not connected and the socket
  protocol does not automatically connect ("implied connect").  Document
  that.  Also document the fact that the destination address is ignored
  for connection-mode sockets if the socket is already connected.

  PR:           245817
  Submitted by: Erik Inge Bols? <knan-bfo at modirum.com>
  MFC after:    1 week
  Differential Revision:        https://reviews.freebsd.org/D24530

Changes:
  head/lib/libc/sys/send.2

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-doc mailing list