Cross Reference: compat_time.c
xref: /src/lib/libc/compat/gen/compat_time.c
  • Home
  • History
  • AnnotateAnnotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /src/lib/libc/compat/gen/
compat_time.c revision 1.4
11.4Schristos/*	$NetBSD: compat_time.c,v 1.4 2013/10/04 21:07:37 christos Exp $	*/
21.2Schristos
31.2Schristos/*
41.2Schristos * Written by Jason R. Thorpe <thorpej@NetBSD.org>, October 21, 1997.
51.2Schristos * Public domain.
61.2Schristos */
71.2Schristos
81.2Schristos#include "namespace.h"
91.2Schristos#include <sys/cdefs.h>
101.2Schristos
111.2Schristos#define __LIBC12_SOURCE__
121.2Schristos#include <time.h>
131.2Schristos#include <sys/time.h>
141.2Schristos#include <compat/include/time.h>
151.2Schristos#include <compat/sys/time.h>
161.2Schristos
171.2Schristos#ifdef __weak_alias
181.2Schristos__weak_alias(time,_time)
191.2Schristos#endif
201.2Schristos
211.2Schristos__warn_references(time,
221.2Schristos    "warning: reference to compatibility time();"
231.2Schristos    " include <time.h> for correct reference")
241.2Schristos
251.2Schristos#define timeval timeval50
261.2Schristos#define time_t int32_t
271.3Schristos
281.4Schristos#define gettimeofday __compat_gettimeofday
291.3Schristos
301.2Schristos#include "gen/time.c"
31

Indexes created Mon Nov 10 17:20:41 GMT 2025