xref: /netbsd-src/lib/libc/compat/gen/compat_glob.c (revision fda5f877e5074e9afbf7381626cd3cf7f50a1165)
1*fda5f877Schristos /*	$NetBSD: compat_glob.c,v 1.4 2013/10/04 21:07:37 christos Exp $	*/
25b84b398Schristos 
35b84b398Schristos /*
45b84b398Schristos  * Written by Jason R. Thorpe <thorpej@NetBSD.org>, October 21, 1997.
55b84b398Schristos  * Public domain.
65b84b398Schristos  */
7461a86f9Schristos #include "namespace.h"
8461a86f9Schristos #include <pwd.h>
95b84b398Schristos #define __LIBC12_SOURCE__
105b84b398Schristos 
115b84b398Schristos #include <sys/stat.h>
12461a86f9Schristos #include <compat/sys/time.h>
135b84b398Schristos #include <compat/sys/stat.h>
145b84b398Schristos #include <dirent.h>
155b84b398Schristos #include <compat/include/dirent.h>
165b84b398Schristos #define __gl_stat_t struct stat12
175b84b398Schristos 
185b84b398Schristos #include <glob.h>
195b84b398Schristos #include <compat/include/glob.h>
205b84b398Schristos 
215b84b398Schristos #ifdef __weak_alias
225b84b398Schristos __weak_alias(glob,_glob)
235b84b398Schristos __weak_alias(globfree,_globfree)
245b84b398Schristos #endif /* __weak_alias */
255b84b398Schristos 
265b84b398Schristos __warn_references(glob,
275b84b398Schristos     "warning: reference to compatibility glob(); include <glob.h> for correct reference")
285b84b398Schristos __warn_references(globfree,
295b84b398Schristos     "warning: reference to compatibility globfree(); include <glob.h> for correct reference")
305b84b398Schristos 
31*fda5f877Schristos #define stat __compat_stat
32*fda5f877Schristos #define lstat __compat_lstat
33*fda5f877Schristos #define fstat __compat_fstat
34ca2d95d1Schristos 
355b84b398Schristos #include "gen/glob.c"
36