From: deraadt Date: Mon, 24 Jun 2024 14:39:28 +0000 (+0000) Subject: changing EINVAL from "has no associated size" to "has insufficient size" X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f1d020899ca4cfb0cf22a5639626ef5e810f0680;p=openbsd changing EINVAL from "has no associated size" to "has insufficient size" does a better job of covering the case of partition not configured (size = 0) or other too-small decision the kernel may make --- diff --git a/lib/libc/sys/swapctl.2 b/lib/libc/sys/swapctl.2 index 2da86fa9887..3540fd69877 100644 --- a/lib/libc/sys/swapctl.2 +++ b/lib/libc/sys/swapctl.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: swapctl.2,v 1.25 2021/11/21 23:44:55 jan Exp $ +.\" $OpenBSD: swapctl.2,v 1.26 2024/06/24 14:39:28 deraadt Exp $ .\" $NetBSD: swapctl.2,v 1.10 1998/08/29 17:11:09 mrg Exp $ .\" .\" Copyright (c) 1997 Matthew R. Green @@ -29,7 +29,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: November 21 2021 $ +.Dd $Mdocdate: June 24 2024 $ .Dt SWAPCTL 2 .Os .Sh NAME @@ -197,7 +197,7 @@ has already been made available for swapping. .It Bq Er EINVAL The device configured by .Fa arg -has no associated size, or the +has insufficient size, or the .Fa cmd was unknown. .It Bq Er ENXIO