This patch imports the unmodified current version of NetBSD libc. The NetBSD includes are in /nbsd_include, while the libc code itself is split between lib/nbsd_libc and common/lib/libc.
20 lines
546 B
C
20 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);
|
|
}
|