diff options
author | emaste <emaste@FreeBSD.org> | 2017-10-24 00:32:20 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2017-10-24 00:32:20 +0000 |
commit | 437420bdd4d55880baee17253a96e85b8e360ec0 (patch) | |
tree | 61dff19535760d151983b73d0a9107bd5b4f7309 /lib | |
parent | 98a14afd79eb83741a856278038fd47a98c179d5 (diff) | |
download | FreeBSD-src-437420bdd4d55880baee17253a96e85b8e360ec0.zip FreeBSD-src-437420bdd4d55880baee17253a96e85b8e360ec0.tar.gz |
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
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 0bfe565..7c3e409 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 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, |