From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by sourceware.org (Postfix) with ESMTPS id BC1CD385E007 for ; Fri, 30 Jul 2021 18:20:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BC1CD385E007 Received: by mail-wr1-x429.google.com with SMTP id b7so12416279wri.8 for ; Fri, 30 Jul 2021 11:20:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=/RylP+HxNusXHGQoEJ+QdocH2FDJqIjxZ9oTR0n7zc0=; b=Q21k7kXUeipppsITDM0IJ7+i0JU70k5vbyyJQ59t0iZH+lstvz49fafXuNuWeThuCo 8hsB67MIM7UEVTfQxfLeI8MBWtWveZ2R/jEOdlVYXLbBOPotA3XLPHCcxOb2Oju7HFaX BW1v5IqeJbXyheCN1heCTX+mfPFG39A8r27xFSiMBDrNzdIHE8LCVVwx/OTWvcx/kBdI YE8RNmhZxMaLmsaO9y6pLx9C0E1dca4I0MjA4ob+izoRqr8sX2dFHwcIUo9MWRhiz/J1 lyzhY+G9DVh0y8ckHBcSvUR8vDcEpe7SNImqeIZkWlcCyfo/ntg5WLlS7gULRc583NIZ v6qA== X-Gm-Message-State: AOAM530wUG/6/uko1V6920XoXMWEj44kh/F3uZzhG7a0hIP5iHVUpmf2 VIa6e1GbsxcyYhFQPvjUEHQ= X-Google-Smtp-Source: ABdhPJzCGntxjKkmURt6mtOVwz5z1DsKEbGzsRTcPJOqheEPaLJO7RkxVi4Wkj3uIMZrVWPDvOAsRQ== X-Received: by 2002:a5d:5645:: with SMTP id j5mr4337127wrw.426.1627669203914; Fri, 30 Jul 2021 11:20:03 -0700 (PDT) Received: from [10.8.0.10] ([195.53.121.100]) by smtp.gmail.com with ESMTPSA id p2sm2448664wrr.21.2021.07.30.11.20.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 30 Jul 2021 11:20:03 -0700 (PDT) Subject: Re: [PATCH v2] ioctl_tty.2: Document ioctls: TCGETS2, TCSETS2, TCSETSW2, TCSETSF2 To: =?UTF-8?Q?Pali_Roh=c3=a1r?= Cc: =?UTF-8?Q?Marek_Beh=c3=ban?= , linux-man@vger.kernel.org, libc-alpha@sourceware.org, Michael Kerrisk References: <20210725225506.7404-1-pali@kernel.org> <20210730104803.10328-1-pali@kernel.org> From: "Alejandro Colomar (man-pages)" Message-ID: <2e3eb624-310b-bae3-c244-fbfac0bc22d6@gmail.com> Date: Fri, 30 Jul 2021 20:20:02 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210730104803.10328-1-pali@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, KAM_NUMSUBJECT, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jul 2021 18:20:06 -0000 Hi Pali, On 7/30/21 12:48 PM, Pali Rohár wrote: > Signed-off-by: Pali Rohár > Patch applied. Thanks, Alex > --- > Changes in v2: > * Remove information about asm/termbits.h (will be in followup patch) > * Style fixes > --- > man2/ioctl_tty.2 | 29 +++++++++++++++++++++++++++++ > 1 file changed, 29 insertions(+) > > diff --git a/man2/ioctl_tty.2 b/man2/ioctl_tty.2 > index 2a0effdae8ab..c1875530f0b1 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\ *" . > +If struct member > +.B c_cflag > +contains > +.B BOTHER > +then baudrate is stored in struct members > +.B c_ispeed > +and > +.B c_ospeed > +as integer values. > +These ioctls are not supported on all architectures. > +.RS > +.TS > +lb l. > +TCGETS2 \fBstruct termios2 *\fPargp > +TCSETS2 \fBconst struct termios2 *\fPargp > +TCSETSW2 \fBconst struct termios2 *\fPargp > +TCSETSF2 \fBconst struct termios2 *\fPargp > +.TE > +.RE > +.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\ *" . > -- Alejandro Colomar Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/ http://www.alejandro-colomar.es/