1 /* $NetBSD: compat_times.c,v 1.4 2013/10/04 21:07:37 christos Exp $ */
5 * This file is in the Public Domain.
8 #define __LIBC12_SOURCE__
10 #include <sys/cdefs.h>
12 #include <compat/include/time.h>
13 #include <sys/times.h>
14 #include <compat/sys/times.h>
15 #include <sys/resource.h>
16 #include <compat/sys/resource.h>
19 __weak_alias(times
,_times
)
22 __warn_references(times
,
23 "warning: reference to compatibility times(); include <sys/times.h> for correct reference")
25 #define __times_rusage struct rusage50
26 #define __times_timeval struct timeval50
28 #define getrusage __compat_getrusage
29 #define gettimeofday __compat_gettimeofday
31 #include "gen/times.c"