summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/printf.3
Commit message (Collapse)AuthorAgeFilesLines
* - For compliance with IEEE Std 1003.1-2001, add the 'restrict'robert2002-08-151-4/+4
| | | | | | qualifier to function prototypes and definitions where appropriate using the '__restrict' macro. - Update the manual page.
* - Introduce the 'restrict' qualifier to function prototypes androbert2002-08-151-4/+4
| | | | | definitions to comply with IEEE Std 1003.1-2001. - Update the manual pages.
* Fix typos; each file has at least one s/seperat/separat/schweikh2002-08-111-3/+3
| | | | | | | | | | (I skipped those in contrib/, gnu/ and crypto/) While I was at it, fixed a lot more found by ispell that I could identify with certainty to be errors. All of these were in comments or text, not in actual code. Suggested by: bde MFC after: 3 days
* mdoc(7) police: punctuation.ru2002-08-091-1/+1
|
* Don't claim to fully implement C99 in the STANDARDS section and then disclaimwollman2002-07-151-2/+4
| | | | compliance in the BUGS section immediately below.
* Fix style and wording bugs introduced in my last commit.chris2002-06-181-11/+9
| | | | Sponsored by: DARPA, NAI Labs
* o Move more information from BUGS into SECURITY CONSIDERATIONS andchris2002-06-151-50/+56
| | | | | | | | condense the redundant bits. o Provide an example for using snprintf over sprintf. This may be supplemented with an asprintf() example soon. Sponsored by: DARPA, NAI Labs
* Include information on the dangers of passing a user-supplied string aschris2002-06-131-0/+21
| | | | | | | | a format string. This will later on be changed to a reference to the FreeBSD Security Architecture after it has been committed. PR: docs/39320 Sposnored by: DARPA, NAI Labs
* mdoc(7) police:ru2002-01-091-1/+2
| | | | Stop abusing the .%J macro for where the .Pa macro should have been used.
* Add new "SECURITY CONSIDERATIONS" sections.chris2002-01-061-0/+16
| | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* mdoc(7) police: Minor formatting nits and optimizations to rev. 1.34.ru2001-12-121-57/+67
|
* Remove blank line.fenner2001-12-071-1/+0
|
* Implement several of the c99 updates to printf(3):fenner2001-11-301-96/+225
| | | | | | | | | | | | | | | | - New length modifiers: hh, j, t, z. - New flag: '. Note that %'f is not yet implemented. - Use "inf"/"nan" for efg formats, "INF"/"NAN" for EFG formats. - Implemented %q in terms of %ll; if "quad_t" is not "long long" %q will break. Still to do: - %C, %S, %lc, %ls (wide character support) - %'f (thousands in integer portion of %f) - %a/%A (exact hex representation of floating-point numbers) Garrett Wollman wrote the first version of the vfprintf.c update; Mike Barcroft wrote the first version of the printf.3 changes.
* mdoc(7) police: Use the new .In macro for #include statements.ru2001-10-011-2/+2
|
* mdoc(7) police: fixed/simplified formatting.ru2001-07-041-130/+81
|
* Add description for the 'll' modifier for long long. In essence a copyschweikh2001-06-131-4/+24
| | | | | | | | from the 'l' description with s/long/long long/g. PR: 27017 Submitted by: Guy Harris <guy@alum.mit.edu> MFC after: 2 weeks
* Back out my changes describing how snprintf nul terminates. Itimp2001-06-051-9/+11
| | | | | | | was from the iso standard. Keep the sentence that says it is always NUL terminated to make sure that people understand that. Requested by: bde
* Minor improvements:imp2001-06-051-15/+29
| | | | | | o Explain snprintf's return value better. o Document snprintf, et al, were defined in C-99 o Warn against %n.
* Correct the documentation for snprintf() and vsprintf() which actuallygshapiro2001-05-301-1/+12
| | | | | | | return the number of characters that would have been in the new string. Obtained from: OpenBSD MFC after: 3 days
* Add warnings about trusting user-supplied data.eric2001-05-251-0/+14
| | | | | | Reviewed by: ru Approved by: murray Obtained from: OpenBSD
* mdoc(7) police: fix markup.ru2001-04-181-2/+6
|
* .St -ansiC -> .St -isoCru2001-02-261-1/+1
|
* mdoc(7) police: mark LC_NUMERIC with .Dv.ru2001-02-101-1/+2
|
* Note that decimal point taken from locale (SUSv2)ache2001-02-101-0/+3
|
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-011-1/+1
|
* Make it a bit clearer that asprintf doesn't actually "return" a pointer inben2001-01-011-4/+3
| | | | | | | | the normal sense of the word, but does it through one of its arguments which is a pointer to a pointer. PR: 23717 Submitted by: phk
* Prepare for mdoc(7)NG.ru2000-12-291-1/+1
|
* Avoid use of direct troff requests in mdoc(7) manual pages.ru2000-11-101-1/+0
|
* Introduce ".Lb" macro to libc manpages.phantom2000-04-211-0/+2
| | | | More libraries manpages updates following.
* Remove more single-space hard sentence breaks.sheldonh2000-03-021-1/+2
|
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-021-1/+2
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* We no longer care about the VAX and Tahoe compilers :-)kris2000-01-171-6/+1
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Fixed missing "G" in the list item for the main description of %g andbde1999-08-081-2/+2
| | | | %G formats.
* asprintf() does use realloc() internally, but saying so in the manpage can behoek1999-07-251-4/+2
| | | | | misinterpreted to mean that the pointer passed to asprintf() must be suitable for passing to realloc() as-is (ie. either a NULL pointer or a valid pointer).
* Add $Id$, to make it simpler for members of the translation teams tonik1999-07-121-0/+1
| | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde
* Replace my original asprintf() and vasprintf() hacks with somethingpeter1998-07-081-10/+6
| | | | | | | | more cleanly integrated with stdio. This should be faster and cleaner since it doesn't memcpy() the data into a seperate buffer. This lets stdio allocate and manage the buffer and then hand it over to the user. Obtained from: Todd Miller <Todd.Miller@courtesan.com> via OpenBSD
* Spelling corrections.jkoshy1998-06-061-1/+1
| | | | | PR: 6868 Submitted by: Josh Gilliam <josh@quick.net>
* FIxed arg types (mostly missing consts) in synopsis.bde1997-03-191-1/+1
|
* The following patch to lib/libc/stdio implements positional arguments injkh1997-01-141-0/+14
| | | | | | | | | a manner consistent with other implementations. Its done in a way that adds only a tiny amount of overhead when positional arguments are not used. I also have a test program to go with this, but don't know where it belongs in the tree. Submitted-By: Bill Fenner <fenner@FreeBSD.ORG>
* Update some more man pages to use the .Fx macro.mpp1996-08-211-1/+1
|
* Reword the sentence about the required space for the result string.joerg1996-06-091-1/+1
| | | | Closes PR # 1303.-
* Add an implementation of the gnu-ish asprintf() and vasprintf(). They arepeter1996-05-271-33/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | not based on gpl'ed code, just prototype and usage. I'm not 100% certain they behave the same while the system is in trouble (eg: malloc() failing) but in those circumstances all bets would be off anyway. These routines work like sprintf() and vsprintf(), except that instead of using a fixed buffer, they allocate memory and return it to the user and it's the user's responsibility to free() it. They have allocate as much memory as they need (and can get), so the size of strings it can deal with is limited only by the amount of memory it can malloc() on your behalf. There are a few gpl'ed programs starting to use this interface, and it's becoming more common with the scares about security risks with sprintf(). I dont like the look of the code that the various programs (including cvs, gdb, libg++, etc) provide if configure can't find it on the system. It should be possible to modify the stdio core code to provide this interface more efficiently, I was more worried about having something that worked and was secure. :-) (I noticed that there was once intended to be a smprintf() routine when our stdio was written for 4.4BSD, but it looks pretty stillborn, and it's intended interface is not clear). Since Linux and gnu libc have this interface, it seemed silly to bring yet another one onto the scene.
* Correct a minor typo. Fixes part of PR#1000.mpp1996-04-091-1/+1
| | | | Submitted by: Dave Glowacki <dglo@ssec.wisc.edu>
* Fixed typo.dg1995-05-151-1/+1
|
* BSD 4.4 Lite Lib Sourcesrgrimes1994-05-271-0/+638
OpenPOWER on IntegriCloud