xref: /netbsd-src/lib/libc/compat/gen/compat_times.c (revision fda5f877e5074e9afbf7381626cd3cf7f50a1165)
1*fda5f877Schristos /*	$NetBSD: compat_times.c,v 1.4 2013/10/04 21:07:37 christos Exp $	*/
25b84b398Schristos 
35b84b398Schristos /*
45b84b398Schristos  * Ben Harris, 2002.
55b84b398Schristos  * This file is in the Public Domain.
65b84b398Schristos  */
75b84b398Schristos 
85b84b398Schristos #define __LIBC12_SOURCE__
95b84b398Schristos #include "namespace.h"
105b84b398Schristos #include <sys/cdefs.h>
115b84b398Schristos #include <time.h>
125b84b398Schristos #include <compat/include/time.h>
135b84b398Schristos #include <sys/times.h>
145b84b398Schristos #include <compat/sys/times.h>
15461a86f9Schristos #include <sys/resource.h>
16461a86f9Schristos #include <compat/sys/resource.h>
175b84b398Schristos 
185b84b398Schristos #ifdef __weak_alias
195b84b398Schristos __weak_alias(times,_times)
205b84b398Schristos #endif
215b84b398Schristos 
225b84b398Schristos __warn_references(times,
235b84b398Schristos     "warning: reference to compatibility times(); include <sys/times.h> for correct reference")
245b84b398Schristos 
25461a86f9Schristos #define __times_rusage struct rusage50
26461a86f9Schristos #define __times_timeval struct timeval50
275b84b398Schristos 
28*fda5f877Schristos #define getrusage __compat_getrusage
29*fda5f877Schristos #define gettimeofday __compat_gettimeofday
30ca2d95d1Schristos 
315b84b398Schristos #include "gen/times.c"
32