VM: simplify slab allocator
[minix.git] / lib / libc / compat / gen / compat___fts13.c
blobf39a6249953cf76d53fed6b56290c8f251185be4
1 /* $NetBSD: compat___fts13.c,v 1.6 2009/10/19 17:52:01 christos Exp $ */
3 #include "namespace.h"
4 #include <sys/cdefs.h>
5 #include <dirent.h>
7 #define __LIBC12_SOURCE__
9 __warn_references(__fts_children13,
10 "warning: reference to compatibility __fts_children13();"
11 " include <fts.h> for correct reference")
12 __warn_references(__fts_close13,
13 "warning: reference to compatibility __fts_close13();"
14 " include <fts.h> for correct reference")
15 __warn_references(__fts_open13,
16 "warning: reference to compatibility __fts_open13();"
17 " include <fts.h> for correct reference")
18 __warn_references(__fts_read13,
19 "warning: reference to compatibility __fts_read13();"
20 " include <fts.h> for correct reference")
21 __warn_references(__fts_set13,
22 "warning: reference to compatibility __fts_set13();"
23 " include <fts.h> for correct reference")
25 #include <sys/stat.h>
26 #include <compat/sys/time.h>
27 #include <compat/sys/stat.h>
29 #define __fts_stat_t struct stat13
30 #define __fts_ino_t u_int32_t
31 #define __fts_length_t u_short
32 #define __fts_number_t long
33 #define __fts_dev_t uint32_t
34 #define __fts_level_t short
36 #define stat __stat13
37 #define lstat __lstat13
38 #define fstat __fstat13
40 #undef fts_children
41 #define fts_children __fts_children13
42 #undef fts_close
43 #define fts_close __fts_close13
44 #undef fts_open
45 #define fts_open __fts_open13
46 #undef fts_read
47 #define fts_read __fts_read13
48 #undef fts_set
49 #define fts_set __fts_set13
51 #include <fts.h>
52 #include <compat/include/fts.h>
54 #define __FTS_COMPAT_TAILINGSLASH
55 #define __FTS_COMPAT_LENGTH
56 #define __FTS_COMPAT_LEVEL
58 #include "gen/fts.c"