Home | History | Annotate | Line # | Download | only in time
      1  1.1  christos /*	$NetBSD: compat_asctime.c,v 1.1 2023/09/16 18:40:26 christos Exp $	*/
      2  1.1  christos 
      3  1.1  christos /*
      4  1.1  christos  * Written by Jason R. Thorpe <thorpej (at) NetBSD.org>, October 21, 1997.
      5  1.1  christos  * Public domain.
      6  1.1  christos  */
      7  1.1  christos 
      8  1.1  christos #include "namespace.h"
      9  1.1  christos #include <sys/cdefs.h>
     10  1.1  christos 
     11  1.1  christos #define __LIBC12_SOURCE__
     12  1.1  christos #include <time.h>
     13  1.1  christos #include <sys/time.h>
     14  1.1  christos #include <compat/include/time.h>
     15  1.1  christos #include <compat/sys/time.h>
     16  1.1  christos 
     17  1.1  christos #ifdef __weak_alias
     18  1.1  christos __weak_alias(ctime_r,_ctime_r)
     19  1.1  christos __weak_alias(ctime_rz,_ctime_rz)
     20  1.1  christos #endif
     21  1.1  christos 
     22  1.1  christos __warn_references(ctime_r,
     23  1.1  christos     "warning: reference to compatibility ctime_r();"
     24  1.1  christos     " include <time.h> for correct reference")
     25  1.1  christos __warn_references(ctime_rz,
     26  1.1  christos     "warning: reference to compatibility ctime_rz();"
     27  1.1  christos     " include <time.h> for correct reference")
     28  1.1  christos 
     29  1.1  christos #define timeval timeval50
     30  1.1  christos #define timespec timespec50
     31  1.1  christos #define	time_t	int32_t
     32  1.1  christos 
     33  1.1  christos #include "time/asctime.c"
     34