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=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,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 68D6FC432BE for ; Sun, 8 Aug 2021 08:42:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4DF0D60F0F for ; Sun, 8 Aug 2021 08:42:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231356AbhHHImW (ORCPT ); Sun, 8 Aug 2021 04:42:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231368AbhHHImV (ORCPT ); Sun, 8 Aug 2021 04:42:21 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BEE9C061760 for ; Sun, 8 Aug 2021 01:42:02 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id l18so17135642wrv.5 for ; Sun, 08 Aug 2021 01:42:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mOnw6DmN4uuALNy/fo0wnXJ/gLUsgAx5gjaf27Jjjgk=; b=dsnjalTZ97Z5bphnUeCtrm93RUycd10uSRbmCEz7OJldzxOLj5S0KEveGUUxpUrSYU AYhu0YLKh9VlxbBbMRkk8VmUrgjfLRXVLWrFloOq3uQSiA3Tr5jg43tH9Py7KpK6vJgg ZAQZc76BnAlEgtlkjwrSX31KS0qf7na0LLSh972G0XYTjMNBlnNNV14qDTrPCPrBiSVX LMgB2fLzFthy4Ou+s/ne76Y4dJuy1ZoCAiTv1hMbTfAW6iAH10FZVP7ZWOKGKNtxAkj1 Jh18+POKcfdHHzfeqnlKrkWuz8xxLSY5n1w/30ouD60LPoJNC0NFWxJRWHumcxx20OBz VPOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mOnw6DmN4uuALNy/fo0wnXJ/gLUsgAx5gjaf27Jjjgk=; b=W9+KDFf6128VeCVEBds2ReSUN6gjQr9W5TkNrjFBVZTzOcvgPWF2rULp8f9CGYWDRE pr0QtC4TK8smzZj2o7yyHdH7UOmo6hwnsxEiXUQmnn8MQ3++8Cm9QNiV2jZiLRphxsuy yPkXrSYpG24Cokcy5E8TAnfMWVszCc1Zbhmkp1FMX5zeP2am/ca0L7bCbankT26YwVoV bIwkj5HKe8yotw0IAeI2UZTMfi3TZfAjUG7xoeyd3wPk1PVMDF5MjHfAZQoGjR0GU9I3 sZpvUx9JND7ohgN8YMx5fFkdp+QMR3diRkYdRx8I/6bbsId+3MNvxlgOdFksMgOGSBbE qmgQ== X-Gm-Message-State: AOAM5324RtoBJKeAAfPEf1WzwIonnLf8t/ktadE/d0ESpgEqtUN8Scyq HmCxNFA6FGHhKcqMrNEHCxE= X-Google-Smtp-Source: ABdhPJzGW9MJRR07hO5eoAnz2R10v2GFPLwtk3sA6FsQlsJdyn6aQ4y7h8L6LC1nnYkIZL0RBveQvg== X-Received: by 2002:a5d:490b:: with SMTP id x11mr18934213wrq.322.1628412121136; Sun, 08 Aug 2021 01:42:01 -0700 (PDT) Received: from sqli.sqli.com ([195.53.121.100]) by smtp.googlemail.com with ESMTPSA id h12sm15592004wrm.62.2021.08.08.01.42.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Aug 2021 01:42:00 -0700 (PDT) From: Alejandro Colomar To: mtk.manpages@gmail.com Cc: =?UTF-8?q?Pali=20Roh=C3=A1r?= , linux-man@vger.kernel.org, Alejandro Colomar Subject: [PATCH 18/23] termios.3: SPARC architecture has 4 different Bnnn constants Date: Sun, 8 Aug 2021 10:41:28 +0200 Message-Id: <20210808084133.734274-19-alx.manpages@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210808084133.734274-1-alx.manpages@gmail.com> References: <20210808084133.734274-1-alx.manpages@gmail.com> 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 From: Pali Rohár SPARC is special, it does not have Bnnn constants for baud rates above 2000000. Instead it defines 4 Bnnn constants with smaller baud rates. This difference between SPARC and non-SPARC architectures is present in both glibc API (termios.h) and also kernel ioctl API (asm/termbits.h). Signed-off-by: Pali Rohár Signed-off-by: Alejandro Colomar --- man3/termios.3 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/man3/termios.3 b/man3/termios.3 index 4fbd34a52..8c88c25e4 100644 --- a/man3/termios.3 +++ b/man3/termios.3 @@ -953,6 +953,24 @@ to by \fItermios_p\fP to \fIspeed\fP, which must be one of these constants: B1152000 B1500000 B2000000 +.ft P +.fi +.PP +These constants are additionally supported on the SPARC architecture: +.PP +.nf +.ft B + B76800 + B153600 + B307200 + B614400 +.ft P +.fi +.PP +These constants are additionally supported on non-SPARC architectures: +.PP +.nf +.ft B B2500000 B3000000 B3500000 @@ -960,6 +978,11 @@ to by \fItermios_p\fP to \fIspeed\fP, which must be one of these constants: .ft P .fi .PP +Due to differences between architectures, portable applications should check +if a particular +.BI B nnn +constant is defined prior to using it. +.PP The zero baud rate, .BR B0 , is used to terminate the connection. -- 2.32.0