Home | History | Annotate | Line # | Download | only in gen
compat___fts32.c revision 1.2
      1  1.2  christos /*	$NetBSD: compat___fts32.c,v 1.2 2009/01/11 02:46:25 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.2  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.2  christos #undef fts_children
     27  1.2  christos #define fts_children __fts_children32
     28  1.2  christos #undef fts_close
     29  1.2  christos #define fts_close __fts_close32
     30  1.2  christos #undef fts_open
     31  1.2  christos #define fts_open  __fts_open32
     32  1.2  christos #undef fts_read
     33  1.2  christos #define fts_read __fts_read32
     34  1.2  christos #undef fts_set
     35  1.2  christos #define fts_set __fts_set32
     36  1.2  christos 
     37  1.2  christos #include <sys/time.h>
     38  1.2  christos #include <compat/sys/time.h>
     39  1.2  christos #include <sys/stat.h>
     40  1.2  christos #include <compat/sys/stat.h>
     41  1.2  christos 
     42  1.2  christos #include <fts.h>
     43  1.2  christos #include <compat/include/fts.h>
     44  1.2  christos 
     45  1.2  christos #define	__FTS_COMPAT_LENGTH
     46  1.2  christos 
     47  1.2  christos #define stat		__stat30
     48  1.2  christos #define lstat		__lstat30
     49  1.2  christos #define fstat		__fstat30
     50  1.2  christos 
     51  1.2  christos #include "gen/fts.c"
     52