guenther
e490037411
wcslcpy() and wcslcat() are in POSIX-2024. Update #include visibility
...
and manpages and add restrict qualifiers.
ok millert@
2024-08-07 04:59:45 +00:00
jca
4ee4ae6a4d
Add wcsnlen(3) declaration, missed in previous.
2024-07-14 10:04:17 +00:00
schwarze
3a628b46e7
New POSIX xlocale implementation written from scratch.
...
Complete in the sense that all POSIX *locale(3) and *_l(3) functions
are included, but in OpenBSD, we of course only really care about
LC_CTYPE and we only support ASCII and UTF-8.
With important help from kettenis@, guenther@, and jca@.
Repeated testing in ports bulk builds by naddy@.
Additional testing by jca@, sebastia@, dcoppa@, and others.
OK kettenis@ dcoppa@, and guenther@ on an earlier version.
Riding guenther@'s libc/librthread major bump.
2017-09-05 03:16:13 +00:00
millert
6ecde746de
Move the 10 (!) defintions of NULL to their own mini header file and
...
update the NULL definition for C++11. OK deraadt@ guenther@ kettenis@
2016-09-09 18:12:37 +00:00
guenther
fd7ad13f9e
gcc 2.x is dead
...
ok millert@
2015-04-04 18:05:04 +00:00
millert
3a41feed02
Protect fgetwln(), wcslcat() and wcslcpy() with __BSD_VISIBLE
...
OK tedu@ kettenis@
2015-02-09 23:02:25 +00:00
millert
8acb1e22e6
Add fgetwln(3) from FreeBSD and bump libc minor revision.
2015-01-12 20:58:07 +00:00
guenther
9bfcd1767c
Per C99, wchar.h has to forward declare struct tm
2014-07-12 02:48:33 +00:00
martynas
0ad9e87784
Annotate wide character routines so they get protected by Wbounded.
...
OK millert@
2014-05-03 16:19:53 +00:00
eric
236998c6ac
Enable fmemopen(3) and open_{w,}memstream(3)
...
commiting on behalf of mpi@
2013-03-28 16:37:13 +00:00
matthew
5a08728ecb
Add support for mbsnrtowcs() and wcsnrtombs() to libc.
...
Bulk build test by naddy.
2012-06-06 16:58:02 +00:00
kettenis
ff74d4c225
C99 says that both <wchar.h> and <stdint.h> should define WCHAR_MIN/MAX.
...
ok beck@, guenther@, millert@, miod@
2012-01-05 20:37:50 +00:00
stsp
0b5b2ca259
Hook wcsftime(3) to the build; committing on behalf of espie
2011-10-16 13:22:06 +00:00
stsp
2d31a56b68
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
2011-10-16 13:20:51 +00:00
nicm
2dcf140db7
Add wcsdup(), from NetBSD.
...
ok deraadt matthew
2011-07-04 04:37:34 +00:00
jsg
c4ff7bee63
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@
2011-07-03 18:51:01 +00:00
millert
e4bf39f15e
Use __POSIX_VISIBLE not __POSIX_C_SOURCE to bracket the definitions
...
of wcscasecmp() and wcsncasecmp(). Noticed by naddy@ OK espie@
2011-06-01 16:39:07 +00:00
espie
42569c7ddd
wcs(n)casecmp support, manpage comments from jmc@, okay deraadt@
2011-05-28 15:16:46 +00:00
stsp
25963022b9
Bring back wprintf. We've sorted out what to do for gcc2 and gcc3.
...
"Yes, go ahead then" deraadt
2011-04-28 17:38:46 +00:00
stsp
760d4ce496
Back out wprintf until we've determined what to do for gcc2 and gcc3 arches.
2011-04-24 08:54:02 +00:00
stsp
92b22d3d07
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
2011-04-24 07:46:58 +00:00
miod
0c2a5da7f0
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.
2011-04-06 11:39:42 +00:00
guenther
74ebee540e
Don't declare wcscoll() twice
2010-07-24 09:58:39 +00:00
kettenis
416b788cd9
Add wcstof(3) and wcstold(3).
...
ok miod@
2009-01-13 18:18:31 +00:00
ray
d874cce4b1
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@
2008-06-26 05:42:03 +00:00
millert
c916d9484c
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
2006-01-06 18:53:04 +00:00
millert
ad6d987c24
This piece was missed in the _FOO_SOURCE -> __FOO_VISIBLE change set.
2005-12-19 17:05:20 +00:00
espie
38311d318d
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@.
2005-07-01 08:59:27 +00:00
espie
f8220bb73e
zap duplicate prototype
2005-06-20 10:46:34 +00:00
espie
c2fb321235
next citrus step.
...
reviewed by millert, otto, kevlo, naddy, kettenis...
libc+libstdc++ bump
2005-06-17 20:40:30 +00:00
espie
a098908184
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@
2005-05-18 13:48:49 +00:00
espie
561d433d11
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
2005-05-11 18:44:12 +00:00
espie
bc92a55614
introduce some wchar functions (from citrus and an itojun@ diff)
...
okay deraadt@, cloder@, pvalchev@
thanks to everyone who commented on that.
2005-04-14 20:59:10 +00:00