|
|
Message-ID: <20260212161603.GW1827@brightrain.aerifal.cx> Date: Thu, 12 Feb 2026 11:16:03 -0500 From: Rich Felker <dalias@...c.org> 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: Question: Support for custom (non-standard) baud rates in musl 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
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.