All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] clone.2: Fix types in clone_args
@ 2021-01-10 10:22 Valentin
  2021-01-11  8:18 ` Michael Kerrisk (man-pages)
  0 siblings, 1 reply; 2+ messages in thread
From: Valentin @ 2021-01-10 10:22 UTC (permalink / raw)
  To: linux-man; +Cc: alx.manpages, mtk.manpages

From 2b076eb6579e8461eb16450f2e7f2c2f1c82fbad Mon Sep 17 00:00:00 2001
From: Valentin Kettner <vakevk@gmail.com>
Date: Sun, 10 Jan 2021 11:18:20 +0100
Subject: [PATCH] clone.2: Fix types in clone_args

A file descriptor is an int so it should be stored through an int pointer while
parent_tid should have the same type as child_tid which is pid_t pointer.
---
 man2/clone.2 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/man2/clone.2 b/man2/clone.2
index ce55997b5..fecec90c8 100644
--- a/man2/clone.2
+++ b/man2/clone.2
@@ -183,11 +183,11 @@ is a structure of the following form:
 struct clone_args {
     u64 flags;        /* Flags bit mask */
     u64 pidfd;        /* Where to store PID file descriptor
-                         (\fIpid_t *\fP) */
+                         (\fIint *\fP) */
     u64 child_tid;    /* Where to store child TID,
                          in child\(aqs memory (\fIpid_t *\fP) */
     u64 parent_tid;   /* Where to store child TID,
-                         in parent\(aqs memory (\fIint *\fP) */
+                         in parent\(aqs memory (\fIpid_t *\fP) */
     u64 exit_signal;  /* Signal to deliver to parent on
                          child termination */
     u64 stack;        /* Pointer to lowest byte of stack */
-- 
2.30.0

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

* Re: [patch] clone.2: Fix types in clone_args
  2021-01-10 10:22 [patch] clone.2: Fix types in clone_args Valentin
@ 2021-01-11  8:18 ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2021-01-11  8:18 UTC (permalink / raw)
  To: Valentin, linux-man; +Cc: mtk.manpages, alx.manpages

Hello Valentin

On 1/10/21 11:22 AM, Valentin wrote:
>>From 2b076eb6579e8461eb16450f2e7f2c2f1c82fbad Mon Sep 17 00:00:00 2001
> From: Valentin Kettner <vakevk@gmail.com>
> Date: Sun, 10 Jan 2021 11:18:20 +0100
> Subject: [PATCH] clone.2: Fix types in clone_args
> 
> A file descriptor is an int so it should be stored through an int pointer while
> parent_tid should have the same type as child_tid which is pid_t pointer.

Thanks! Patch applied.

Cheers,

Michael

> ---
>  man2/clone.2 | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/man2/clone.2 b/man2/clone.2
> index ce55997b5..fecec90c8 100644
> --- a/man2/clone.2
> +++ b/man2/clone.2
> @@ -183,11 +183,11 @@ is a structure of the following form:
>  struct clone_args {
>      u64 flags;        /* Flags bit mask */
>      u64 pidfd;        /* Where to store PID file descriptor
> -                         (\fIpid_t *\fP) */
> +                         (\fIint *\fP) */
>      u64 child_tid;    /* Where to store child TID,
>                           in child\(aqs memory (\fIpid_t *\fP) */
>      u64 parent_tid;   /* Where to store child TID,
> -                         in parent\(aqs memory (\fIint *\fP) */
> +                         in parent\(aqs memory (\fIpid_t *\fP) */
>      u64 exit_signal;  /* Signal to deliver to parent on
>                           child termination */
>      u64 stack;        /* Pointer to lowest byte of stack */
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/

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

end of thread, other threads:[~2021-01-11  8:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-10 10:22 [patch] clone.2: Fix types in clone_args Valentin
2021-01-11  8:18 ` Michael Kerrisk (man-pages)

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.