Sync usage with man page.
[netbsd-mini2440.git] / lib / libc / compat / gen / compat_opendir.c
blobfdb855824a18d500b3f201a8d5a38a7e03c59f06
1 /* $NetBSD: opendir.c,v 1.27 2005/08/19 02:04:54 christos Exp $ */
3 #include "namespace.h"
4 #include <sys/stat.h>
5 #include <signal.h>
7 #define __LIBC12_SOURCE__
8 #include <dirent.h>
9 #include <compat/include/dirent.h>
11 #ifdef __weak_alias
12 __weak_alias(opendir,_opendir)
13 #endif
15 #ifdef __warn_references
16 __warn_references(opendir,
17 "warning: reference to compatibility opendir(); include <dirent.h> for correct reference")
18 __warn_references(__opendir2,
19 "warning: reference to compatibility __opendir2(); include <dirent.h> for correct reference")
20 #endif
22 #define dirent dirent12
24 #include "gen/opendir.c"