From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 908F5C432BE for ; Mon, 30 Aug 2021 16:09:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6564560F5E for ; Mon, 30 Aug 2021 16:09:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237661AbhH3QKU (ORCPT ); Mon, 30 Aug 2021 12:10:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:46118 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237620AbhH3QKS (ORCPT ); Mon, 30 Aug 2021 12:10:18 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E87FE60F5E; Mon, 30 Aug 2021 16:09:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1630339765; bh=XL12H4+Ff1iGzjELsw4cfuQbxWHGyRqZmGEYU6aGAJI=; h=From:To:Cc:Subject:Date:From; b=H+LhhANuEHqhp0I/T981sV2m6KiIOipN0BcI/ZeIXsS8dpbghnwMlg1KfktyuLgV4 +A8ZbUDWj06+H6tlGQRfLLmviKn3jtkGBKLeb9DybqnT2OB45fmO85zE6M4QjE+zN3 Jq+DtIGHZPOWE1iV4UhiOVgRCfQIKq+gv0YtUam+/CXhlE2WG6RbtCTkUFfJ17NZcl HniG4Mj+1tsjrmrxJGNQhkvLAQk8ctH7qA/ZCnxs4xcite4bfMv5+j49rcIEc5j8P6 BRXiS/8oOs0yT9PtsrYW1nYjgrLS4YehgwGyE0sAjeH+2zIhxfWmVDzhM6cexxriVe Q8RDIbaIqthlg== Received: by pali.im (Postfix) id ADA787B8; Mon, 30 Aug 2021 18:09:22 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: "Alejandro Colomar (man-pages)" Cc: linux-man@vger.kernel.org, =?UTF-8?q?Marek=20Beh=C3=BAn?= Subject: [PATCH] ioctl_tty.2: TIOCGSID is equivalent to tcgetsid() Date: Mon, 30 Aug 2021 18:08:57 +0200 Message-Id: <20210830160857.25574-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-man@vger.kernel.org Signed-off-by: Pali Rohár --- 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 -- 2.20.1