xref: /minix/lib/libc/compat/gen/compat_glob.c (revision ebfedea0)
1 /*	$NetBSD: compat_glob.c,v 1.4 2013/10/04 21:07:37 christos Exp $	*/
2 
3 /*
4  * Written by Jason R. Thorpe <thorpej@NetBSD.org>, October 21, 1997.
5  * Public domain.
6  */
7 #include "namespace.h"
8 #include <pwd.h>
9 #define __LIBC12_SOURCE__
10 
11 #include <sys/stat.h>
12 #include <compat/sys/time.h>
13 #include <compat/sys/stat.h>
14 #include <dirent.h>
15 #include <compat/include/dirent.h>
16 #define __gl_stat_t struct stat12
17 
18 #include <glob.h>
19 #include <compat/include/glob.h>
20 
21 #ifdef __weak_alias
22 __weak_alias(glob,_glob)
23 __weak_alias(globfree,_globfree)
24 #endif /* __weak_alias */
25 
26 __warn_references(glob,
27     "warning: reference to compatibility glob(); include <glob.h> for correct reference")
28 __warn_references(globfree,
29     "warning: reference to compatibility globfree(); include <glob.h> for correct reference")
30 
31 #define stat __compat_stat
32 #define lstat __compat_lstat
33 #define fstat __compat_fstat
34 
35 #include "gen/glob.c"
36