1/* $NetBSD: compat_readdir.c,v 1.1 2005/09/13 01:44:09 christos 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 */ 16struct dirent * 17___readdir_unlocked30(DIR *dirp) 18{ 19 return ___readdir_unlocked50(dirp, 1); 20} 21