diff options
author | Ed Maste <emaste@FreeBSD.org> | 2017-10-17 02:51:45 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2017-10-17 02:51:45 +0000 |
commit | 31a4787b803d523363d9d6f3f9b8a2e77acc4b89 (patch) | |
tree | 8a11bd902b4121e2fe931435063bad37f79b3fa2 /lib | |
parent | 53ddaabc12cc7915e785f630e3edd1526a93b321 (diff) | |
download | src-31a4787b803d523363d9d6f3f9b8a2e77acc4b89.tar.gz src-31a4787b803d523363d9d6f3f9b8a2e77acc4b89.zip |
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
Notes
Notes:
svn path=/head/; revision=324683
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/sys/write.2 | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libc/sys/write.2 b/lib/libc/sys/write.2 index 823201362f28..9d469b5e9f00 100644 --- a/lib/libc/sys/write.2 +++ b/lib/libc/sys/write.2 @@ -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, |