Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jan 2025 21:49:36 GMT
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: fab411c4fd52 - main - munmap.2: Remove EINVAL for negative len
Message-ID:  <202501152149.50FLna4b004567@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=fab411c4fd5224e3dd44e0eb288d60b27480e2d1

commit fab411c4fd5224e3dd44e0eb288d60b27480e2d1
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2025-01-15 21:44:31 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2025-01-15 21:49:21 +0000

    munmap.2: Remove EINVAL for negative len
    
    len is unsigned (it is size_t), so cannot be negative.
    
    Sponsored by:   The FreeBSD Foundation
---
 lib/libsys/munmap.2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/libsys/munmap.2 b/lib/libsys/munmap.2
index 560ed0056260..d6b53f1bcf19 100644
--- a/lib/libsys/munmap.2
+++ b/lib/libsys/munmap.2
@@ -55,7 +55,7 @@ will fail if:
 .It Bq Er EINVAL
 The
 .Fa len
-argument was zero or negative, or
+argument was zero, or
 some part of the region being unmapped is outside the
 valid address range for a process.
 .El



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202501152149.50FLna4b004567>