svn commit: r343945 - head/lib/libc/sys

Sergey Kandaurov pluknet at FreeBSD.org
Sat Feb 9 21:33:33 UTC 2019


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 ,


More information about the svn-src-all mailing list