| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
handling of multibyte sequences representing null wide characters.
|
|
|
|
| |
and %ls.
|
|
|
|
| |
for __vfscanf.
|
|
|
|
| |
MFC after: 2 weeks
|
| |
|
|
|
|
| |
point out that fseek() clears the ungetwc() buffer.
|
|
|
|
|
| |
5.0-R territory, as threatened. This only affects antique 5.0
systems that have not had a 'make world' done for well over a year.
|
|
|
|
| |
references to fputwc() and fgetwc() being macros while I'm at it.
|
|
|
|
|
|
| |
Although there was nothing wrong with getwc() and putwc(), getwchar()
and putwchar() assumed that <stdio.h> had been included before <wchar.h>,
which is not allowed by the standard.
|
|
|
|
| |
trying to shrink the buffer with realloc() before returning it.
|
|
|
|
|
|
|
|
| |
va_end closer to the __vfprintf() call, free the buffer when __vfprintf()
fails and don't bother trying to shrink the buffer with realloc() before
returning it.
Submitted by: bde
|
|
|
|
| |
of memory.
|
|
|
|
| |
runs out of memory, always call va_end.
|
|
|
|
| |
versions of printf() and scanf().
|
|
|
|
|
| |
from vfscanf() to vfwscanf(). It doesn't hurt to have it there, but it's
redundant since __fgetwc() will refill the buffer if it needs to.
|
|
|
|
|
|
|
|
| |
assignment. This is needed on powerpc but is also more correct for the
other ports.
Submitted by: grehan
Tested on: alpha, i386, sparc64
|
|
|
|
|
| |
vfwscanf(), vswscanf(), vwscanf(). As the name suggests, these are wide-
character versions of the scanf() family of functions.
|
|
|
|
|
| |
characters, non-whitespace wide character strings and wide character
strings in a scanset.
|
| |
|
|
|
|
| |
will need to use.
|
| |
|
|
|
|
| |
formatted wide-character output.
|
| |
|
|
|
|
| |
ungetc() instead of having ungetc() recurse on the lock.
|
|
|
|
| |
and __fgetwc() which can be used when we know the file is locked.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
or "POSIX", other European locales). Use __sgetc() and __sputc() where
possible to avoid a wasteful lock and unlock for each byte and to avoid
function call overhead.
|
|
|
|
| |
sequence is detected.
|
|
|
|
|
|
| |
here in terms of mbrtowc(), wcrtomb(), and the single-byte I/O functions.
The rune I/O functions are about to become deprecated in favour of the
ones provided by ISO C90 Amd. 1 and C99.
|
|
|
|
|
|
|
| |
PR: bin/36175
Obtained from: OpenBSD
Reviewed by: silence on -audit
MFC after: 5 days
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
#include <stdio.h>
int main(void)
{
printf("%+f\n", -0.0);
printf("%+f\n", +0.0);
printf("%+f\n", 0.0);
return 0;
}
to output
-0.000000
+0.000000
+0.000000
PR: bin/41823
Submitted by: GOTO Kentaro <gotoken@notwork.org>
Liked by: bde
MFC after: 3 weeks
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
called <machine/_types.h>.
o <machine/ansi.h> will continue to live so it can define MD clock
macros, which are only MD because of gratuitous differences between
architectures.
o Change all headers to make use of this. This mainly involves
changing:
#ifdef _BSD_FOO_T_
typedef _BSD_FOO_T_ foo_t;
#undef _BSD_FOO_T_
#endif
to:
#ifndef _FOO_T_DECLARED
typedef __foo_t foo_t;
#define _FOO_T_DECLARED
#endif
Concept by: bde
Reviewed by: jake, obrien
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
public prototypes of setbuf(3) and setvbuf(3) using the
'__restrict' macro from <sys/cdefs.h> to be compliant with
IEEE Std 1003.1-2001.
- Replace the K&R with ANSI-C function definitions.
- Bring the manual page up-to-date.
|
|
|
|
| |
The last commit cannot possibly have been tested.
|
| |
|
|
|
|
| |
one-character ungetwc(3) buffer limit.
|
|
|
|
| |
St C99 in Standards section.
|
|
|
|
| |
putwc(), fputwc(), putwchar(), ungetwc(), fwide().
|
|
|
|
|
|
|
| |
putwchar(), ungetwc() from NetBSD and Citrus Project, unmodified except
for the addition of $FreeBSD$.
Obtained from: NetBSD, Citrus Project
|
|
|
|
|
|
|
|
|
|
| |
(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.
|
|
|
|
| |
(Prefer the more-encompassing POSIX standard to SUSv2.)
|
|
|
|
| |
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
|