summaryrefslogtreecommitdiffstats
path: root/newlib/libc/time/time.c
Commit message (Collapse)AuthorAgeFilesLines
* Always assign return value to passed pointer in time function.Jeff Johnston2016-05-021-7/+6
| | | | | | | | | | | | 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>
* 2007-07-06 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2007-07-061-1/+1
| | | | | | | | | | | | | * libc/include/sys/time.h (gettimeofday): Change to proper prototype where second parameter is void *. * libc/reent/gettimeofdayr.c (_gettimeofday_r): Change prototype accordingly. * libc/include/reent.h: Fix prototype for _gettimeofday_r. * libc/sys/arm/syscalls.c: Fix gettimeofday function signature. * libc/sys/rdos/gettod.c: Ditto. * libc/sys/sh/syscalls.c: Ditto. * libc/time/time.c (time): Change call to _gettimeofday_r to pass NULL as 2nd argument.
* 2006-04-07 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2006-04-071-6/+0
| | | | | * libc/time/time.c (time): Do not check for HAVE_GETTIMEOFDAY anymore. Assume there is a gettimeofday syscall.
* import newlib-2000-02-17 snapshotChristopher Faylor2000-02-171-0/+59