netbsd/lib/libc/compat/gen/compat__readdir_unlocked30.c
2013-04-06 16:48:33 +02:00

21 lines
546 B
C

/* $NetBSD: compat__readdir_unlocked30.c,v 1.1 2008/05/04 18:53:26 tonnerre Exp $ */
#define __LIBC12_SOURCE__
#include "namespace.h"
#include <dirent.h>
#include <compat/include/dirent.h>
#ifdef __warn_references
__warn_references(___readdir_unlocked30,
"warning: reference to compatibility _readdir_unlocked(); include <dirent.h> for correct reference")
#endif
/**
* Compat version of _readdir_unlocked which always skips directories
*/
struct dirent *
___readdir_unlocked30(DIR *dirp)
{
return ___readdir_unlocked50(dirp, 1);
}