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,
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to