OpenBSD CVS

CVS log for src/include/wchar.h


[BACK] Up to [local] / src / include

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.31 / (download) - annotate - [select for diffs], Tue Sep 5 03:16:13 2017 UTC (6 years, 8 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, HEAD
Changes since 1.30: +12 -1 lines
Diff to previous 1.30 (colored)

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.

Revision 1.30 / (download) - annotate - [select for diffs], Fri Sep 9 18:12:37 2016 UTC (7 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.29: +2 -11 lines
Diff to previous 1.29 (colored)

Move the 10 (!) defintions of NULL to their own mini header file and
update the NULL definition for C++11.  OK deraadt@ guenther@ kettenis@

Revision 1.29 / (download) - annotate - [select for diffs], Sat Apr 4 18:05:05 2015 UTC (9 years, 1 month ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.28: +2 -5 lines
Diff to previous 1.28 (colored)

gcc 2.x is dead

ok millert@

Revision 1.28 / (download) - annotate - [select for diffs], Mon Feb 9 23:02:25 2015 UTC (9 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.27: +9 -6 lines
Diff to previous 1.27 (colored)

Protect fgetwln(), wcslcat() and wcslcpy() with __BSD_VISIBLE
OK tedu@ kettenis@

Revision 1.27 / (download) - annotate - [select for diffs], Mon Jan 12 20:58:07 2015 UTC (9 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.26: +2 -1 lines
Diff to previous 1.26 (colored)

Add fgetwln(3) from FreeBSD and bump libc minor revision.

Revision 1.26 / (download) - annotate - [select for diffs], Sat Jul 12 02:48:33 2014 UTC (9 years, 10 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.25: +3 -1 lines
Diff to previous 1.25 (colored)

Per C99, wchar.h has to forward declare struct tm

Revision 1.25 / (download) - annotate - [select for diffs], Sat May 3 16:19:53 2014 UTC (10 years ago) by martynas
Branch: MAIN
Changes since 1.24: +28 -14 lines
Diff to previous 1.24 (colored)

Annotate wide character routines so they get protected by Wbounded.
OK millert@

Revision 1.24 / (download) - annotate - [select for diffs], Thu Mar 28 16:37:14 2013 UTC (11 years, 1 month ago) by eric
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.23: +3 -1 lines
Diff to previous 1.23 (colored)

Enable fmemopen(3) and open_{w,}memstream(3)

commiting on behalf of mpi@

Revision 1.23 / (download) - annotate - [select for diffs], Wed Jun 6 16:58:02 2012 UTC (11 years, 11 months ago) by matthew
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.22: +6 -1 lines
Diff to previous 1.22 (colored)

Add support for mbsnrtowcs() and wcsnrtombs() to libc.

Bulk build test by naddy.

Revision 1.22 / (download) - annotate - [select for diffs], Thu Jan 5 20:37:50 2012 UTC (12 years, 4 months ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.21: +9 -2 lines
Diff to previous 1.21 (colored)

C99 says that both <wchar.h> and <stdint.h> should define WCHAR_MIN/MAX.

ok beck@, guenther@, millert@, miod@

Revision 1.21 / (download) - annotate - [select for diffs], Sun Oct 16 13:22:06 2011 UTC (12 years, 7 months ago) by stsp
Branch: MAIN
Changes since 1.20: +3 -1 lines
Diff to previous 1.20 (colored)

Hook wcsftime(3) to the build; committing on behalf of espie

Revision 1.20 / (download) - annotate - [select for diffs], Sun Oct 16 13:20:51 2011 UTC (12 years, 7 months ago) by stsp
Branch: MAIN
Changes since 1.19: +8 -1 lines
Diff to previous 1.19 (colored)

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

Revision 1.19 / (download) - annotate - [select for diffs], Mon Jul 4 04:37:34 2011 UTC (12 years, 10 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.18: +2 -1 lines
Diff to previous 1.18 (colored)

Add wcsdup(), from NetBSD.

ok deraadt matthew

Revision 1.18 / (download) - annotate - [select for diffs], Sun Jul 3 18:51:01 2011 UTC (12 years, 10 months ago) by jsg
Branch: MAIN
Changes since 1.17: +3 -1 lines
Diff to previous 1.17 (colored)

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@

Revision 1.17 / (download) - annotate - [select for diffs], Wed Jun 1 16:39:07 2011 UTC (12 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Use __POSIX_VISIBLE not __POSIX_C_SOURCE to bracket the definitions
of wcscasecmp() and wcsncasecmp().  Noticed by naddy@ OK espie@

Revision 1.16 / (download) - annotate - [select for diffs], Sat May 28 15:16:46 2011 UTC (12 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.15: +6 -1 lines
Diff to previous 1.15 (colored)

wcs(n)casecmp support, manpage comments from jmc@, okay deraadt@

Revision 1.15 / (download) - annotate - [select for diffs], Thu Apr 28 17:38:46 2011 UTC (13 years ago) by stsp
Branch: MAIN
Changes since 1.14: +9 -1 lines
Diff to previous 1.14 (colored)

Bring back wprintf. We've sorted out what to do for gcc2 and gcc3.
"Yes, go ahead then" deraadt

Revision 1.14 / (download) - annotate - [select for diffs], Sun Apr 24 08:54:02 2011 UTC (13 years ago) by stsp
Branch: MAIN
Changes since 1.13: +0 -8 lines
Diff to previous 1.13 (colored)

Back out wprintf until we've determined what to do for gcc2 and gcc3 arches.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Apr 24 07:46:58 2011 UTC (13 years ago) by stsp
Branch: MAIN
Changes since 1.12: +9 -1 lines
Diff to previous 1.12 (colored)

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

Revision 1.12 / (download) - annotate - [select for diffs], Wed Apr 6 11:39:42 2011 UTC (13 years, 1 month ago) by miod
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

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.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Jul 24 09:58:39 2010 UTC (13 years, 9 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.10: +1 -2 lines
Diff to previous 1.10 (colored)

Don't declare wcscoll() twice

Revision 1.10 / (download) - annotate - [select for diffs], Tue Jan 13 18:18:31 2009 UTC (15 years, 4 months ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.9: +6 -1 lines
Diff to previous 1.9 (colored)

Add wcstof(3) and wcstold(3).

ok miod@

Revision 1.9 / (download) - annotate - [select for diffs], Thu Jun 26 05:42:04 2008 UTC (15 years, 10 months ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.8: +1 -8 lines
Diff to previous 1.8 (colored)

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@

Revision 1.8 / (download) - annotate - [select for diffs], Fri Jan 6 18:53:04 2006 UTC (18 years, 4 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.7: +14 -16 lines
Diff to previous 1.7 (colored)

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

Revision 1.7 / (download) - annotate - [select for diffs], Mon Dec 19 17:05:20 2005 UTC (18 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

This piece was missed in the _FOO_SOURCE -> __FOO_VISIBLE change set.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Jul 1 08:59:27 2005 UTC (18 years, 10 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.5: +19 -2 lines
Diff to previous 1.5 (colored)

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@.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Jun 20 10:46:34 2005 UTC (18 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.4: +1 -2 lines
Diff to previous 1.4 (colored)

zap duplicate prototype

Revision 1.4 / (download) - annotate - [select for diffs], Fri Jun 17 20:40:30 2005 UTC (18 years, 11 months ago) by espie
Branch: MAIN
Changes since 1.3: +19 -0 lines
Diff to previous 1.3 (colored)


next citrus step.

reviewed by millert, otto, kevlo, naddy, kettenis...
libc+libstdc++ bump

Revision 1.3 / (download) - annotate - [select for diffs], Wed May 18 13:48:49 2005 UTC (19 years ago) by espie
Branch: MAIN
Changes since 1.2: +3 -1 lines
Diff to previous 1.2 (colored)

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@

Revision 1.2 / (download) - annotate - [select for diffs], Wed May 11 18:44:12 2005 UTC (19 years ago) by espie
Branch: MAIN
Changes since 1.1: +17 -1 lines
Diff to previous 1.1 (colored)

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

Revision 1.1 / (download) - annotate - [select for diffs], Thu Apr 14 20:59:10 2005 UTC (19 years, 1 month ago) by espie
Branch: MAIN

introduce some wchar functions (from citrus and an itojun@ diff)
okay deraadt@, cloder@, pvalchev@
thanks to everyone who commented on that.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.