Sync usage with man page.
[netbsd-mini2440.git] / lib / libc / compat / gen / compat_fts.c
blob77022c73df694fbec74bd783f78e0d21bff5e00c
1 /* $NetBSD$ */
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"