| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Update and improve the documentation for %[aA]
o Like %[eE], %[aA] may round the result if a precision is specified.
o Grammar police: Fix a split infinitive.
o The FreeBSD implementation does better than the minimum required
by C99 (literal translation of the mantissa). The digit before
the hexadecimal-point is never 0 unless the number itself is 0.
o Clarify that the exponent field represents a decimal exponent of 2.
o Discuss the fact that multiple valid representations are possible.
o Remove the entry in the BUGS section claiming that %[aA] is not
implemented.
- Remove the entry in the BUGS section claiming that the ' flag for
printing thousands separators is unimplemented for floating-point.
- Remove the entry in the BUGS section claiming that the L modifier
reduces the precision to "double" before conversion.
|
|
|
|
| |
multibyte characters in the format string correctly.
|
|
|
|
|
|
|
| |
values (EOF in our case) on error, and some of the possible errno values
in an Errors section.
PR: 39257
|
| |
|
|
|
|
|
|
|
| |
are marked up in stdio(3), and because they are defined expressions
of type "FILE *".
Approved by: re
|
| |
|
| |
|
|
|
|
| |
versions of printf() and scanf().
|
|
|
|
|
|
| |
and wide characters. These were already documented in the manual page,
with an entry mentioning that they were not implemented yet. The XSI
%S and %C synoyms have not been added.
|
| |
|
|
|
|
|
|
| |
qualifier to function prototypes and definitions where
appropriate using the '__restrict' macro.
- Update the manual page.
|
|
|
|
|
| |
definitions to comply with IEEE Std 1003.1-2001.
- Update the manual pages.
|
|
|
|
|
|
|
|
|
|
| |
(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
|
| |
|
|
|
|
| |
compliance in the BUGS section immediately below.
|
|
|
|
| |
Sponsored by: DARPA, NAI Labs
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Stop abusing the .%J macro for where the .Pa macro should have been used.
|
|
|
|
|
| |
Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
from the 'l' description with s/long/long long/g.
PR: 27017
Submitted by: Guy Harris <guy@alum.mit.edu>
MFC after: 2 weeks
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
o Explain snprintf's return value better.
o Document snprintf, et al, were defined in C-99
o Warn against %n.
|
|
|
|
|
|
|
| |
return the number of characters that would have been in the new string.
Obtained from: OpenBSD
MFC after: 3 days
|
|
|
|
|
|
| |
Reviewed by: ru
Approved by: murray
Obtained from: OpenBSD
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
| |
More libraries manpages updates following.
|
| |
|
|
|
|
|
| |
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.
|
| |
|
| |
|
|
|
|
| |
%G formats.
|
|
|
|
|
| |
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).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
PR: 6868
Submitted by: Josh Gilliam <josh@quick.net>
|
| |
|
|
|
|
|
|
|
|
|
| |
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>
|