newlib-cygwin/newlib/libc/time
Corinna Vinschen d16a56306d Consolidate wctomb/mbtowc calls for POSIX-1.2008
- Remove charset parameter from low level __foo_wctomb/__foo_mbtowc calls.
- Instead, create array of function for ISO and Windows codepages to point
  to function which does not require to evaluate the charset string on
  each call.  Create matching helper functions.  I.e., __iso_wctomb,
  __iso_mbtowc, __cp_wctomb and __cp_mbtowc are functions returning the
  right function pointer now.
- Create __WCTOMB/__MBTOWC macros utilizing per-reent locale and replace
  calls to __wctomb/__mbtowc with calls to __WCTOMB/__MBTOWC.
- Drop global __wctomb/__mbtowc vars.
- Utilize aforementioned changes in Cygwin to get rid of charset in other,
  calling functions and simplify the code.
- In Cygwin restrict global cygheap locale info to the job performed
  by internal_setlocale.  Use UTF-8 instead of ASCII on the fly in
  internal conversion functions.
- In Cygwin dll_entry, make sure to initialize a TLS area with a NULL
  _REENT->_locale pointer.  Add comment to explain why.

Signed-off by: Corinna Vinschen <corinna@vinschen.de>
2016-08-15 10:56:57 +02:00
..
Makefile.am Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
Makefile.in Regenerate newlib Makefiles 2016-07-04 17:13:55 +01:00
asctime.c 2013-04-29 Sebastian Huber <sebastian.huber@embedded-brains.de> 2013-04-29 21:06:23 +00:00
asctime_r.c 2013-11-25 Sahil Patnayakuni <sahil.patnayakuni@gmail.com> 2013-11-25 13:46:23 +00:00
clock.c * libc/time/clock.c (clock): Fix warnings about signed-unsigned 2014-09-04 08:27:03 +00:00
ctime.c 2008-10-31 Jeff Johnston <jjohnstn@redhat.com> 2008-10-31 21:08:03 +00:00
ctime_r.c
difftime.c
gettzinfo.c 2005-02-25 Eric Blake <ebb9@byu.net> 2005-02-25 22:31:21 +00:00
gmtime.c 2013-04-29 Sebastian Huber <sebastian.huber@embedded-brains.de> 2013-04-29 21:06:23 +00:00
gmtime_r.c gmtime_r: Use faster algorithm by Howard Hinnant 2015-06-15 12:00:59 +02:00
lcltime.c 2013-04-29 Sebastian Huber <sebastian.huber@embedded-brains.de> 2013-04-29 21:06:23 +00:00
lcltime_r.c Avoid excessive locking and calling tzset in time functions. 2015-04-23 21:57:08 +02:00
local.h Add _tzset_unlocked and _tzset_unlocked_r 2015-04-23 21:57:08 +02:00
mktime.c Avoid excessive locking and calling tzset in time functions. 2015-04-23 21:57:08 +02:00
month_lengths.c 2014-09-15 Jeff Johnston <jjohnstn@redhat.com> 2014-09-15 16:05:37 +00:00
strftime.c POSIX-1.2008 per-thread locales, groundwork part 2 2016-08-15 10:56:56 +02:00
strptime.c Consolidate wctomb/mbtowc calls for POSIX-1.2008 2016-08-15 10:56:57 +02:00
time.c Always assign return value to passed pointer in time function. 2016-05-02 16:11:26 -04:00
time.tex * libc/time/strftime.c: Adapt for dual-purpose use so not only 2009-03-09 12:35:03 +00:00
tzcalc_limits.c 2014-09-12 Jeff Johnston <jjohnstn@redhat.com> 2014-09-12 21:41:46 +00:00
tzlock.c 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:21:08 +00:00
tzset.c Fix SYNOPSIS prototypes without marked up parameter names 2015-06-23 17:30:22 +01:00
tzset_r.c Add _tzset_unlocked and _tzset_unlocked_r 2015-04-23 21:57:08 +02:00
tzvars.c 2005-11-08 Tom Walsh <tom@openhardware.net> 2005-11-08 22:44:16 +00:00
wcsftime.c Consistently use an em-dash in math functions. 2015-11-02 16:43:22 -05:00