1 1.3 christos /* $NetBSD: compat___fts32.c,v 1.3 2009/10/19 17:52:05 christos Exp $ */ 2 1.2 christos 3 1.2 christos #include "namespace.h" 4 1.2 christos #include <sys/cdefs.h> 5 1.2 christos #include <dirent.h> 6 1.2 christos 7 1.3 christos #define __LIBC12_SOURCE__ 8 1.2 christos __warn_references(__fts_children32, 9 1.2 christos "warning: reference to compatibility __fts_children32();" 10 1.2 christos " include <fts.h> for correct reference") 11 1.2 christos __warn_references(__fts_close32, 12 1.2 christos "warning: reference to compatibility __fts_close32();" 13 1.2 christos " include <fts.h> for correct reference") 14 1.2 christos __warn_references(__fts_open32, 15 1.2 christos "warning: reference to compatibility __fts_open32();" 16 1.2 christos " include <fts.h> for correct reference") 17 1.2 christos __warn_references(__fts_read32, 18 1.2 christos "warning: reference to compatibility __fts_read32();" 19 1.2 christos " include <fts.h> for correct reference") 20 1.2 christos __warn_references(__fts_set32, 21 1.2 christos "warning: reference to compatibility __fts_set32();" 22 1.2 christos " include <fts.h> for correct reference") 23 1.2 christos 24 1.2 christos #define __fts_stat_t struct stat30 25 1.2 christos #define __fts_dev_t uint32_t 26 1.3 christos #define __fts_level_t short 27 1.3 christos 28 1.3 christos #undef fts_children 29 1.3 christos #define fts_children __fts_children32 30 1.3 christos #undef fts_close 31 1.3 christos #define fts_close __fts_close32 32 1.3 christos #undef fts_open 33 1.3 christos #define fts_open __fts_open32 34 1.3 christos #undef fts_read 35 1.3 christos #define fts_read __fts_read32 36 1.3 christos #undef fts_set 37 1.3 christos #define fts_set __fts_set32 38 1.2 christos 39 1.2 christos #include <sys/time.h> 40 1.2 christos #include <compat/sys/time.h> 41 1.2 christos #include <sys/stat.h> 42 1.2 christos #include <compat/sys/stat.h> 43 1.2 christos 44 1.2 christos #include <fts.h> 45 1.2 christos #include <compat/include/fts.h> 46 1.2 christos 47 1.3 christos #define __FTS_COMPAT_LEVEL 48 1.2 christos 49 1.3 christos #define stat __stat30 50 1.3 christos #define lstat __lstat30 51 1.3 christos #define fstat __fstat30 52 1.2 christos 53 1.2 christos #include "gen/fts.c" 54