1 /* $NetBSD: compat__readdir_unlocked30.c,v 1.1 2008/05/04 18:53:26 tonnerre Exp $ */ 2 3 #define __LIBC12_SOURCE__ 4 #include "namespace.h" 5 #include <dirent.h> 6 #include <compat/include/dirent.h> 7 8 #ifdef __warn_references 9 __warn_references(___readdir_unlocked30, 10 "warning: reference to compatibility _readdir_unlocked(); include <dirent.h> for correct reference") 11 #endif 12 13 /** 14 * Compat version of _readdir_unlocked which always skips directories 15 */ 16 struct dirent * 17 ___readdir_unlocked30(DIR *dirp) 18 { 19 return ___readdir_unlocked50(dirp, 1); 20 } 21