summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/vprintf.c
AgeCommit message (Collapse)Author
2018-02-04fixes for GCC 6:mrg
- -Wstrict-prototypes is not available for C++, so don't try to ignore it for C++. - remove many _DIAGASSERT() checks against not NULL for functions with arguments with nonnull attributes. in two cases, leave code behind that should set defaults to "(null)". - use -Wno-error=frame-address for i386 mcount, as it seems valid to assume the caller will have a frame.fair
2013-04-19Add explicit locale versions for the printf family. Replace asprintf,joerg
snprintf and sprintf with simple wrappers around the corresponding va_list functions to reduce code duplication.
2012-03-15- ansify, knf.christos
- no functional changes
2011-07-17Retire varargs.h support. Move machine/stdarg.h logic into MIjoerg
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.
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22280, verified by myself.
1999-09-20back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.lukem
_DIAGASSERT() is still retained.
1999-09-16* use _DIAGASSERT() to check pointer arguments against NULL and filelukem
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
1997-07-13Fix RCSID'schristos
Fix gcc warnings. Add prototypes for functions that were declared in more than one place to local.h or extern.h and use that instead.
1996-03-29Add explict function return typesjtc
1995-02-02Merged with 4.4lite.jtc
Changed to conform to NetBSD's new RCS Id convention.
1994-05-22_VA_LIST_ -> _BSD_VA_LIST_cgd
1993-08-26Declare rcsid strings so they are stored in text segment.jtc
1993-08-01Add RCS identifiers.mycroft
1993-03-21initial import of 386bsd-0.1 sourcescgd