Home | History | Annotate | Line # | Download | only in gen
compat_opendir.c revision 1.1.86.1
      1  1.1.86.1    martin /*	$NetBSD: compat_opendir.c,v 1.1.86.1 2020/04/13 08:03:09 martin Exp $	*/
      2       1.1  christos 
      3       1.1  christos #include "namespace.h"
      4       1.1  christos #include <sys/stat.h>
      5       1.1  christos #include <signal.h>
      6       1.1  christos 
      7       1.1  christos #define __LIBC12_SOURCE__
      8       1.1  christos #include <dirent.h>
      9       1.1  christos #include <compat/include/dirent.h>
     10  1.1.86.1    martin #include <compat/sys/statvfs.h>
     11       1.1  christos 
     12       1.1  christos #ifdef __weak_alias
     13       1.1  christos __weak_alias(opendir,_opendir)
     14       1.1  christos #endif
     15       1.1  christos 
     16       1.1  christos #ifdef __warn_references
     17       1.1  christos __warn_references(opendir,
     18       1.1  christos     "warning: reference to compatibility opendir(); include <dirent.h> for correct reference")
     19       1.1  christos __warn_references(__opendir2,
     20       1.1  christos     "warning: reference to compatibility __opendir2(); include <dirent.h> for correct reference")
     21       1.1  christos #endif
     22       1.1  christos 
     23       1.1  christos #define dirent dirent12
     24  1.1.86.1    martin #define	fstatvfs1 __fstatvfs190
     25       1.1  christos 
     26       1.1  christos #include "gen/opendir.c"
     27