Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Feb 2019 21:33:32 +0000 (UTC)
From:      Sergey Kandaurov <pluknet@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r343945 - head/lib/libc/sys
Message-ID:  <201902092133.x19LXW5E001791@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pluknet
Date: Sat Feb  9 21:33:32 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

Modified:
  head/lib/libc/sys/getsockopt.2

Modified: head/lib/libc/sys/getsockopt.2
==============================================================================
--- head/lib/libc/sys/getsockopt.2	Sat Feb  9 21:19:53 2019	(r343944)
+++ head/lib/libc/sys/getsockopt.2	Sat Feb  9 21:33:32 2019	(r343945)
@@ -28,7 +28,7 @@
 .\"     @(#)getsockopt.2	8.4 (Berkeley) 5/2/95
 .\" $FreeBSD$
 .\"
-.Dd August 21, 2018
+.Dd February 10, 2019
 .Dt GETSOCKOPT 2
 .Os
 .Sh NAME
@@ -534,7 +534,11 @@ transfer rate to the given unsigned 32-bit value in by
 .Sh RETURN VALUES
 .Rv -std
 .Sh ERRORS
-The call succeeds unless:
+The
+.Fn getsockopt
+and
+.Fn setsockopt
+system calls succeed unless:
 .Bl -tag -width Er
 .It Bq Er EBADF
 The argument
@@ -561,6 +565,15 @@ Installing an
 on a non-listening socket was attempted.
 .It Bq Er ENOMEM
 A memory allocation failed that was required to service the request.
+.El
+.Pp
+The
+.Fn setsockopt
+system call may also return the following error:
+.Bl -tag -width Er
+.It Bq Er ENOBUFS
+Insufficient resources were available in the system
+to perform the operation.
 .El
 .Sh SEE ALSO
 .Xr ioctl 2 ,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902092133.x19LXW5E001791>