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