<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in vsnprintf.c</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>8a16b7a1 - General further adoption of SPDX licensing ID tags.</title>
        <link>http://172.16.0.5:8080/history/freebsd-12.1/lib/libc/stdio/vsnprintf.c#8a16b7a1</link>
        <description>General further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 3-Clause license.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat 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 &quot;The Duke ofHighlander&quot; tool: an older (2014) run over FreeBSD tree was useful as astarting point.

            List of files:
            /freebsd-12.1/lib/libc/stdio/vsnprintf.c</description>
        <pubDate>Mon, 20 Nov 2017 19:49:47 +0000</pubDate>
        <dc:creator>Pedro F. Giffuni &lt;pfg@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>1d8053c5 - Renumber clauses to reduce diffs to other versions</title>
        <link>http://172.16.0.5:8080/history/freebsd-12.1/lib/libc/stdio/vsnprintf.c#1d8053c5</link>
        <description>Renumber clauses to reduce diffs to other versionsNetBSD, OpenBSD, and Android&apos;s Bionic all number the clauses 1 through 3,so follow suit to make comparison easier.Acked-by: imp@

            List of files:
            /freebsd-12.1/lib/libc/stdio/vsnprintf.c</description>
        <pubDate>Tue, 23 Apr 2013 13:33:13 +0000</pubDate>
        <dc:creator>Ed Maste &lt;emaste@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>666d00d3 - If the size passed to {,v}s{w,n}printf is larger than INT_MAX+1</title>
        <link>http://172.16.0.5:8080/history/freebsd-12.1/lib/libc/stdio/vsnprintf.c#666d00d3</link>
        <description>If the size passed to {,v}s{w,n}printf is larger than INT_MAX+1(i.e., the return value would overflow), set errno to EOVERFLOWand return an error.  This improves the chances that buggyapplications -- for instance, ones that pass in a negative integeras the size due to a bogus calculation -- will fail in safe ways.Returning an error in these situations is specified by POSIX, butPOSIX appears to have an off-by-one error that isn&apos;t duplicated inthis change.Previously, some of these functions would silently cap the size atINT_MAX+1, and others would exit with an error after writing morethan INT_MAX characters.PR:		39256MFC after:	2 weeks

            List of files:
            /freebsd-12.1/lib/libc/stdio/vsnprintf.c</description>
        <pubDate>Sat, 21 Apr 2012 06:10:18 +0000</pubDate>
        <dc:creator>David Schultz &lt;das@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>3c87aa1d - Implement xlocale APIs from Darwin, mainly for use by libc++.  This adds a</title>
        <link>http://172.16.0.5:8080/history/freebsd-12.1/lib/libc/stdio/vsnprintf.c#3c87aa1d</link>
        <description>Implement xlocale APIs from Darwin, mainly for use by libc++.  This adds aload of _l suffixed versions of various standard library functions that usethe global locale, making them take an explicit locale parameter.  Alsoadds support for per-thread locales.  This work was funded by the FreeBSDFoundation.Please test any code you have that uses the C standard locale functions!Reviewed by:    das (gdtoa changes)Approved by:    dim (mentor)

            List of files:
            /freebsd-12.1/lib/libc/stdio/vsnprintf.c</description>
        <pubDate>Sun, 20 Nov 2011 14:45:42 +0000</pubDate>
        <dc:creator>David Chisnall &lt;theraven@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>1b0181df - - Use an initializer macro to initialize fields in &apos;fake&apos; FILE objects used</title>
        <link>http://172.16.0.5:8080/history/freebsd-12.1/lib/libc/stdio/vsnprintf.c#1b0181df</link>
        <description>- Use an initializer macro to initialize fields in &apos;fake&apos; FILE objects used  by *sprintf(), etc.- Explicitly initialize _fl_mutex to PTHREAD_MUTEX_INITIALIZER for all FILE  objects.  This is currently a nop on FreeBSD, but is import for other  platforms (or in the future) where PTHREAD_MUTEX_INITIALIZER is not simply  zero.PR:		threads/141198Reported by:	Jeremy Huddleston @ AppleMFC after:	2 weeks

            List of files:
            /freebsd-12.1/lib/libc/stdio/vsnprintf.c</description>
        <pubDate>Thu, 11 Mar 2010 17:03:32 +0000</pubDate>
        <dc:creator>John Baldwin &lt;jhb@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>1e98f887 - Next stage of stdio cleanup: Retire __sFILEX and merge the fields back into</title>
        <link>http://172.16.0.5:8080/history/freebsd-12.1/lib/libc/stdio/vsnprintf.c#1e98f887</link>
        <description>Next stage of stdio cleanup: Retire __sFILEX and merge the fields back into__sFILE.  This was supposed to be done in 6.0.  Some notes:- Where possible I restored the various lines to their pre-__sFILEX state.- Retire INITEXTRA() and just initialize the wchar bits (orientation and  mbstate) explicitly instead.  The various places that used INITEXTRA  didn&apos;t need the locking fields or _up initialized.  (Some places needed  _up to exist and not be off the end of a NULL or garbage pointer, but  they didn&apos;t require it to be initialized to a specific value.)- For now, stdio.h &quot;knows&quot; that pthread_t is a &apos;struct pthread *&apos; to  avoid namespace pollution of including all the pthread types in stdio.h.  Once we remove all the inlines and make __sFILE private it can go back  to using pthread_t, etc.- This does not remove any of the inlines currently and does not change  any of the public ABI of &apos;FILE&apos;.MFC after:	1 monthReviewed by:	peter

            List of files:
            /freebsd-12.1/lib/libc/stdio/vsnprintf.c</description>
        <pubDate>Thu, 17 Apr 2008 22:17:54 +0000</pubDate>
        <dc:creator>John Baldwin &lt;jhb@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>c879ae35 - Per Regents of the University of Calfornia letter, remove advertising</title>
        <link>http://172.16.0.5:8080/history/freebsd-12.1/lib/libc/stdio/vsnprintf.c#c879ae35</link>
        <description>Per Regents of the University of Calfornia letter, remove advertisingclause.# If I&apos;ve done so improperly on a file, please let me know.

            List of files:
            /freebsd-12.1/lib/libc/stdio/vsnprintf.c</description>
        <pubDate>Tue, 09 Jan 2007 00:28:16 +0000</pubDate>
        <dc:creator>Warner Losh &lt;imp@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>b0a06af5 - When size is 1 should just null terminate the string.  The dummy variable</title>
        <link>http://172.16.0.5:8080/history/freebsd-12.1/lib/libc/stdio/vsnprintf.c#b0a06af5</link>
        <description>When size is 1 should just null terminate the string.  The dummy variableis made an array of two, to explicitly avoid stack corruption due tonull-terminating (which is doesn&apos;t actually happen due to stack alignmentpadding).Submitted by: Ed Moy &lt;emoy@apple.com&gt;Obtained from: Apple Computer, Inc.

            List of files:
            /freebsd-12.1/lib/libc/stdio/vsnprintf.c</description>
        <pubDate>Wed, 02 Jul 2003 07:08:44 +0000</pubDate>
        <dc:creator>Jordan K. Hubbard &lt;jkh@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>48eaac24 - Fix vsnprintf(3) memory leak for size == 0.</title>
        <link>http://172.16.0.5:8080/history/freebsd-12.1/lib/libc/stdio/vsnprintf.c#48eaac24</link>
        <description>Fix vsnprintf(3) memory leak for size == 0.PR:             bin/36175Obtained from:  OpenBSDReviewed by:    silence on -auditMFC after:      5 days

            List of files:
            /freebsd-12.1/lib/libc/stdio/vsnprintf.c</description>
        <pubDate>Tue, 17 Sep 2002 11:28:24 +0000</pubDate>
        <dc:creator>Maxim Konovalov &lt;maxim@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>58d38e25 - Style: One space between &quot;restrict&quot; qualifier and &quot;*&quot;.</title>
        <link>http://172.16.0.5:8080/history/freebsd-12.1/lib/libc/stdio/vsnprintf.c#58d38e25</link>
        <description>Style: One space between &quot;restrict&quot; qualifier and &quot;*&quot;.

            List of files:
            /freebsd-12.1/lib/libc/stdio/vsnprintf.c</description>
        <pubDate>Fri, 06 Sep 2002 11:24:06 +0000</pubDate>
        <dc:creator>Tim J. Robbins &lt;tjr@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>abbd8902 - o Merge &lt;machine/ansi.h&gt; and &lt;machine/types.h&gt; into a new header</title>
        <link>http://172.16.0.5:8080/history/freebsd-12.1/lib/libc/stdio/vsnprintf.c#abbd8902</link>
        <description>o Merge &lt;machine/ansi.h&gt; and &lt;machine/types.h&gt; into a new header  called &lt;machine/_types.h&gt;.o &lt;machine/ansi.h&gt; will continue to live so it can define MD clock  macros, which are only MD because of gratuitous differences between  architectures.o Change all headers to make use of this.  This mainly involves  changing:    #ifdef _BSD_FOO_T_    typedef	_BSD_FOO_T_	foo_t;    #undef _BSD_FOO_T_    #endif  to:    #ifndef _FOO_T_DECLARED    typedef	__foo_t	foo_t;    #define	_FOO_T_DECLARED    #endifConcept by:	bdeReviewed by:	jake, obrien

            List of files:
            /freebsd-12.1/lib/libc/stdio/vsnprintf.c</description>
        <pubDate>Wed, 21 Aug 2002 16:20:02 +0000</pubDate>
        <dc:creator>Mike Barcroft &lt;mike@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>f8418db7 - - For compliance with IEEE Std 1003.1-2001, add the &apos;restrict&apos;</title>
        <link>http://172.16.0.5:8080/history/freebsd-12.1/lib/libc/stdio/vsnprintf.c#f8418db7</link>
        <description>- For compliance with IEEE Std 1003.1-2001, add the &apos;restrict&apos;   qualifier to function prototypes and definitions where   appropriate using the &apos;__restrict&apos; macro. - Update the manual page.

            List of files:
            /freebsd-12.1/lib/libc/stdio/vsnprintf.c</description>
        <pubDate>Thu, 15 Aug 2002 10:28:52 +0000</pubDate>
        <dc:creator>Robert Drehmel &lt;robert@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>e74101e4 - Basic support for wide character I/O: getwc(), fgetwc(), getwchar(),</title>
        <link>http://172.16.0.5:8080/history/freebsd-12.1/lib/libc/stdio/vsnprintf.c#e74101e4</link>
        <description>Basic support for wide character I/O: getwc(), fgetwc(), getwchar(),putwc(), fputwc(), putwchar(), ungetwc(), fwide().

            List of files:
            /freebsd-12.1/lib/libc/stdio/vsnprintf.c</description>
        <pubDate>Tue, 13 Aug 2002 09:30:41 +0000</pubDate>
        <dc:creator>Tim J. Robbins &lt;tjr@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>333fc21e - Fix the style of the SCM ID&apos;s.</title>
        <link>http://172.16.0.5:8080/history/freebsd-12.1/lib/libc/stdio/vsnprintf.c#333fc21e</link>
        <description>Fix the style of the SCM ID&apos;s.I believe have made all of libc .c&apos;s as consistent as possible.

            List of files:
            /freebsd-12.1/lib/libc/stdio/vsnprintf.c</description>
        <pubDate>Fri, 22 Mar 2002 21:53:29 +0000</pubDate>
        <dc:creator>David E. O&apos;Brien &lt;obrien@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>a52532c9 - revert freeing of memory that gets allocated when str == NULL</title>
        <link>http://172.16.0.5:8080/history/freebsd-12.1/lib/libc/stdio/vsnprintf.c#a52532c9</link>
        <description>revert freeing of memory that gets allocated when str == NULL(this will be fixed in a better way)PR:		misc/26044

            List of files:
            /freebsd-12.1/lib/libc/stdio/vsnprintf.c</description>
        <pubDate>Mon, 18 Jun 2001 04:40:52 +0000</pubDate>
        <dc:creator>Assar Westerlund &lt;assar@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>207d92d0 - free memory that gets allocated by vfprintf when str == NULL</title>
        <link>http://172.16.0.5:8080/history/freebsd-12.1/lib/libc/stdio/vsnprintf.c#207d92d0</link>
        <description>free memory that gets allocated by vfprintf when str == NULLPR:		misc/26044MFC after:	1 week

            List of files:
            /freebsd-12.1/lib/libc/stdio/vsnprintf.c</description>
        <pubDate>Sat, 16 Jun 2001 05:37:57 +0000</pubDate>
        <dc:creator>Assar Westerlund &lt;assar@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>d201fe46 - Remove _THREAD_SAFE and make libc thread-safe by default by</title>
        <link>http://172.16.0.5:8080/history/freebsd-12.1/lib/libc/stdio/vsnprintf.c#d201fe46</link>
        <description>Remove _THREAD_SAFE and make libc thread-safe by default byadding (weak definitions to) stubs for some of the pthreadfunctions.  If the threads library is linked in, the realpthread functions will pulled in.Use the following convention for system calls wrapped by thethreads library:	__sys_foo - actual system call	_foo - weak definition to __sys_foo	foo - weak definition to __sys_fooChange all libc uses of system calls wrapped by the threadslibrary from foo to _foo.  In order to define the prototypesfor _foo(), we introduce namespace.h and un-namespace.h(suggested by bde).  All files that need to reference thesesystem calls, should include namespace.h before any standardincludes, then include un-namespace.h after the standardincludes and before any local includes.  &lt;db.h&gt; is an exceptionand shouldn&apos;t be included in between namespace.h andun-namespace.h  namespace.h will define foo to _foo, andun-namespace.h will undefine foo.Try to eliminate some of the recursive calls to MT-safefunctions in libc/stdio in preparation for adding a mutexto FILE.  We have recursive mutexes, but would like to avoidusing them if possible.Remove uneeded includes of &lt;errno.h&gt; from a few files.Add $FreeBSD$ to a few files in order to pass commitprep.Approved by:	-arch

            List of files:
            /freebsd-12.1/lib/libc/stdio/vsnprintf.c</description>
        <pubDate>Wed, 24 Jan 2001 13:01:12 +0000</pubDate>
        <dc:creator>Daniel Eischen &lt;deischen@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>7f3dea24 - $Id$ -&gt; $FreeBSD$</title>
        <link>http://172.16.0.5:8080/history/freebsd-12.1/lib/libc/stdio/vsnprintf.c#7f3dea24</link>
        <description>$Id$ -&gt; $FreeBSD$

            List of files:
            /freebsd-12.1/lib/libc/stdio/vsnprintf.c</description>
        <pubDate>Sat, 28 Aug 1999 00:22:10 +0000</pubDate>
        <dc:creator>Peter Wemm &lt;peter@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>8c6d2f42 - 1. EOF was returned when the buffer size was larger than INT_MAX.  This</title>
        <link>http://172.16.0.5:8080/history/freebsd-12.1/lib/libc/stdio/vsnprintf.c#8c6d2f42</link>
        <description>1. EOF was returned when the buffer size was larger than INT_MAX.  This   case has very little to do with the output size being larger than   INT_MAX.2. The new #include of &lt;limits.h&gt; was disordered.3. The new declaration of `on&apos; was disordered (integer types go together).4. Testing an unsigned value for &gt; 0 was fishy.Submitted by: bde

            List of files:
            /freebsd-12.1/lib/libc/stdio/vsnprintf.c</description>
        <pubDate>Thu, 01 Jan 1998 20:15:58 +0000</pubDate>
        <dc:creator>Andrey A. Chernov &lt;ache@FreeBSD.org&gt;</dc:creator>
    </item>
<item>
        <title>fb25537f - Correct type of stored argument place (from previous fix)</title>
        <link>http://172.16.0.5:8080/history/freebsd-12.1/lib/libc/stdio/vsnprintf.c#fb25537f</link>
        <description>Correct type of stored argument place (from previous fix)

            List of files:
            /freebsd-12.1/lib/libc/stdio/vsnprintf.c</description>
        <pubDate>Wed, 24 Dec 1997 23:54:19 +0000</pubDate>
        <dc:creator>Andrey A. Chernov &lt;ache@FreeBSD.org&gt;</dc:creator>
    </item>
</channel>
</rss>
