Home | History | Annotate | Download | only in stdio
History log of /src/lib/libc/stdio/vasprintf.c
RevisionDateAuthorComments
 1.17  19-May-2013  christos don't cast malloc
 1.16  17-May-2013  joerg Provide explicit LC_C_LOCALE accessor and drop the various NULL checks.
Provide LC_GLOBAL_LOCALE in a way that works with all locale functions.
Merge constant data used by the initial global locale and the C locale.
Drop function call layer for _current_locale() and directly return the
locale reference, not a pointer to it. Use protected access for global
variables, so that libc references can avoid the GOT overhead.
 1.15  19-Apr-2013  joerg Add explicit locale versions for the printf family. Replace asprintf,
snprintf and sprintf with simple wrappers around the corresponding
va_list functions to reduce code duplication.
 1.14  15-Mar-2012  christos branches: 1.14.2;
- ansify, knf.
- no functional changes
 1.13  17-Jul-2011  joerg branches: 1.13.2;
Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
 1.12  25-Oct-2009  christos revert some of dsl's changes to make things build on i386; he can undo what
he wants when he comes back.
 1.11  24-Oct-2009  dsl Remove a load of pointless casts - one that even lint doesn't bleat about.
 1.10  09-Feb-2005  kleink A little libc namespace housekeeping exercise:
* Make vfprintf_unlocked() an internal function, c.f. __svfscanf_unlocked().
* Add internal names for arc4random(), endnetpath(), fhstatvfs(),
fstatvfs(), mkstemp(), shquote(), statvfs(), taddr2uaddr(), uaddr2taddr(),
uuid_create_nil(), uuid_is_nil(), and wcwidth().
* Include namespace.h where supposed to.
 1.9  18-Jan-2003  thorpej Merge the nathanw_sa branch.
 1.8  07-Dec-2001  yamt - make FILE structure extensible without breaking binary-compatibility.
- add fputwc, fgetwc, fwide and related functions.
- add hooks needed to maintain the orientation of file stream.
 1.7  21-Jan-2000  mycroft branches: 1.7.6;
Initialize f._file for locking primitives.
 1.6  20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.5  16-Sep-1999  lukem * use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif
 1.4  15-Nov-1998  christos delint
 1.3  15-Oct-1998  mycroft Make sure we free the buffer in all error cases.
Do the final realloc(3) to the size of the string, not the size of the buffer
allocated for the string (which is a noop).
 1.2  08-Sep-1998  kleink s/NULL/NUL/ where appropriate.
 1.1  28-Aug-1998  perry add asprintf and vasprintf, originally written by Todd Miller for OpenBSD
 1.7.6.3  02-May-2002  nathanw Call the _unlocked versions of vfprintf() and __svfscanf(); there's no point
in locking and unlocking a FILE object that only exists in the local scope.
This also has the nice side effect of making sprintf() usable for debugging
threaded code.
 1.7.6.2  06-Feb-2002  nathanw #include "reentrant.h" before "local.h" so that the thread types used
in fileext.h are avaliable.
 1.7.6.1  28-Jan-2002  nathanw Catch up to -current.
 1.13.2.2  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.13.2.1  17-Apr-2012  yamt sync with head
 1.14.2.1  23-Jun-2013  tls resync from head

RSS XML Feed