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