appears that setsockopt() may return errno ENOBUFS, but the manpage does not indicate so. http://pubs.opengroup.org/onlinepubs/009695399/functions/setsockopt.html fbsd 10.1
A commit references this bug: Author: pluknet Date: Sat Feb 9 21:33:32 UTC 2019 New revision: 343945 URL: https://svnweb.freebsd.org/changeset/base/343945 Log: Document the ENOBUFS errno in setsockopt(2). In particular, it is the case if SO_SNDBUF/SO_RCVBUF would exceed sb_max_adj. PR: 200649 MFC after: 1 week Changes: head/lib/libc/sys/getsockopt.2
A commit references this bug: Author: pluknet Date: Wed Feb 20 11:56:30 UTC 2019 New revision: 344357 URL: https://svnweb.freebsd.org/changeset/base/344357 Log: MFC r343945: Document the ENOBUFS errno in setsockopt(2). PR: 200649 Changes: _U stable/12/ stable/12/lib/libc/sys/getsockopt.2