summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale/utf2.c
Commit message (Collapse)AuthorAgeFilesLines
* Move prototypes of various encoding-related functions into a new headertjr2004-05-121-5/+1
| | | | file to avoid extern'ing them all over the place.
* Perform some basic validation of multibyte conversion state objects.tjr2004-04-121-2/+14
|
* Don't cast away const qualifiers.tjr2004-04-101-1/+1
| | | | Spotted by: bde
* Allow partial multibyte characters to accumulate in conversion statetjr2004-04-071-10/+41
| | | | | objects passed to mbrtowc(), mbsrtowcs(), and mbrlen(), as required by C99.
* Reimplement the deprecated UTF2 encoding method using the UTF-8 codetjr2004-04-041-104/+97
| | | | | as a base. mbrtowc() and wcrtomb() are now implemented directly instead of being emulatedi with sgetrune() and sputrune().
* Mark the following interfaces as OBSOLETE_IN_6:tjr2003-06-131-1/+4
| | | | | | | fgetrune(), fputrune(), fungetrune(), mbrune(), mbrrune(), mbmb(), setinvalidrune(), UTF2 encoding method. These have been marked as being deprecated in their manual pages since 5.0, and their use causes a linker warning.
* Fix the style of the SCM ID's.obrien2002-03-221-2/+2
| | | | I believe have made all of libc .c's as consistent as possible.
* Remove __P() usage.obrien2002-03-211-2/+2
|
* Remove _THREAD_SAFE and make libc thread-safe by default bydeischen2001-01-241-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | adding (weak definitions to) stubs for some of the pthread functions. If the threads library is linked in, the real pthread functions will pulled in. Use the following convention for system calls wrapped by the threads library: __sys_foo - actual system call _foo - weak definition to __sys_foo foo - weak definition to __sys_foo Change all libc uses of system calls wrapped by the threads library from foo to _foo. In order to define the prototypes for _foo(), we introduce namespace.h and un-namespace.h (suggested by bde). All files that need to reference these system calls, should include namespace.h before any standard includes, then include un-namespace.h after the standard includes and before any local includes. <db.h> is an exception and shouldn't be included in between namespace.h and un-namespace.h namespace.h will define foo to _foo, and un-namespace.h will undefine foo. Try to eliminate some of the recursive calls to MT-safe functions in libc/stdio in preparation for adding a mutex to FILE. We have recursive mutexes, but would like to avoid using them if possible. Remove uneeded includes of <errno.h> from a few files. Add $FreeBSD$ to a few files in order to pass commitprep. Approved by: -arch
* Megre XPG4 code into libcache2000-06-031-2/+2
|
* More egcs warning fixes:imp1999-04-251-1/+1
| | | | | | | | | | o use braces to avoid potentially ambiguous else o don't default to type int (and also remove a useless register modifier). o Use parens around assignment values used as truth values. o Remove unused function. Reviewed by: obrien and chuckr
* Migrate from XPG4 to XPG3 (libxpg4 will be added soon)ache1995-10-231-0/+2
| | | | | Remove big part of my startup_setlocale hack. Add missing manpage links.
* BSD 4.4 Lite Lib Sourcesrgrimes1994-05-271-0/+148
OpenPOWER on IntegriCloud