<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.bin/printf/printf.c, branch releng/12.4</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.4</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.4'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2018-08-11T11:13:34Z</updated>
<entry>
<title>printf: Fix \c in %b in printf builtin exiting the shell after r337458</title>
<updated>2018-08-11T11:13:34Z</updated>
<author>
<name>Jilles Tjoelker</name>
<email>jilles@FreeBSD.org</email>
</author>
<published>2018-08-11T11:13:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=051c7fdd5c7cc8d3f3cf33da7d6102a31d8a00c4'/>
<id>urn:sha1:051c7fdd5c7cc8d3f3cf33da7d6102a31d8a00c4</id>
<content type='text'>
SVN r337458 erroneously partially reverted r265885.

This is immediately visible when running the Kyua/ATF tests for
usr.bin/printf, which actually test sh's printf builtin.

PR:		229641
</content>
</entry>
<entry>
<title>Fix printf(1) ignores width and precision in %b format.</title>
<updated>2018-08-08T15:25:01Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2018-08-08T15:25:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=702da35288ad1d3d97b4e3cacbfa83e494b74cf7'/>
<id>urn:sha1:702da35288ad1d3d97b4e3cacbfa83e494b74cf7</id>
<content type='text'>
The precision with the conversion specifier b is specified by POSIX: see
point 7 in the reference documentation.

This corrects previous wrong log in r337440.

Reference: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/printf.html

PR:	229641
Reported by:	Rudolf Cejka
Submitted by:	Garrett D'Amore (illumos)
MFC after:	1 week
</content>
</entry>
<entry>
<title>Revert r337440: the log message is wrong.</title>
<updated>2018-08-08T15:12:32Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2018-08-08T15:12:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=94e460157dfd5f00a7e2eefce10137d3a5f8dd6e'/>
<id>urn:sha1:94e460157dfd5f00a7e2eefce10137d3a5f8dd6e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix printf(1) ignores width and precision in %b format.</title>
<updated>2018-08-07T23:03:50Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2018-08-07T23:03:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e21ce9d742cd5ba8441f80463b850d3196a986a1'/>
<id>urn:sha1:e21ce9d742cd5ba8441f80463b850d3196a986a1</id>
<content type='text'>
The precision with behavior is "unspecified" by POSIX (as of 2018), but
most implementations seem to have taken it to be treated the same as for
"s"; applied after the unescaping.
Adopt the same treatment on our printf.

PR:	229641
Submitted by:	Garrett D'Amore (illumos)
</content>
</entry>
<entry>
<title>General further adoption of SPDX licensing ID tags.</title>
<updated>2017-11-20T19:49:47Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2017-11-20T19:49:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8a16b7a18f5d0b031f09832fd7752fba717e2a97'/>
<id>urn:sha1:8a16b7a18f5d0b031f09832fd7752fba717e2a97</id>
<content type='text'>
Mainly focus on files that use BSD 3-Clause license.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

Special thanks to Wind River for providing access to "The Duke of
Highlander" tool: an older (2014) run over FreeBSD tree was useful as a
starting point.
</content>
</entry>
<entry>
<title>printf: Output formatted data directly, instead of via asprintf.</title>
<updated>2017-04-29T21:48:11Z</updated>
<author>
<name>Jilles Tjoelker</name>
<email>jilles@FreeBSD.org</email>
</author>
<published>2017-04-29T21:48:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=342b089bcabe39424149ef0f654713a062623657'/>
<id>urn:sha1:342b089bcabe39424149ef0f654713a062623657</id>
<content type='text'>
Long ago, sh used to have its own optimized and restricted string formatting
implementation, which the printf builtin had to bypass via asprintf() to a
temporary buffer. Since sh has used libc's string formatting implementation
for a long time, remove the workaround.

Add a check to keep  printf %c ''  working the same way (output nothing);
POSIX allows both outputting nothing and outputting a NUL byte.

Also, this change avoids silently discarding format directives for whose
output asprintf() cannot allocate memory.
</content>
</entry>
<entry>
<title>Renumber copyright clause 4</title>
<updated>2017-02-28T23:42:47Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2017-02-28T23:42:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fbbd9655e5107c68e4e0146ff22b73d7350475bc'/>
<id>urn:sha1:fbbd9655e5107c68e4e0146ff22b73d7350475bc</id>
<content type='text'>
Renumber cluase 4 to 3, per what everybody else did when BSD granted
them permission to remove clause 3. My insistance on keeping the same
numbering for legal reasons is too pedantic, so give up on that point.

Submitted by:	Jan Schaumann &lt;jschauma@stevens.edu&gt;
Pull Request:	https://github.com/freebsd/freebsd/pull/96
</content>
</entry>
<entry>
<title>sh: Fix compiler warnings related to duplicate or missing declarations.</title>
<updated>2015-03-01T21:46:55Z</updated>
<author>
<name>Jilles Tjoelker</name>
<email>jilles@FreeBSD.org</email>
</author>
<published>2015-03-01T21:46:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=22ea47ec90b51ecbe6d2883ccee30d312c162044'/>
<id>urn:sha1:22ea47ec90b51ecbe6d2883ccee30d312c162044</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Minor style knit.</title>
<updated>2014-05-29T19:43:43Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2014-05-29T19:43:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ea1a630ade48da082272cd8f901c6e718265589a'/>
<id>urn:sha1:ea1a630ade48da082272cd8f901c6e718265589a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>printf(1): warn about incomplete uses n$</title>
<updated>2014-05-26T14:57:47Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2014-05-26T14:57:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4aa1792423edac02c3cec1cd9e7d564e37d78d88'/>
<id>urn:sha1:4aa1792423edac02c3cec1cd9e7d564e37d78d88</id>
<content type='text'>
Reviewed by:	jilles
Obtained from:	Illumos
MFC after:	2 weeks
</content>
</entry>
</feed>
