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 44251C4338F for ; Fri, 30 Jul 2021 15:30:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1E1F560462 for ; Fri, 30 Jul 2021 15:30:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239543AbhG3PbD (ORCPT ); Fri, 30 Jul 2021 11:31:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:34526 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239198AbhG3PbC (ORCPT ); Fri, 30 Jul 2021 11:31:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B636A6052B; Fri, 30 Jul 2021 15:30:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627659057; bh=pfpQjcRevi4KQBTLrz3PSBegkyoj67qQv+nWWLi4/zg=; h=From:To:Subject:Date:From; b=Ui1BEdL3bA0xJgpEDcQR6yPaioA/eX+KcxCfQXIpl3iKyX+9TGHDL+L6zWQetZKA/ bNQ5vgWWsvx6Qd9cSxoyN+0b1bIdUKw//1B04CGacz/tgsZC9sZIGOq/Cc9QwOyXqn DqVqjkBXwF1N/RUmuaSZrHA3ufmi+frB+mMREkGHHw6U3fY1jZXmwCZTkWlxI4eZYw C4sq2b8YGjO9eXaoCPrEd+aUhWLjvOfQgqtkFMjnMQEuXzb7+lujdkfnZ8hLBrSRB1 kdNd9pV1UzEa5xo9u77zBmbWV4CWBAE+Jw+u0HzZjDSpAqs+9JWo5VvEkgnsPbIYF1 xbKvlIIJNcA3g== Received: by pali.im (Postfix) id 6C7B1772; Fri, 30 Jul 2021 17:30:55 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: linux-man@vger.kernel.org, Alejandro Colomar , Michael Kerrisk Subject: [PATCH] termios.3: Add information how to set baudrate to any other value Date: Fri, 30 Jul 2021 17:30:44 +0200 Message-Id: <20210730153044.23673-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 --- man3/termios.3 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/man3/termios.3 b/man3/termios.3 index b7cdec507524..4d4593a33c32 100644 --- a/man3/termios.3 +++ b/man3/termios.3 @@ -967,6 +967,12 @@ Normally, this will disconnect the line. \fBCBAUDEX\fP is a mask for the speeds beyond those defined in POSIX.1 (57600 and above). Thus, \fBB57600\fP & \fBCBAUDEX\fP is nonzero. +Setting baudrate to other value than defined by +.B Bnnn +constants is possible via +.B TCSETS2 +ioctl, see +.BR ioctl_tty (2). .PP .BR cfgetispeed () returns the input baud rate stored in the \fItermios\fP structure. -- 2.20.1