1 /* $NetBSD: compat___fts31.c,v 1.2 2009/10/19 17:52:05 christos Exp $ */
7 #define __LIBC12_SOURCE__
9 __warn_references(__fts_children31
,
10 "warning: reference to compatibility __fts_children31();"
11 " include <fts.h> for correct reference")
12 __warn_references(__fts_close31
,
13 "warning: reference to compatibility __fts_close31();"
14 " include <fts.h> for correct reference")
15 __warn_references(__fts_open31
,
16 "warning: reference to compatibility __fts_open31();"
17 " include <fts.h> for correct reference")
18 __warn_references(__fts_read31
,
19 "warning: reference to compatibility __fts_read31();"
20 " include <fts.h> for correct reference")
21 __warn_references(__fts_set31
,
22 "warning: reference to compatibility __fts_set31();"
23 " include <fts.h> for correct reference")
26 #include <compat/sys/time.h>
27 #include <compat/sys/stat.h>
29 #define __fts_stat_t struct stat30
30 #define __fts_number_t long
31 #define __fts_dev_t uint32_t
32 #define __fts_level_t short
35 #define lstat __lstat30
36 #define fstat __fstat30
39 #define fts_children __fts_children31
41 #define fts_close __fts_close31
43 #define fts_open __fts_open31
45 #define fts_read __fts_read31
47 #define fts_set __fts_set31
50 #include <compat/include/fts.h>
52 #define __FTS_COMPAT_LEVEL