xref: /netbsd-src/lib/libc/compat/gen/compat_opendir.c (revision 02cdd248ec8b17634bab40aa4f2e161a756d7fce)
1*02cdd248Schristos /*	$NetBSD: compat_opendir.c,v 1.2 2019/09/22 22:59:38 christos Exp $	*/
25b84b398Schristos 
35b84b398Schristos #include "namespace.h"
45b84b398Schristos #include <sys/stat.h>
55b84b398Schristos #include <signal.h>
65b84b398Schristos 
75b84b398Schristos #define __LIBC12_SOURCE__
85b84b398Schristos #include <dirent.h>
95b84b398Schristos #include <compat/include/dirent.h>
10*02cdd248Schristos #include <compat/sys/statvfs.h>
115b84b398Schristos 
125b84b398Schristos #ifdef __weak_alias
135b84b398Schristos __weak_alias(opendir,_opendir)
145b84b398Schristos #endif
155b84b398Schristos 
165b84b398Schristos #ifdef __warn_references
175b84b398Schristos __warn_references(opendir,
185b84b398Schristos     "warning: reference to compatibility opendir(); include <dirent.h> for correct reference")
195b84b398Schristos __warn_references(__opendir2,
205b84b398Schristos     "warning: reference to compatibility __opendir2(); include <dirent.h> for correct reference")
215b84b398Schristos #endif
225b84b398Schristos 
235b84b398Schristos #define dirent dirent12
24*02cdd248Schristos #define	fstatvfs1 __fstatvfs190
255b84b398Schristos 
265b84b398Schristos #include "gen/opendir.c"
27