From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-4.3 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id A0CB31F8C6 for ; Fri, 30 Jul 2021 18:20:25 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 95817396D807 for ; Fri, 30 Jul 2021 18:20:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 95817396D807 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1627669224; bh=/RylP+HxNusXHGQoEJ+QdocH2FDJqIjxZ9oTR0n7zc0=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=ejHU/AZeUJg9+LCoFNxfFawlj82kYVLcJx1OanDpaDSbNvrUtJzmV+lMVSyjKdVut 0hCPkKDJGyL6ijBid1Hf58hsBJq+7pPu39QB3DmAywlaxPlylNH09qWz3y/eOOEhk4 wWbSJ+zzoiqaXDze07v3SMjuLH7OCr5yE7jJ8C1M= 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?= References: <20210725225506.7404-1-pali@kernel.org> <20210730104803.10328-1-pali@kernel.org> 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-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: , From: "Alejandro Colomar \(man-pages\) via Libc-alpha" Reply-To: "Alejandro Colomar \(man-pages\)" Cc: =?UTF-8?Q?Marek_Beh=c3=ban?= , linux-man@vger.kernel.org, libc-alpha@sourceware.org, Michael Kerrisk Errors-To: libc-alpha-bounces+e=80x24.org@sourceware.org Sender: "Libc-alpha" 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/