<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/include/printf.h, branch releng/13.5</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F13.5</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F13.5'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2023-08-23T17:43:21Z</updated>
<entry>
<title>Remove $FreeBSD$: two-line .h pattern</title>
<updated>2023-08-23T17:43:21Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-22T01:31:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=17da660ad5b3b9cd90e164dd4dbb9beaa7203054'/>
<id>urn:sha1:17da660ad5b3b9cd90e164dd4dbb9beaa7203054</id>
<content type='text'>
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/

Similar commit in main:
(cherry picked from commit b3e7694832e8)
</content>
</entry>
<entry>
<title>spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD</title>
<updated>2023-07-25T15:13:49Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-05-10T15:40:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=caa41f641755c935b036e17440a3b49329c904ed'/>
<id>urn:sha1:caa41f641755c935b036e17440a3b49329c904ed</id>
<content type='text'>
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with:		pfg
MFC After:		3 days
Sponsored by:		Netflix

(cherry picked from commit 4d846d260e2b9a3d4d0a701462568268cbfe7a5b)
</content>
</entry>
<entry>
<title>include: General further adoption of SPDX licensing ID tags.</title>
<updated>2017-11-25T17:09:43Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2017-11-25T17:09:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e58eb3c437974277957187cfed4b9aa0c1a1e253'/>
<id>urn:sha1:e58eb3c437974277957187cfed4b9aa0c1a1e253</id>
<content type='text'>
Mainly focus on files that use BSD 2-Clause license, however the tool I
was using mis-identified many licenses so this was mostly a manual - error
prone - task.

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.
</content>
</entry>
<entry>
<title>The register_printf_render_std() function expects regular string.</title>
<updated>2012-07-04T17:35:07Z</updated>
<author>
<name>Pawel Jakub Dawidek</name>
<email>pjd@FreeBSD.org</email>
</author>
<published>2012-07-04T17:35:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=988a521bf06a348bee36a079ba2522653d17d59a'/>
<id>urn:sha1:988a521bf06a348bee36a079ba2522653d17d59a</id>
<content type='text'>
Change argument type from 'const unsigned char *' to 'const char *'.

MFC after:	2 weeks
</content>
</entry>
<entry>
<title>Include stdio.h, so we can include printf.h in any order, as it needs FILE.</title>
<updated>2011-03-06T17:45:37Z</updated>
<author>
<name>Pawel Jakub Dawidek</name>
<email>pjd@FreeBSD.org</email>
</author>
<published>2011-03-06T17:45:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4551abd040920d95cbd6cb6f70383c1e5ba98367'/>
<id>urn:sha1:4551abd040920d95cbd6cb6f70383c1e5ba98367</id>
<content type='text'>
MFC after:	2 weeks
</content>
</entry>
<entry>
<title>Add nested include of &lt;wchar.h&gt;</title>
<updated>2006-03-02T10:01:52Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2006-03-02T10:01:52Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f3fede8ab91e5d6bb11d680573a7693357104421'/>
<id>urn:sha1:f3fede8ab91e5d6bb11d680573a7693357104421</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove spurious "union arg" from printf.h</title>
<updated>2006-02-04T14:35:01Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2006-02-04T14:35:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8dcefe6112800fd9982a5a337440b774fb709ac9'/>
<id>urn:sha1:8dcefe6112800fd9982a5a337440b774fb709ac9</id>
<content type='text'>
Make sure to always print something in the alternate time format.
</content>
</entry>
<entry>
<title>Make the %V{is} extension handle a NULL pointer like %s does: output "(null)"</title>
<updated>2006-01-25T12:45:24Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2006-01-25T12:45:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6dbacee284ac789077c3f2a181437ff5a7ebb3b8'/>
<id>urn:sha1:6dbacee284ac789077c3f2a181437ff5a7ebb3b8</id>
<content type='text'>
Add %M{essage} extension which prints an errno value as the
corresponding string if possible or numerically otherwise.

It is not currently possible to do the syslog(3) like %m extension
because errno would need to get capatured on entry to the first
function in the printf family, so %M requires you to supply errno
as an argument.

Add %Q{uote} extension which will print a string in double quotes with
appropriate back-slash escapes (only) if necessary.
</content>
</entry>
<entry>
<title>Add an extensible version of our *printf(3) implementation to libc</title>
<updated>2005-12-16T18:56:39Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2005-12-16T18:56:39Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=75067f4f702154e49d475982591d9dcffa155afe'/>
<id>urn:sha1:75067f4f702154e49d475982591d9dcffa155afe</id>
<content type='text'>
on probationary terms:  it may go away again if it transpires it is
a bad idea.

This extensible printf version will only be used if either
    environment variable USE_XPRINTF is defined
or
    one of the extension functions are called.
or
    the global variable __use_xprintf is set greater than zero.

In all other cases our traditional printf implementation will
be used.

The extensible version is slower than the default printf, mostly
because less opportunity for combining I/O operation exists when
faced with extensions.  The default printf on the other hand
is a bad case of spaghetti code.

The extension API has a GLIBC compatible part and a FreeBSD version
of same.  The FreeBSD version exists because the GLIBC version may
run afoul of our FILE * locking in multithreaded programs and it
even further eliminate the opportunities for combining I/O operations.

Include three demo extensions which can be enabled if desired: time
(%T), hexdump (%H) and strvis (%V).

%T can format time_t (%T), struct timeval (%lT) and struct timespec (%llT)
   in one of two human readable duration formats:
	"%.3llT" -&gt; "20349.245"
	"%#.3llT" -&gt; "5h39m9.245"

%H will hexdump a sequence of bytes and takes a pointer and a length
   argument.  The width specifies number of bytes per line.
	"%4H" -&gt; "65 72 20 65"
	"%+4H" -&gt; "0000 65 72 20 65"
	"%#4H" -&gt; "65 72 20 65  |er e|"
	"%+#4H" -&gt; "0000 65 72 20 65  |er e|"

%V will dump a string in strvis format.
	"%V" -&gt; "Hello\tWor\377ld"	(C-style)
	"%0V" -&gt; "Hello\011Wor\377ld"	(octal)
	"%+V" -&gt; "Hello%09Wor%FFld"	(http-style)

Tests, comments, bugreports etc are most welcome.
</content>
</entry>
</feed>
