svn commit: r324942 - stable/11/lib/libc/sys
Ed Maste
emaste at FreeBSD.org
Tue Oct 24 00:32:22 UTC 2017
Author: emaste
Date: Tue Oct 24 00:32:20 2017
New Revision: 324942
URL: https://svnweb.freebsd.org/changeset/base/324942
Log:
MFC r324683: write.2: correct maximum nbytes size for EINVAL error
In FreeBSD 11 and later debug.iosize_max_clamp defaults to 0, and the
maximum nbytes count for write(2) is SSIZE_MAX. Update the man page to
document this, and mention the sysctl that can be set to obtain the
previous behaviour.
PR: 196666
Sponsored by: The FreeBSD Foundation
Modified:
stable/11/lib/libc/sys/write.2
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/lib/libc/sys/write.2
==============================================================================
--- stable/11/lib/libc/sys/write.2 Mon Oct 23 23:12:01 2017 (r324941)
+++ stable/11/lib/libc/sys/write.2 Tue Oct 24 00:32:20 2017 (r324942)
@@ -28,7 +28,7 @@
.\" @(#)write.2 8.5 (Berkeley) 4/2/94
.\" $FreeBSD$
.\"
-.Dd December 15, 2015
+.Dd October 23, 2017
.Dt WRITE 2
.Os
.Sh NAME
@@ -199,7 +199,12 @@ to enable writing on the disk label area.
The value
.Fa nbytes
is greater than
-.Dv INT_MAX .
+.Dv SSIZE_MAX
+(or greater than
+.Dv INT_MAX ,
+if the sysctl
+.Va debug.iosize_max_clamp
+is non-zero).
.El
.Pp
In addition,
More information about the svn-src-stable-11
mailing list