xref: /netbsd-src/lib/libc/compat/gen/compat_times.c (revision b1c86f5f087524e68db12794ee9c3e3da1ab17a0)
1 /*	$NetBSD: compat_times.c,v 1.2 2009/01/11 02:46:25 christos Exp $	*/
2 
3 /*
4  * Ben Harris, 2002.
5  * This file is in the Public Domain.
6  */
7 
8 #define __LIBC12_SOURCE__
9 #include "namespace.h"
10 #include <sys/cdefs.h>
11 #include <time.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>
17 
18 #ifdef __weak_alias
19 __weak_alias(times,_times)
20 #endif
21 
22 __warn_references(times,
23     "warning: reference to compatibility times(); include <sys/times.h> for correct reference")
24 
25 #define __times_rusage struct rusage50
26 #define __times_timeval struct timeval50
27 
28 #include "gen/times.c"
29