]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
write.2: correct maximum nbytes size for EINVAL error
authorEd Maste <emaste@FreeBSD.org>
Tue, 17 Oct 2017 02:51:45 +0000 (02:51 +0000)
committerEd Maste <emaste@FreeBSD.org>
Tue, 17 Oct 2017 02:51:45 +0000 (02:51 +0000)
commit31a4787b803d523363d9d6f3f9b8a2e77acc4b89
tree8a11bd902b4121e2fe931435063bad37f79b3fa2
parent53ddaabc12cc7915e785f630e3edd1526a93b321
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
lib/libc/sys/write.2