Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Oct 2017 00:32:21 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r324942 - stable/11/lib/libc/sys
Message-ID:  <201710240032.v9O0WLtX046724@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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,



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