mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-16 03:19:54 +08:00
d482870337
* libc/include/time.h (time): Add restrict keyword. * libc/include/wchar.h (wcsftime): Add restrict keyword. * libc/time/asctime_r.c (asctime_r): Same. * libc/time/gmtime_r.c (gmtime_r): Same. * libc/time/lcltime_r.c (lcltime_r): Same. * libc/time/strftime.c (strftime): Same. * libc/time/strptime.c (strptime): Same. * libc/sys/linux/linuxthreads/timer_create.c (timer_create): Same. * libc/sys/linux/linuxthreads/timer_settime.c (timer_settime): Same.
19 lines
388 B
C
19 lines
388 B
C
/*
|
|
* localtime_r.c
|
|
*
|
|
* Converts the calendar time pointed to by tim_p into a broken-down time
|
|
* expressed as local time. Returns a pointer to a structure containing the
|
|
* broken-down time.
|
|
*/
|
|
|
|
#include <time.h>
|
|
#include "local.h"
|
|
|
|
struct tm *
|
|
_DEFUN (localtime_r, (tim_p, res),
|
|
_CONST time_t *__restrict tim_p _AND
|
|
struct tm *__restrict res)
|
|
{
|
|
return _mktm_r (tim_p, res, 0);
|
|
}
|