Re: [PATCH] ioctl_tty.2: TIOCGSID is equivalent to tcgetsid()

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

 



Hello Pali,

On 8/30/21 6:08 PM, Pali Rohár wrote:
> Signed-off-by: Pali Rohár <pali@xxxxxxxxxx>

Thanks. Patch applied.

Cheers,

Michael

> ---
>  man2/ioctl_tty.2 | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/man2/ioctl_tty.2 b/man2/ioctl_tty.2
> index c7a8aad7b395..6ba18f337e8f 100644
> --- a/man2/ioctl_tty.2
> +++ b/man2/ioctl_tty.2
> @@ -401,6 +401,9 @@ Set the foreground process group ID of this terminal.
>  Argument:
>  .BI "pid_t *" argp
>  .IP
> +When successful, equivalent to
> +.IR "*argp = tcgetsid(fd)" .
> +.IP
>  Get the session ID of the given terminal.
>  This fails with the error
>  .B ENOTTY
> 


-- 
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