newlib-cygwin/newlib/libc/include/sys
Corinna Vinschen be7f7a7503 * libc/time/strftime.c: Add support for era and alt_digits data from
LC_TIME locale category.  Conditionalize using _WANT_C99_TIME_FORMATS
	flag.
	(STRTOUL): Define differently for building strftime or wcsftime.
	(STRCPY): Ditto.
	(STRCHR): Ditto.
	(STRLEN): Ditto.
	(CHECK_LENGTH): Define to simplify code.
	(era_info_t): New type to store era info.
	(get_era_info): New function to fetch era info matching incoming
	struct tm.
	(free_era_info): New function to free era info.
	(alt_digits_t): New type to store alternative digits.
	(get_alt_digits): New function to convert alt_digits string into
	alt_digits_t structure.
	(free_alt_digits): New function to free alt_digits info.
	(conv_to_alt_digits): New function to convert unsigned value into
	alternative digits.
	(strftime): Conditionalize on _WANT_C99_TIME_FORMATS.  If
	_WANT_C99_TIME_FORMATS is defined, define as just a wrapper function
	providing era_info and alt_digits pointers and call ...
	(__strftime): Rename from strftime and make static if
	_WANT_C99_TIME_FORMATS is defined.  Add parameters for era_info and
	alt_digits pointers.  Handle conversion modifiers according to
	POSIX-1.2008.  Redefine %F and %Y according to POSIX.  Add default case
	to allow to bail out on invalid conversion specifiers.
	* libc/include/sys/config.h: Move Cygwin build flags to Cygwin's
	config.h.

	* libc/include/stdio.h: Remove __CYGWIN_USE_BIG_TYPES__ condition.
2010-02-26 09:41:44 +00:00
..
_default_fcntl.h * libc/include/sys/_default_fcntl.h (O_CLOEXEC): Define as _FNOINHERIT. 2010-01-14 18:49:13 +00:00
_types.h 2007-09-18 Patrick Mansfield <patmans@us.ibm.com> 2007-09-18 20:05:17 +00:00
cdefs.h * Makefile.am (LIB_OBJECTLISTS): Add 2002-06-20 19:51:40 +00:00
config.h * libc/time/strftime.c: Add support for era and alt_digits data from 2010-02-26 09:41:44 +00:00
custom_file.h 2007-02-01 Joel Schopp <jschopp@austin.ibm.com> 2007-02-01 16:33:05 +00:00
dirent.h 2005-10-04 James E Wilson <wilson@specifix.com> 2005-10-04 20:47:39 +00:00
errno.h 2009-12-16 Jeff Johnston <jjohnstn@redhat.com> 2009-12-16 19:33:10 +00:00
fcntl.h 2007-11-15 Jeff Johnston <jjohnstn@redhat.com> 2007-12-19 18:49:17 +00:00
features.h 2009-07-06 Joel Sherrill <joel.sherrill@oarcorp.com> 2009-07-06 18:59:04 +00:00
file.h import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
iconvnls.h 2004-09-13 Artem B. Bityuckiy <dedekind@oktetlabs.ru> 2004-09-13 17:10:20 +00:00
lock.h 2008-12-11 Craig Howland <howland@LGSInnovations.com> 2008-12-11 17:27:56 +00:00
param.h 2004-05-07 Jeff Johnston <jjohnstn@redhat.com> 2004-05-07 20:29:24 +00:00
queue.h * Makefile.am (LIB_OBJECTLISTS): Add 2002-06-20 19:51:40 +00:00
reent.h 2009-12-17 Jerker Back <jerker.back@gmail.com> 2009-12-17 19:43:43 +00:00
resource.h import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
sched.h 2000-12-11 Joel Sherrill <joel@OARcorp.com> 2000-12-12 01:24:09 +00:00
signal.h 2009-10-13 Yaakov Selkowitz <yselkowitz@users.sourceforge.net> 2009-10-13 17:31:49 +00:00
stat.h 2009-12-17 Ralf Corsepius <ralf.corsepius@rtems.org> 2009-12-17 19:22:23 +00:00
stdio.h * libc/include/sys/stdio.h (_flockfile, _funlockfile): Fix typos. 2009-01-08 00:01:33 +00:00
string.h 2005-01-24 Jeff Johnston <jjohnstn@redhat.com> 2005-01-24 18:46:09 +00:00
syslimits.h * libc/include/langinfo.h: New file. 2002-08-23 01:56:05 +00:00
time.h 2009-10-09 Dave Korn <dave.korn@artimi.com> 2009-10-09 18:43:12 +00:00
timeb.h import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
times.h 2000-12-04 Joel Sherrill <joel@OARcorp.com> 2000-12-04 18:47:07 +00:00
types.h 2010-02-23 Jeff Johnston <jjohnstn@redhat.com> 2010-02-23 23:13:20 +00:00
unistd.h * libc/include/sys/_default_fcntl.h (O_CLOEXEC): Define as _FNOINHERIT. 2010-01-14 18:49:13 +00:00
utime.h import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00
wait.h import newlib-2000-02-17 snapshot 2000-02-17 19:39:52 +00:00