guenther
85808f05af
gcc 2.x is dead
ok millert@
9 years ago
millert
cec1070829
Protect fgetwln(), wcslcat() and wcslcpy() with __BSD_VISIBLE
OK tedu@ kettenis@
9 years ago
millert
1644b19fff
Add fgetwln(3) from FreeBSD and bump libc minor revision.
9 years ago
guenther
0094b6d149
Per C99, wchar.h has to forward declare struct tm
10 years ago
martynas
b705f6a7c9
Annotate wide character routines so they get protected by Wbounded.
OK millert@
10 years ago
eric
edb5d34b17
Enable fmemopen(3) and open_{w,}memstream(3)
commiting on behalf of mpi@
11 years ago
matthew
209ce38b86
Add support for mbsnrtowcs() and wcsnrtombs() to libc.
Bulk build test by naddy.
12 years ago
kettenis
512ab376b6
C99 says that both <wchar.h> and <stdint.h> should define WCHAR_MIN/MAX.
ok beck@, guenther@, millert@, miod@
12 years ago
stsp
32c2680ca1
Hook wcsftime(3) to the build; committing on behalf of espie
13 years ago
stsp
6cf7bc63c9
Add wscanf(3) and friends. Based on our scanf(3) implementation, with wide
character support changes based on code from FreeBSD.
ok espie guenther; man page help from schwarze
13 years ago
nicm
69ccac0496
Add wcsdup(), from NetBSD.
ok deraadt matthew
13 years ago
jsg
a76303a0c4
As pointed out by Richard Guenther our definition
of NULL was incorrect for c++ compilers that aren't
gcc (or pretend to be gcc like clang).
ok miod@
13 years ago
millert
6ea7e09998
Use __POSIX_VISIBLE not __POSIX_C_SOURCE to bracket the definitions
of wcscasecmp() and wcsncasecmp(). Noticed by naddy@ OK espie@
13 years ago
espie
7b1036f191
wcs(n)casecmp support, manpage comments from jmc@, okay deraadt@
13 years ago
stsp
783d768449
Bring back wprintf. We've sorted out what to do for gcc2 and gcc3.
"Yes, go ahead then" deraadt
13 years ago
stsp
bc79919b02
Back out wprintf until we've determined what to do for gcc2 and gcc3 arches.
13 years ago
stsp
81453f577d
Add fwprintf, swprintf, vfwprintf, vswprintf, vwprintf, and wprintf to libc.
Based on our vfprintf etc. implementations. Wide character parts based on
NetBSD but with lots of macros expanded. Minor bump for libc.
ok kettenis espie
13 years ago
miod
3409dda593
Define NULL as a void * instead of a long integer, as required by Single Unix.
Kernel and bootblocks still use the old 0L value until all the NULL abuses
in the code are fixed.
13 years ago
guenther
59eb297313
Don't declare wcscoll() twice
14 years ago
kettenis
8190702bc1
Add wcstof(3) and wcstold(3).
ok miod@
15 years ago
ray
8e0491f90a
First pass at removing clauses 3 and 4 from NetBSD licenses.
Not sure what's more surprising: how long it took for NetBSD to
catch up to the rest of the BSDs (including UCB), or the amount of
code that NetBSD has claimed for itself without attributing to the
actual authors.
OK deraadt@
16 years ago
millert
605c5586ca
Adapt things to use __type_t instead of _BSD_TYPE_T_
Add new sys/_types.h header
Include machine/_types.h or sys/_types.h where applicable
19 years ago
millert
16cfa5f58b
This piece was missed in the _FOO_SOURCE -> __FOO_VISIBLE change set.
19 years ago
espie
14a721a9a3
Add a few missing functions so that wctype.h/wchar.h are more or less
uptodate, namely, wcsto(u)l(l) family, wcstod, stubs from wctrans/towctrans
crank minor.
okay millert@, jmc@.
19 years ago
espie
d0f50b55ef
zap duplicate prototype
19 years ago
espie
a428b44e26
next citrus step.
19 years ago
espie
8d57f68af7
wchar_t is a native C++ type, gcc picks its definition from elsewhere,
so do not redefine it.
Found out by the quite picky fixinc in recent gcc.
okay millert@, kettenis@
19 years ago
espie
175c6c79dd
major abi changes:
* introduce the mbstate_t typedef.
impacts gnu libiconv, which has already been taken care of.
* Prepare for mb stuff to really exist, replace macro MB_CUR_MAX with
an external variable __mb_cur_max (impacts libX11 and various ports).
* use mbstate in all the mb <-> wchar functions with state.
* add a stub iswctype function allowing some ports to compile.
bash and gdiff are missing wcscoll, and need to be told there's no i18n
until this is fixed.
Discussed and matthieu, otto, millert, kettenis, deraadt.
Major libc bump
19 years ago
espie
5e8683629a
introduce some wchar functions (from citrus and an itojun@ diff)
okay deraadt@, cloder@, pvalchev@
thanks to everyone who commented on that.
19 years ago