<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/src/speedgen, branch master</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=master</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2025-07-10T00:12:40Z</updated>
<entry>
<title>maint: port speedgen to FreeBSD 15</title>
<updated>2025-07-10T00:12:40Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2025-07-07T07:26:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=d658d121c3a56ab8fb176dc4b863b2729c0ca294'/>
<id>urn:sha1:d658d121c3a56ab8fb176dc4b863b2729c0ca294</id>
<content type='text'>
* src/speedgen: Avoid ‘trap 'command' ERR’, as ERR
does not conform to POSIX and does not work in
FreeBSD 15 sh.
</content>
</entry>
<entry>
<title>build: fix compilation error on OpenBSD and Solaris</title>
<updated>2025-06-23T21:56:36Z</updated>
<author>
<name>Bruno Haible</name>
<email>bruno@clisp.org</email>
</author>
<published>2025-06-23T20:59:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=63c040b879dc988c8b38c8ee25289be820c94759'/>
<id>urn:sha1:63c040b879dc988c8b38c8ee25289be820c94759</id>
<content type='text'>
* src/speedgen: Use 'printf', not 'sed', to emit code with newlines.
</content>
</entry>
<entry>
<title>maint: make it clear when to add speeds to the speedgen list</title>
<updated>2025-06-23T21:15:27Z</updated>
<author>
<name>H. Peter Anvin</name>
<email>hpa@zytor.com</email>
</author>
<published>2025-06-23T18:20:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=7f82aef54e6f80f083fd89c8d8b294e614119d97'/>
<id>urn:sha1:7f82aef54e6f80f083fd89c8d8b294e614119d97</id>
<content type='text'>
Add a comment making it clear that it is perfectly safe to add
additional speeds to the canned list in the speedgen script, and under
what conditions it is appropriate to do so.

Signed-off-by: "H. Peter Anvin" (Intel) &lt;hpa@zytor.com&gt;
</content>
</entry>
<entry>
<title>stty: arbitrary or non-a priori known speed_t support</title>
<updated>2025-06-18T13:20:17Z</updated>
<author>
<name>H. Peter Anvin</name>
<email>hpa@zytor.com</email>
</author>
<published>2025-06-16T21:58:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=357fda90d15fd3f7dba61e1ab322b183a48d0081'/>
<id>urn:sha1:357fda90d15fd3f7dba61e1ab322b183a48d0081</id>
<content type='text'>
Support the case where speed_t is simply a number, and in that case
assume that arbitrary values can be passed.  This is assumed to be the
case when all known speed_t macros equal their own value.

Try to probe for a variety of speed_t constants by trying to coax
$(CC) into emitting macro definitions (-E -dM).  If this is not
supported, use a fairly extensive list of constants as a
fallback.  This both improves the test for arbitrary speed support, as
well as allowing proper operation in the case where the constants are
not plain numbers and allows for handing enumerated speed constants
that were not known a priori when the source code was written.

A simple shell script (mostly using sed) is used to turn the list of
constants (probed and predefined) into a pair of conversion functions,
baud_to_value() and value_to_baud(); string_to_baud() is then
reimplemented as a wrapper around the latter.

* src/.gitignore: Add generated speedlist.h.
* src/local.mk: Generate speedlist.h.
* src/speedgen: Portable shell script to generate speedlist.h.
* src/stty.c: Adjust string_to_baud to
convert from arbitrary numeric values.
* src/termios.c: A helper used when generating speedlist.h
* NEWS: Mention the improvement.
</content>
</entry>
</feed>
