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