add opendir alias
[minix.git] / lib / libc / compat / gen / compat__readdir_unlocked30.c
blobdf6fe22ee701460c8be11f05f68c31f27174b768
1 /* $NetBSD: compat__readdir_unlocked30.c,v 1.1 2008/05/04 18:53:26 tonnerre Exp $ */
3 #define __LIBC12_SOURCE__
4 #include "namespace.h"
5 #include <dirent.h>
6 #include <compat/include/dirent.h>
8 #ifdef __warn_references
9 __warn_references(___readdir_unlocked30,
10 "warning: reference to compatibility _readdir_unlocked(); include <dirent.h> for correct reference")
11 #endif
13 /**
14 * Compat version of _readdir_unlocked which always skips directories
16 struct dirent *
17 ___readdir_unlocked30(DIR *dirp)
19 return ___readdir_unlocked50(dirp, 1);