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: AS17314 8.43.84.0/22 X-Spam-Status: No, score=-4.4 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_HI,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (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 BAA031F8C6 for ; Fri, 30 Jul 2021 08:00:44 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9248D3853803 for ; Fri, 30 Jul 2021 08:00:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9248D3853803 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1627632043; bh=lgUYMsW89DrGoaiZnrIcKvuPxin52F8/EpVRMZYV3fY=; 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=Tja7RwzJ/DJhBpkm/LNmJoyGP4OD2gACDU9ycA0K2jqdIFro8LeUQwlyXq90qWgrN hqPzXRlPS5/+B5qfxuDOZy54WbmGCeZURECRRrbDD4qkuijSDulRdBuR8Ar8a+nkol 2gdpvbKQM4MLzwAN6Bo663F9jI4XGDhWDSLMn5ec= Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by sourceware.org (Postfix) with ESMTPS id 802B13896826 for ; Fri, 30 Jul 2021 07:59:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 802B13896826 Received: by mail-wr1-x433.google.com with SMTP id b7so10128871wri.8 for ; Fri, 30 Jul 2021 00:59:48 -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=lgUYMsW89DrGoaiZnrIcKvuPxin52F8/EpVRMZYV3fY=; b=IZPegvJRevfIKE6j6/Iooxh9+aX4wNhg9isQk+6bziX7Av0AV57DODbmxp3rEy0Tz7 iOg4v1Z9+oLmXdOND7PfhJbQL/D+V9QtfDyXfs0n5/e7DzMb6TPi/QZS3bGja/J1nzzZ skXlCUHyCOU6C+98uUCp0v+5bxIy4Q2f1MLO1PaP+xwkfGKwcnV7Ns9e84QWgpXU2k+m sg3FJs+GS1OGvfGq5I2lQ6jrmtJTySvrZU7O5bsNSPx8sDsd9vj1us2tC+kbd+UWFFLO EXPuiwWIEDahNXCLgiRyTMmpOyDzN1LyVrbOcg+KzYulGVQoAPv+S1rF/nUg1SxeolcZ gYtw== X-Gm-Message-State: AOAM530diVgGdmYTOTePC3lLi23mj4J6P6XsSUCl91QFAGMAM1thFoB0 pUJ1U+mT6XobCA+wpqWBlEBuc6ZD0oA= X-Google-Smtp-Source: ABdhPJxYq/PkATqfmmyUXp/9q6mObSKgpsY1JsUdm4QxpW4X5pQmoLDuiprhRKXVBL7MAE6zfw/Lkw== X-Received: by 2002:adf:fc0c:: with SMTP id i12mr1541607wrr.373.1627631987507; Fri, 30 Jul 2021 00:59:47 -0700 (PDT) Received: from [10.8.0.10] ([195.53.121.100]) by smtp.gmail.com with ESMTPSA id t8sm929994wmj.5.2021.07.30.00.59.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 30 Jul 2021 00:59:47 -0700 (PDT) Subject: Re: [PATCH] ioctl_tty.2: Document ioctls: TCGETS2, TCSETS2, TCSETSW2, TCSETSF2 To: =?UTF-8?Q?Pali_Roh=c3=a1r?= References: <20210725225506.7404-1-pali@kernel.org> <271f5402-95f5-4e65-84ee-a227879e1c33@gmail.com> <20210729173118.pud4xucnt4kncvol@pali> <7d48a1dd-9641-53e9-bb65-868c86f22821@gmail.com> <20210730002104.ug6gfh3xh4anh3e5@pali> Message-ID: Date: Fri, 30 Jul 2021 09:59:45 +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: <20210730002104.ug6gfh3xh4anh3e5@pali> 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: linux-man@vger.kernel.org, Glibc , Michael Kerrisk Errors-To: libc-alpha-bounces+e=80x24.org@sourceware.org Sender: "Libc-alpha" Hi Pali, On 7/30/21 2:21 AM, Pali Rohár wrote: > On Friday 30 July 2021 01:39:11 Alejandro Colomar (man-pages) wrote: >> user@sqli:/usr/include$ grep -rn 'struct termios {' >> asm-generic/termbits.h:12:struct termios { > > You have there a mistake. It is 'struct termios2', not 'struct termios'. > > And for 'struct termios' it is more complicated as there are two > different 'struct termios'. One in file (included from > ) and one in file (included from > ). > > Function tcsetattr() uses 'struct termios' from and > ioctl TCSETS uses 'struct termios' from . Right. Anyway, it is in the same header: user@sqli:/usr/include$ grep -rn 'struct termios2' | grep -v define asm-generic/termbits.h:21:struct termios2 { Regards, Alex > >> user@sqli:/usr/include$ grep -rn '' >> x86_64-linux-gnu/asm/termbits.h:1:#include >> user@sqli:/usr/include$ grep -rn '' >> asm-generic/termios.h:12:#include >> user@sqli:/usr/include$ grep -rn '' >> x86_64-linux-gnu/asm/termios.h:1:#include >> user@sqli:/usr/include$ grep -rn '' >> linux/termios.h:6:#include >> user@sqli:/usr/include$ grep -rn '' >> user@sqli:/usr/include$ -- Alejandro Colomar Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/ http://www.alejandro-colomar.es/