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.7 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 7F2DBC4338F for ; Sun, 25 Jul 2021 22:55:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5FA6E60E78 for ; Sun, 25 Jul 2021 22:55:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229604AbhGYWO5 (ORCPT ); Sun, 25 Jul 2021 18:14:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:38218 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229531AbhGYWOs (ORCPT ); Sun, 25 Jul 2021 18:14:48 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2846A60249; Sun, 25 Jul 2021 22:55:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627253718; bh=xWKDtMKp96ySUTRlkjOTp9B+OB/BgcebxLciL+8fjsE=; h=From:To:Subject:Date:From; b=eL8U7Q9Fh2lKaai+T5mNT7PLMRFqyFAWELOapZYM1jE1iqNSCT+6fFqNgD0p+Khxt jpwBXz0P/7xAciKJOS9AmGynDjWNjou6enC5pAmeHAwxwbYwnr0y7f9JUhSAucnS0o DLxT11M8qdCmj+yYZUdXtYnxuJfLqsi4dEdJj4A26ZHyqiRO0dZNSzcVAkr8cx6lBr 2xUpjLgQpj0YgxPNYBCpDlP7otRw+EVmJg4IlqAeulVz5TDD/xbx/kV8/Bi6cDg+cj CADUWBKcgoPGzBG6M5p6y1I/CJaRNlp9uHNPi7jbQs1dGRsKw3ZULAQ324ELB6tJaw V2fDnkezQiVRA== Received: by pali.im (Postfix) id 77B71AFA; Mon, 26 Jul 2021 00:55:16 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: linux-man@vger.kernel.org, Alejandro Colomar , Michael Kerrisk Subject: [PATCH] ioctl_tty.2: Document ioctls: TCGETS2, TCSETS2, TCSETSW2, TCSETSF2 Date: Mon, 26 Jul 2021 00:55:06 +0200 Message-Id: <20210725225506.7404-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 | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/man2/ioctl_tty.2 b/man2/ioctl_tty.2 index c8269070180f..0c3a8ec24c76 100644 --- a/man2/ioctl_tty.2 +++ b/man2/ioctl_tty.2 @@ -77,6 +77,35 @@ The following four ioctls are just like .BR TCSETSW , .BR TCSETSF , except that they take a +.I "struct termios2\ *" +instead of a +.IR "struct termios\ *" . +.I "struct termios2\ *" +is defined in header file +.IR "" . +If struct member +.B c_cflag +contains +.B BOTHER +then baudrate is stored in struct members +.BR c_ispeed " and " c_ospeed +as integer values. +These ioctls are not supported on all architectures. +.IP +.BI "TCGETS2 struct termios2 *" argp +.IP +.BI "TCSETS2 const struct termios2 *" argp +.IP +.BI "TCSETSW2 const struct termios2 *" argp +.IP +.BI "TCSETSF2 const struct termios2 *" argp +.PP +The following four ioctls are just like +.BR TCGETS , +.BR TCSETS , +.BR TCSETSW , +.BR TCSETSF , +except that they take a .I "struct termio\ *" instead of a .IR "struct termios\ *" . -- 2.20.1