| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
Notes:
svn path=/head/; revision=132243
|
| |
|
|
| |
Notes:
svn path=/head/; revision=132242
|
| |
|
|
|
|
|
| |
of fgetln.c (non-static).
Notes:
svn path=/head/; revision=132241
|
| |
|
|
| |
Notes:
svn path=/head/; revision=131880
|
| |
|
|
|
|
|
|
|
| |
read-only file.
Discussed on: -current
Notes:
svn path=/head/; revision=131592
|
| |
|
|
| |
Notes:
svn path=/head/; revision=131539
|
| |
|
|
| |
Notes:
svn path=/head/; revision=131504
|
| |
|
|
| |
Notes:
svn path=/head/; revision=131365
|
| |
|
|
| |
Notes:
svn path=/head/; revision=130869
|
| |
|
|
|
|
|
| |
Approved by: das (mentor)
Notes:
svn path=/head/; revision=130242
|
| |
|
|
|
|
|
|
|
| |
since the macro isn't really a predicate, and it has side-effects.
Also, don't set errno if prepwrite() fails, since this is done in
prepwrite() now.
Notes:
svn path=/head/; revision=130232
|
| |
|
|
|
|
|
| |
since the macro isn't really a predicate, and it has side-effects.
Notes:
svn path=/head/; revision=130231
|
| |
|
|
|
|
|
|
|
|
|
|
| |
writable. Affected callers include fwrite(), put?(), and *printf().
The issue of whether this is the right errno for funopened streams is
unresolved, but that's an obscure case, and some errno is better than
no errno.
Discussed with: bde, jkh
Notes:
svn path=/head/; revision=130230
|
| |
|
|
|
|
|
| |
putwchar() to reduce function call overhead.
Notes:
svn path=/head/; revision=129705
|
| |
|
|
|
|
|
|
|
|
| |
through byte by byte with mbrtowc(). In the usual case (buffer is big
enough to contain the multibyte character, character does not straddle
buffer boundary) this results in only one call to mbrtowc() for each
wide character read.
Notes:
svn path=/head/; revision=129584
|
| |
|
|
|
|
|
|
|
|
|
|
| |
to the initial state when a stream is opened or seeked upon. Use the
stream's conversion state object instead of a freshly-zeroed one in
fgetwc(), fputwc() and ungetwc().
This is only a performance improvement for now, but it would also be
required in order to support state-dependent encodings.
Notes:
svn path=/head/; revision=129583
|
| |
|
|
| |
Notes:
svn path=/head/; revision=128844
|
| |
|
|
| |
Notes:
svn path=/head/; revision=128843
|
| |
|
|
|
|
|
| |
- s/#ifdef FLOATING_POINT/#ifndef NO_FLOATING_POINT/
Notes:
svn path=/head/; revision=128822
|
| |
|
|
|
|
|
|
| |
- s/#ifdef FLOATING_POINT/#ifndef NO_FLOATING_POINT/
- Remove HEXFLOAT
Notes:
svn path=/head/; revision=128821
|
| |
|
|
|
|
|
|
|
|
|
|
| |
floating-point support, remove default definition of FLOATING_POINT
from the source, and change the compile-time option to
NO_FLOATING_POINT.
- Remove the HEXFLOAT option. It saves an insignificant amount of
space (<0.1% of the size of libc on i386) and complicates vfprintf()
and checkfmt().
Notes:
svn path=/head/; revision=128819
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
after their change from an array of char to an array of enum.
This fixes problems that occurred when using positional arguments in
format strings, particularly with more than STATIC_ARG_TBL_SIZE (8)
of them.
PR: 65841
Submitted by: Steven Smith (mostly)
Notes:
svn path=/head/; revision=128550
|
| |
|
|
|
|
|
|
| |
state-dependent encodings with locking shifts will come later if there
is demand for it.
Notes:
svn path=/head/; revision=128002
|
| |
|
|
| |
Notes:
svn path=/head/; revision=127227
|
| |
|
|
|
|
|
| |
users from assuming that fpos_t is an integral type.
Notes:
svn path=/head/; revision=127225
|
| |
|
|
|
|
|
| |
related functions - __sgetc() and __sputc() will set it when necessary.
Notes:
svn path=/head/; revision=127198
|
| |
|
|
| |
Notes:
svn path=/head/; revision=127121
|
| |
|
|
| |
Notes:
svn path=/head/; revision=127120
|
| |
|
|
| |
Notes:
svn path=/head/; revision=127119
|
| |
|
|
|
|
|
|
|
|
| |
ferror(), fileno() and clearerr(), using the value of __isthreaded to
decide between the fast inline single-threaded code and the more
general function equivalent. This gives most of the performance
benefits of the old unsafe macros while preserving thread safety.
Notes:
svn path=/head/; revision=127100
|
| |
|
|
| |
Notes:
svn path=/head/; revision=127073
|
| |
|
|
|
|
|
|
| |
setting it redundantly when called from ungetwc(), vfscanf() etc.,
which already set the orientation.
Notes:
svn path=/head/; revision=126809
|
| |
|
|
| |
Notes:
svn path=/head/; revision=126808
|
| |
|
|
|
|
|
| |
detour through putc().
Notes:
svn path=/head/; revision=126806
|
| |
|
|
|
|
|
| |
detour through getc().
Notes:
svn path=/head/; revision=126804
|
| |
|
|
|
|
|
| |
__srefill() to do it.
Notes:
svn path=/head/; revision=126802
|
| |
|
|
| |
Notes:
svn path=/head/; revision=126800
|
| |
|
|
| |
Notes:
svn path=/head/; revision=126765
|
| |
|
|
|
|
|
|
|
|
|
|
| |
structure and call stdio functions. In 5.X this was broken when FILE
locking was introduced into libc.
This change makes most (relevant) stdio functions work again when the
_extra file in FILE isn't initialised (and can't be without a libc
function to do it since the __sFILEX structure is private to libc).
Notes:
svn path=/head/; revision=126760
|
| |
|
|
|
|
|
|
|
|
| |
in order to get SUSv2 conformant behavior in higher level calls like
fputs() and puts().
Reviewed by: bde
Notes:
svn path=/head/; revision=126506
|
| |
|
|
| |
Notes:
svn path=/head/; revision=126034
|
| |
|
|
| |
Notes:
svn path=/head/; revision=125283
|
| |
|
|
|
|
|
|
|
|
| |
Note that this bug is unrelated to recent work in this area; it seems
to have been present since revision 1.1.
Obtained from: NetBSD
Notes:
svn path=/head/; revision=125282
|
| |
|
|
|
|
|
|
|
|
| |
and to reduce diffs between vfprintf.c and vfwprintf.c, declare xdigs*
to be char arrays rather than wchar_t arrays.
In collaboration with: tjr
Notes:
svn path=/head/; revision=124887
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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.
Notes:
svn path=/head/; revision=124710
|
| |
|
|
|
|
|
| |
and %A, which print floating-point numbers in hexadecimal.
Notes:
svn path=/head/; revision=124667
|
| |
|
|
| |
Notes:
svn path=/head/; revision=124658
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
these are not fully implemented and ifdef'd out, the bugs have
never manifested themselves. Specifically:
- Fix a memory leak in the case where %a follows another
floating-point format.
- Make the %a/%A code behave like %e/%E with respect to
precision.
- It is no longer valid to assume that '-' and '0x' are
mutually exclusive.
- Address other minor issues.
Notes:
svn path=/head/; revision=124657
|
| |
|
|
| |
Notes:
svn path=/head/; revision=124175
|
| |
|
|
| |
Notes:
svn path=/head/; revision=124174
|