libutil: add O_NOCTTY back to old pty open code
[minix.git] / lib / libc / compat / gen / compat___fts30.c
blob03ec5cec9c396611f69321653d3a0ff76c6bfec1
1 /* $NetBSD: compat___fts30.c,v 1.3 2009/10/19 17:52:04 christos Exp $ */
3 #include "namespace.h"
4 #include <sys/cdefs.h>
5 #include <dirent.h>
7 #define __LIBC12_SOURCE__
9 __warn_references(__fts_children30,
10 "warning: reference to compatibility __fts_children30();"
11 " include <fts.h> for correct reference")
12 __warn_references(__fts_close30,
13 "warning: reference to compatibility __fts_close30();"
14 " include <fts.h> for correct reference")
15 __warn_references(__fts_open30,
16 "warning: reference to compatibility __fts_open30();"
17 " include <fts.h> for correct reference")
18 __warn_references(__fts_read30,
19 "warning: reference to compatibility __fts_read30();"
20 " include <fts.h> for correct reference")
21 __warn_references(__fts_set30,
22 "warning: reference to compatibility __fts_set30();"
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 stat30
30 #define __fts_length_t u_short
31 #define __fts_number_t long
32 #define __fts_dev_t uint32_t
33 #define __fts_level_t short
35 #define stat __stat30
36 #define lstat __lstat30
37 #define fstat __fstat30
39 #undef fts_children
40 #define fts_children __fts_children30
41 #undef fts_close
42 #define fts_close __fts_close30
43 #undef fts_open
44 #define fts_open __fts_open30
45 #undef fts_read
46 #define fts_read __fts_read30
47 #undef fts_set
48 #define fts_set __fts_set30
50 #include <fts.h>
51 #include <compat/include/fts.h>
53 #define __FTS_COMPAT_LENGTH
54 #define __FTS_COMPAT_LEVEL
56 #include "gen/fts.c"