All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mmap.2: wfix
@ 2022-06-03 14:45 Jesse Rosenstock
  2022-06-03 16:25 ` Alejandro Colomar
  0 siblings, 1 reply; 2+ messages in thread
From: Jesse Rosenstock @ 2022-06-03 14:45 UTC (permalink / raw)
  To: linux-man; +Cc: alx.manpages, mtk.manpages

Change "supported only since" to "support was added in".

Previously, this said, "MAP_POPULATE is supported for private mappings only
since Linux 2.6.23."  This could be parsed as "MAP_POPULATE is supported
for private mappings only [not shared mappings] since Linux 2.6.23."
Someone (a native English speaker) tried to tell me this.

Change to "Support for MAP_POPULATE in conjunction with private mappings
was added in Linux 2.6.23."  This is unambiguous, and "support was
added" is more common in other man pages.

There are more instances of "supported only since", but they seem
clearer.  I could send a separate patch for them if desired.

Signed-off-by: Jesse Rosenstock <jmr@google.com>
---
 man2/mmap.2 | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/man2/mmap.2 b/man2/mmap.2
index 96b7444b0..b9cfe82a6 100644
--- a/man2/mmap.2
+++ b/man2/mmap.2
@@ -215,11 +215,11 @@ The
 argument should be zero.
 .\" See the pgoff overflow check in do_mmap().
 .\" See the offset check in sys_mmap in arch/x86/kernel/sys_x86_64.c.
-The use of
+Support for
 .B MAP_ANONYMOUS
 in conjunction with
 .B MAP_SHARED
-is supported on Linux only since kernel 2.4.
+was added in Linux 2.4.
 .TP
 .B MAP_DENYWRITE
 This flag is ignored.
@@ -405,8 +405,9 @@ The
 call doesn't fail if the mapping cannot be populated (for example, due
 to limitations on the number of mapped huge pages when using
 .BR MAP_HUGETLB ).
+Support for
 .BR MAP_POPULATE
-is supported for private mappings only since Linux 2.6.23.
+in conjunction with private mappings was added in Linux 2.6.23.
 .TP
 .BR MAP_STACK " (since Linux 2.6.27)"
 Allocate the mapping at an address suitable for a process
--
2.36.1.255.ge46751e96f-goog

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mmap.2: wfix
  2022-06-03 14:45 [PATCH] mmap.2: wfix Jesse Rosenstock
@ 2022-06-03 16:25 ` Alejandro Colomar
  0 siblings, 0 replies; 2+ messages in thread
From: Alejandro Colomar @ 2022-06-03 16:25 UTC (permalink / raw)
  To: Jesse Rosenstock, linux-man


[-- Attachment #1.1: Type: text/plain, Size: 2166 bytes --]

Hi Jesse,

On 6/3/22 16:45, Jesse Rosenstock wrote:
> Change "supported only since" to "support was added in".
> 
> Previously, this said, "MAP_POPULATE is supported for private mappings only
> since Linux 2.6.23."  This could be parsed as "MAP_POPULATE is supported
> for private mappings only [not shared mappings] since Linux 2.6.23."
> Someone (a native English speaker) tried to tell me this.
> 
> Change to "Support for MAP_POPULATE in conjunction with private mappings
> was added in Linux 2.6.23."  This is unambiguous, and "support was
> added" is more common in other man pages.
> 
> There are more instances of "supported only since", but they seem
> clearer.  I could send a separate patch for them if desired.
> 
> Signed-off-by: Jesse Rosenstock <jmr@google.com>

The patch makes sense to me.  If you consider other patches would be 
good too, send them and I'll have a look at them.

Patch applied.

Thanks,

Alex

> ---
>   man2/mmap.2 | 7 ++++---
>   1 file changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/man2/mmap.2 b/man2/mmap.2
> index 96b7444b0..b9cfe82a6 100644
> --- a/man2/mmap.2
> +++ b/man2/mmap.2
> @@ -215,11 +215,11 @@ The
>   argument should be zero.
>   .\" See the pgoff overflow check in do_mmap().
>   .\" See the offset check in sys_mmap in arch/x86/kernel/sys_x86_64.c.
> -The use of
> +Support for
>   .B MAP_ANONYMOUS
>   in conjunction with
>   .B MAP_SHARED
> -is supported on Linux only since kernel 2.4.
> +was added in Linux 2.4.
>   .TP
>   .B MAP_DENYWRITE
>   This flag is ignored.
> @@ -405,8 +405,9 @@ The
>   call doesn't fail if the mapping cannot be populated (for example, due
>   to limitations on the number of mapped huge pages when using
>   .BR MAP_HUGETLB ).
> +Support for
>   .BR MAP_POPULATE
> -is supported for private mappings only since Linux 2.6.23.
> +in conjunction with private mappings was added in Linux 2.6.23.
>   .TP
>   .BR MAP_STACK " (since Linux 2.6.27)"
>   Allocate the mapping at an address suitable for a process
> --
> 2.36.1.255.ge46751e96f-goog

-- 
Alejandro Colomar
<http://www.alejandro-colomar.es/>

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-06-03 16:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-03 14:45 [PATCH] mmap.2: wfix Jesse Rosenstock
2022-06-03 16:25 ` Alejandro Colomar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.