summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/sprintf.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* GNU ld has prefixed the contents of .gnu.warning.SYMBOL sectionstb2017-11-281-2/+2
| | | | | | | | with "warning: " since 2003, so the messages themselves need not contain the prefix anymore. From Scott Cheloha ok jca, deraadt
* Eliminate the last of the LINTEDn and PRINTFLIKEn comments. In oneguenther2015-10-011-2/+1
| | | | | | | case, by deleting some useless '& of an array' we also eliminate the need for the casts which prompted the original lint warnings ok deraadt@
* Make printf-like and scanf-like functions marked as such in llib-lc.lnmartynas2011-05-301-1/+2
| | | | | | | and llib-lwrap.ln databases; so that the lint features doing format strings checks are enabled by default. Looks good to millert@.
* Fix the handle locking in stdio to use flockfile/funlockfilekurt2009-11-091-2/+2
| | | | | | | | | | | | | internally when and where required. Macros in <stdio.h> are updated to automatically call the underlying functions when the process is threaded to obtain the necessary locking. A private mutex is added to protect __sglue, the internal list of FILE handles, and another to protect the one-time initialization. Some routines in libc that use getc() change to use getc_unlocked() as they're either protected by their own lock or aren't thread-safe routines anyway. committing on behalf of and okay guenther@ now that we have install media space available.
* Back out previous commit, as it caused too much growth for the installguenther2009-10-221-2/+2
| | | | media to fit
* Fix the handle locking in stdio to use flockfile/funlockfileguenther2009-10-211-2/+2
| | | | | | | | | | | | internally when and where required. Macros in <stdio.h> are updated to automatically call the underlying functions when the process is threaded to obtain the necessary locking. A private mutex is added to protect __sglue, the internal list of FILE handles, and another to protect the one-time initialization. Some routines in libc that use getc() change to use getc_unlocked() as they're either protected by their own lock or aren't thread-safe routines anyway. ok kurt@, earlier version tested by sthen@ and jj@
* Remove a few warnings. Those were not apparent thanks to a bug in gcc 2.95.espie2005-10-101-1/+2
| | | | | Patch by Leonardo Chiquitto Filho <leonardo@iken.com.br> Thanks.
* zap remaining rcsid.espie2005-08-081-4/+1
| | | | | | Kill old files that are no longer compiled. okay theo
* Change internals of FILE: reuse the unget buffer field to access anespie2005-04-301-1/+3
| | | | | | | | | | | | | | | | extended attribute data structure (pimpl idiom). Idea taken from citrus. Much discussion with deraadt@, otto@, millert@... This is the least disruptive way to extend FILE, since its size can't really change without this being a flag day. So the size doesn't change. Actual additions to the structure will come in separate steps, since this change is nasty enough on its own. Tests by otto@ and others, careful reading of code by otto@ and millert@. This is definitely a major bump, and has been checked to not impact a full ports build.
* make sure the implementation matches the prototype..pat2005-03-311-2/+2
| | | | | | char const * -> const char * ok otto@ deraadt@
* warn about unsafe APIs at link time. Conditional on libc/Makefile definingderaadt2003-07-241-1/+6
| | | | | APIWARN; disabled by default. In use by many developers for quite some time, now they have a common knob to enable/disable this
* oopsderaadt2003-06-111-3/+1
|
* ansification; checked by pvalderaadt2003-06-111-1/+3
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.millert2002-02-191-16/+1
|
* Based on some FreeBSD changes:millert1998-01-121-2/+3
| | | | | | For *s*printf, set f._file to -1 like the comments in stdio.h say. Use '\0', not 0, where appropriate. Don't error out on size of '0' for v?snprintf().
* #if __STDC__ --> #ifdef __STDC__mickey1997-07-251-4/+4
|
* Fix RCS idstholo1996-08-191-6/+1
| | | | Make sure everything uses {SYS,}LIBC_SCCS properly
* initial import of NetBSD treederaadt1995-10-181-0/+81