Module Name:    src
Committed By:   wiz
Date:           Thu May  3 05:09:48 UTC 2018

Modified Files:
        src/lib/libc/sys: mremap.2

Log Message:
Sort sections. Sort ERRORS. Remove trailing whitespace.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libc/sys/mremap.2

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/sys/mremap.2
diff -u src/lib/libc/sys/mremap.2:1.6 src/lib/libc/sys/mremap.2:1.7
--- src/lib/libc/sys/mremap.2:1.6	Wed May  2 15:25:13 2018
+++ src/lib/libc/sys/mremap.2	Thu May  3 05:09:48 2018
@@ -1,4 +1,4 @@
-.\"	$NetBSD: mremap.2,v 1.6 2018/05/02 15:25:13 christos Exp $
+.\"	$NetBSD: mremap.2,v 1.7 2018/05/03 05:09:48 wiz Exp $
 .\"
 .\" Copyright (c) 2007 Thomas Klausner and Joerg Sonnenberger
 .\" All rights reserved.
@@ -172,13 +172,25 @@ main(int argc, char *argv[])
 	return EXIT_SUCCESS;
 }
 .Ed
+.Sh COMPATIBILITY
+The semantics of
+.Fn mremap
+differ from the one provided by glibc on Linux in that the
+.Ar newp
+argument was added and a different set of
+.Ar flags
+are implemented.
 .Sh ERRORS
 The
 .Fn mremap
 function fails if:
 .Bl -tag -width Er
+.It Bq Er E2BIG
+A request to extend
+.Fa oldp
+failed because of address overflow.
 .It Bq Er EINVAL
-If 
+If
 .Fa oldp
 or
 .Fa newp
@@ -186,7 +198,7 @@ are not page aligned, or
 .Fa oldsize
 or
 .Fa newsize
-are not a multiple of the page size, or if 
+are not a multiple of the page size, or if
 .Fa oldp +
 .Fa oldsize
 or
@@ -198,28 +210,16 @@ argument, or if the request was to exten
 .Fa oldp
 and the extension address space either did not fit, was already occupied,
 or had set permissions.
+.It Bq Er ENOENT
+If the
+.Fa oldp
+segmented was not already mapped.
 .It Bq Er ENOMEM
 If there was either no space to allocate/move memory,
 or if a fixed allocation was requested in the
 .Fa flags
 that could not be accommodated.
-.It Bq Er ENOENT
-If the
-.Fa oldp
-segmented was not already mapped.
-.It Bq Er E2BIG
-A request to extend
-.Fa oldp
-failed because of address overflow.
 .El
-.Sh COMPATIBILITY
-The semantics of
-.Fn mremap
-differ from the one provided by glibc on Linux in that the
-.Ar newp
-argument was added and a different set of
-.Ar flags
-are implemented.
 .Sh SEE ALSO
 .Xr mmap 2 ,
 .Xr munmap 2

Reply via email to