aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn-Mark Gurney <jmg@FreeBSD.org>2020-10-26 00:37:31 +0000
committerJohn-Mark Gurney <jmg@FreeBSD.org>2020-10-26 00:37:31 +0000
commit0fda26dbb363d0761fc0f01e65620542a53aec16 (patch)
tree42ddc0b7431fbadacf3ebd2a659d5907f7cf6c2c
parent2d34afcd04207cf3fa3d5b7f467a890eae75da41 (diff)
update write(2)'s iovec limit w/ info about the iosize_max_clamp sysctl...
Notes
svn path=/head/; revision=367048
-rw-r--r--lib/libc/sys/write.212
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/libc/sys/write.2 b/lib/libc/sys/write.2
index fb70c5e4186b..f05db0de81c4 100644
--- a/lib/libc/sys/write.2
+++ b/lib/libc/sys/write.2
@@ -28,7 +28,7 @@
.\" @(#)write.2 8.5 (Berkeley) 4/2/94
.\" $FreeBSD$
.\"
-.Dd March 30, 2020
+.Dd October 25, 2020
.Dt WRITE 2
.Os
.Sh NAME
@@ -240,9 +240,13 @@ array was negative.
.It Bq Er EINVAL
The sum of the
.Fa iov_len
-values in the
-.Fa iov
-array overflowed a 32-bit integer.
+values is greater than
+.Dv SSIZE_MAX
+(or greater than
+.Dv INT_MAX ,
+if the sysctl
+.Va debug.iosize_max_clamp
+is non-zero).
.It Bq Er ENOBUFS
The mbuf pool has been completely exhausted when writing to a socket.
.El