Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Oct 2017 02:51:45 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r324683 - in head/lib: libc/sys libstand
Message-ID:  <201710170251.v9H2pjVP086345@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Tue Oct 17 02:51:45 2017
New Revision: 324683
URL: https://svnweb.freebsd.org/changeset/base/324683

Log:
  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
  MFC after:	1 week
  Sponsored by:	The FreeBSD Foundation

Added:
  head/lib/libstand/
     - copied from r324627, head/lib/libstand/
Modified:
  head/lib/libc/sys/write.2

Modified: head/lib/libc/sys/write.2
==============================================================================
--- head/lib/libc/sys/write.2	Tue Oct 17 01:15:55 2017	(r324682)
+++ head/lib/libc/sys/write.2	Tue Oct 17 02:51:45 2017	(r324683)
@@ -28,7 +28,7 @@
 .\"     @(#)write.2	8.5 (Berkeley) 4/2/94
 .\" $FreeBSD$
 .\"
-.Dd December 15, 2015
+.Dd October 16, 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?201710170251.v9H2pjVP086345>