Sync usage with man page.
[netbsd-mini2440.git] / lib / libc / compat / gen / compat___fts32.c
blob756d47564c0b699fbabd4122cae7b6d200cecdc7
1 /* $NetBSD$ */
3 #include "namespace.h"
4 #include <sys/cdefs.h>
5 #include <dirent.h>
7 #define __LIBC12_SOURCE__
8 __warn_references(__fts_children32,
9 "warning: reference to compatibility __fts_children32();"
10 " include <fts.h> for correct reference")
11 __warn_references(__fts_close32,
12 "warning: reference to compatibility __fts_close32();"
13 " include <fts.h> for correct reference")
14 __warn_references(__fts_open32,
15 "warning: reference to compatibility __fts_open32();"
16 " include <fts.h> for correct reference")
17 __warn_references(__fts_read32,
18 "warning: reference to compatibility __fts_read32();"
19 " include <fts.h> for correct reference")
20 __warn_references(__fts_set32,
21 "warning: reference to compatibility __fts_set32();"
22 " include <fts.h> for correct reference")
24 #define __fts_stat_t struct stat30
25 #define __fts_dev_t uint32_t
26 #define __fts_level_t short
28 #undef fts_children
29 #define fts_children __fts_children32
30 #undef fts_close
31 #define fts_close __fts_close32
32 #undef fts_open
33 #define fts_open __fts_open32
34 #undef fts_read
35 #define fts_read __fts_read32
36 #undef fts_set
37 #define fts_set __fts_set32
39 #include <sys/time.h>
40 #include <compat/sys/time.h>
41 #include <sys/stat.h>
42 #include <compat/sys/stat.h>
44 #include <fts.h>
45 #include <compat/include/fts.h>
47 #define __FTS_COMPAT_LEVEL
49 #define stat __stat30
50 #define lstat __lstat30
51 #define fstat __fstat30
53 #include "gen/fts.c"