The branch main has been updated by emaste:

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

commit 724e383bd4c40ea7db4bf2f1e9b8d2c741c6b481
Author:     Ed Maste <ema...@freebsd.org>
AuthorDate: 2025-01-15 21:43:49 +0000
Commit:     Ed Maste <ema...@freebsd.org>
CommitDate: 2025-01-16 17:50:47 +0000

    munmap.2: Add STANDARDS and note about portability
    
    POSIX used to specify that munmap shall fail with EINVAL if the addr
    argument is not a multiple of the page size, but that was changed to
    may fail.  Note that we conform to contemporary POSIX and include a
    brief note for portable programs.
    
    Reviewed by:    brooks
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D48481
---
 lib/libsys/munmap.2 | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/lib/libsys/munmap.2 b/lib/libsys/munmap.2
index d6b53f1bcf19..5c587d652a42 100644
--- a/lib/libsys/munmap.2
+++ b/lib/libsys/munmap.2
@@ -25,7 +25,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.Dd January 15, 2025
+.Dd January 16, 2025
 .Dt MUNMAP 2
 .Os
 .Sh NAME
@@ -66,6 +66,15 @@ valid address range for a process.
 .Xr mprotect 2 ,
 .Xr msync 2 ,
 .Xr getpagesize 3
+.Sh STANDARDS
+The
+.Fn munmap
+system call conforms to
+.St -p1003.1-2024 .
+Portable programs should ensure that
+.Fa addr
+is a multiple of the page size as returned by
+.Xr sysconf 3 .
 .Sh HISTORY
 The
 .Fn munmap

Reply via email to