cxgbe/t4_tom: Read the chip's DDP page sizes and save them in a
[freebsd-src.git] / contrib / file / src / gmtime_r.c
blob469ec650a5fe7f4e81d5c0be7176a7da24c41586
1 /* $File: gmtime_r.c,v 1.2 2015/07/11 14:41:37 christos Exp $ */
3 #include "file.h"
4 #ifndef lint
5 FILE_RCSID("@(#)$File: gmtime_r.c,v 1.2 2015/07/11 14:41:37 christos Exp $")
6 #endif /* lint */
7 #include <time.h>
8 #include <string.h>
10 /* asctime_r is not thread-safe anyway */
11 struct tm *
12 gmtime_r(const time_t *t, struct tm *tm)
14 struct tm *tmp = gmtime(t);
15 if (tmp == NULL)
16 return NULL;
17 memcpy(tm, tmp, sizeof(*tm));
18 return tmp;