Skip to contentSkip to conversation

man2/mremap.2: wfix

PATCH In review G. Branden Robinson 1 participant 1 message Jan 16, 2024 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 2/4 man2/mremap.2: wfix

Recast to use language paralleling that of the MREMAP_DONTUNMAP discussion elsewhere in the page. Spotted these (excessively?) abbreviated cross references while preparing for the MR man(7) macro migration.

---
 man2/mremap.2 | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)
man2/mremap.2 +9 -4
index e4dd9d0ce..336aae676 100644
@@ -43,9 +43,11 @@ .SH DESCRIPTION
 below.
 .P
 If the value of \fIold_size\fP is zero, and \fIold_address\fP refers to
-a shareable mapping (see
-.BR mmap (2)
-.BR MAP_SHARED ),
+a shareable mapping
+(see the description of
+.B MAP_SHARED
+in
+.BR mmap (2)),
 then
 .BR mremap ()
 will create a new mapping of the same pages.
@@ -321,7 +323,10 @@ .SH BUGS
 was zero and the mapping referred to by
 .I old_address
 was a private mapping
-.RB ( mmap "(2) " MAP_PRIVATE ),
+(see the description of
+.B MAP_PRIVATE
+in
+.BR mmap (2)),
 .BR mremap ()
 created a new private mapping unrelated to the original mapping.
 This behavior was unintended
Signature · 1 line
2.30.2