Re: [patch] clone.2: Fix types in clone_args

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

 



Hello Valentin

On 1/10/21 11:22 AM, Valentin wrote:
>>From 2b076eb6579e8461eb16450f2e7f2c2f1c82fbad Mon Sep 17 00:00:00 2001
> From: Valentin Kettner <vakevk@xxxxxxxxx>
> 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/



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux