libc/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
asctime_r.c
clock.c * libc/time/clock.c (clock): Fix warnings about signed-unsigned 2014-09-04 08:27:03 +00:00
ctime.c
ctime_r.c
difftime.c
gettzinfo.c
gmtime.c
gmtime_r.c gmtime_r: Use faster algorithm by Howard Hinnant 2015-06-15 12:00:59 +02:00
lcltime.c
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
tzcalc_limits.c 2014-09-12 Jeff Johnston <jjohnstn@redhat.com> 2014-09-12 21:41:46 +00:00
tzlock.c
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
wcsftime.c Consistently use an em-dash in math functions. 2015-11-02 16:43:22 -05:00