newlib-cygwin/newlib/libc/time
Jeff Johnston f310e8d951 Always assign return value to passed pointer in time function.
If the passed t pointer is not a null pointer, always assign the return
value to the object it points to, regardless of whether the return value
is an error.

This is what the GNU C Library does, and this is also the expected
behavior according to the latest draft of the C programming language
standard (C11 ISO/IEC 9899:201x WG14 N1570, dated 2011-04-12):

Signed-off-by: Benoît Thébaudeau <benoit@wsystem.com>
2016-05-02 16:11:26 -04:00
..
Makefile.am Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
Makefile.in Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05: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 2003-01-21 Anita Kulkarni <anitak@kpit.com> 2003-01-21 19:37:04 +00:00
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 strftime: Add support for %s (seconds since epoch) 2015-10-27 09:41:40 +01:00
strptime.c * libc/time/clock.c (clock): Fix warnings about signed-unsigned 2014-09-04 08:27:03 +00: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