Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/sys Sort sections. Sort ERRORS. Remove trailing whi...



details:   https://anonhg.NetBSD.org/src/rev/1386ce20d5c1
branches:  trunk
changeset: 361551:1386ce20d5c1
user:      wiz <wiz%NetBSD.org@localhost>
date:      Thu May 03 05:09:48 2018 +0000

description:
Sort sections. Sort ERRORS. Remove trailing whitespace.

diffstat:

 lib/libc/sys/mremap.2 |  38 +++++++++++++++++++-------------------
 1 files changed, 19 insertions(+), 19 deletions(-)

diffs (78 lines):

diff -r 221053999f4f -r 1386ce20d5c1 lib/libc/sys/mremap.2
--- a/lib/libc/sys/mremap.2     Thu May 03 04:22:17 2018 +0000
+++ b/lib/libc/sys/mremap.2     Thu May 03 05:09:48 2018 +0000
@@ -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 @@
        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 @@
 .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 @@
 .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



Home | Main Index | Thread Index | Old Index