diff options
Diffstat (limited to 'lib/libsys/munmap.2')
-rw-r--r-- | lib/libsys/munmap.2 | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/lib/libsys/munmap.2 b/lib/libsys/munmap.2 index dce76d355c1f..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 June 22, 2017 +.Dd January 16, 2025 .Dt MUNMAP 2 .Os .Sh NAME @@ -54,10 +54,8 @@ will fail if: .Bl -tag -width Er .It Bq Er EINVAL The -.Fa addr -argument was not page aligned, 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 @@ -68,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 |