Follow @Openwall on Twitter for new release announcements and other news
[<prev] [<thread-prev] [day] [month] [year] [list]
Message-ID:
 <IA0PR11MB7910FA7B6EFBBBB62AAE593CE060A@IA0PR11MB7910.namprd11.prod.outlook.com>
Date: Thu, 12 Feb 2026 17:07:45 +0000
From: "Dora, Sunil Kumar" <SunilKumar.Dora@...driver.com>
To: Rich Felker <dalias@...c.org>
CC: "musl@...ts.openwall.com" <musl@...ts.openwall.com>,
        "Kokkonda, Sundeep"
	<Sundeep.Kokkonda@...driver.com>,
        "MacLeod, Randy"
	<Randy.MacLeod@...driver.com>
Subject: Re: Question: Support for custom (non-standard) baud rates in
 musl

Hi Rich,

Thanks for the reference and for pointing me to that thread — that’s helpful.
I’ll take this into account while preparing the GDB fix.

Best regards,
Sunil
________________________________
From: Rich Felker <dalias@...c.org>
Sent: Thursday, February 12, 2026 9:46 PM
To: Dora, Sunil Kumar <SunilKumar.Dora@...driver.com>
Cc: musl@...ts.openwall.com <musl@...ts.openwall.com>; Kokkonda, Sundeep <Sundeep.Kokkonda@...driver.com>
Subject: Re: [musl] Question: Support for custom (non-standard) baud rates in musl

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.

On Wed, Feb 11, 2026 at 08:33:46PM +0000, Dora, Sunil Kumar wrote:
> Hi,
> I am currently investigating a build issue in GDB related to setting custom (non-standard) baud rates on Linux.
> >From reviewing musl's termios implementation, I noticed:
>
>   *
> cfsetospeed / cfsetispeed appear to return EINVAL for non-standard baud rates.
>   *
> The c_ispeed / c_ospeed fields are not exposed with the same naming as in glibc.
>   *
> Linux-specific interfaces such as termios2, BOTHER, TCGETS2, etc., are not visible through the standard musl headers.
>
> I would like to confirm whether the lack of support for arbitrary/custom baud rates (via BOTHER / termios2) is an intentional design decision in musl.
> If custom baud rates are expected to work on musl-based Linux systems, I would appreciate guidance on the correct and supported approach.

There was a thread on this topic a while back,
https://www.openwall.com/lists/musl/2024/04/11/5

I don't think we arrived at any good conclusion for the right way to
support this.

Rich

Content of type "text/html" skipped

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.