From owner-svn-src-all@freebsd.org Tue Oct 17 02:51:46 2017 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F05A0E27F34; Tue, 17 Oct 2017 02:51:46 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BDB047E0E6; Tue, 17 Oct 2017 02:51:46 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v9H2pj7l086346; Tue, 17 Oct 2017 02:51:45 GMT (envelope-from emaste@FreeBSD.org) Received: (from emaste@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v9H2pjVP086345; Tue, 17 Oct 2017 02:51:45 GMT (envelope-from emaste@FreeBSD.org) Message-Id: <201710170251.v9H2pjVP086345@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: emaste set sender to emaste@FreeBSD.org using -f From: Ed Maste Date: Tue, 17 Oct 2017 02:51:45 +0000 (UTC) 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 X-SVN-Group: head X-SVN-Commit-Author: emaste X-SVN-Commit-Paths: in head/lib: libc/sys libstand X-SVN-Commit-Revision: 324683 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Oct 2017 02:51:47 -0000 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,