]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
write.2: correct maximum nbytes size for EINVAL error
authoremaste <emaste@FreeBSD.org>
Tue, 17 Oct 2017 02:51:45 +0000 (02:51 +0000)
committeremaste <emaste@FreeBSD.org>
Tue, 17 Oct 2017 02:51:45 +0000 (02:51 +0000)
commit999a7f348b03548bede4f14a813fe4e5974c18fd
tree8a11bd902b4121e2fe931435063bad37f79b3fa2
parentf90d196ea42c95254dd6a56daf38e41a5a28b479
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