libutil: add O_NOCTTY back to old pty open code
[minix.git] / lib / libc / compat / gen / compat_fts.c
blobb3bfdceb701d8eea84b91a0aa4a66bdff6b1d659
1 /* $NetBSD: compat_fts.c,v 1.4 2009/10/19 17:52:05 christos Exp $ */
3 /*
4 * Written by Jason R. Thorpe <thorpej@NetBSD.org>, October 21, 1997.
5 * Public domain.
6 */
8 #include "namespace.h"
9 #include <sys/cdefs.h>
10 #include <dirent.h>
12 #define __LIBC12_SOURCE__
13 #include <sys/stat.h>
14 #include <compat/sys/time.h>
15 #include <compat/sys/stat.h>
17 #define __fts_stat_t struct stat12
18 #define __fts_nlink_t u_int16_t
19 #define __fts_ino_t u_int32_t
20 #define __fts_length_t unsigned short
21 #define __fts_number_t long
22 #define __fts_dev_t uint32_t
23 #define __fts_level_t short
25 #include <fts.h>
26 #include <compat/include/fts.h>
28 #ifdef __weak_alias
29 __weak_alias(fts_children,_fts_children)
30 __weak_alias(fts_close,_fts_close)
31 __weak_alias(fts_open,_fts_open)
32 __weak_alias(fts_read,_fts_read)
33 __weak_alias(fts_set,_fts_set)
34 #endif /* __weak_alias */
36 __warn_references(fts_children,
37 "warning: reference to compatibility fts_children();"
38 " include <fts.h> for correct reference")
39 __warn_references(fts_close,
40 "warning: reference to compatibility fts_close();"
41 " include <fts.h> for correct reference")
42 __warn_references(fts_open,
43 "warning: reference to compatibility fts_open();"
44 " include <fts.h> for correct reference")
45 __warn_references(fts_read,
46 "warning: reference to compatibility fts_read();"
47 " include <fts.h> for correct reference")
48 __warn_references(fts_set,
49 "warning: reference to compatibility fts_set();"
50 " include <fts.h> for correct reference")
52 #define __FTS_COMPAT_TAILINGSLASH
53 #define __FTS_COMPAT_LENGTH
54 #define __FTS_COMPAT_LEVEL
56 #include "gen/fts.c"