Home | History | Annotate | Line # | Download | only in gen
dirent_private.h revision 1.4
      1  1.3      yamt /*	$NetBSD: dirent_private.h,v 1.4 2010/09/26 02:26:59 yamt Exp $	*/
      2  1.1  christos 
      3  1.1  christos /*
      4  1.1  christos  * One struct _dirpos is malloced to describe the current directory
      5  1.1  christos  * position each time telldir is called. It records the current magic
      6  1.3      yamt  * cookie returned by getdents and the offset within the buffer associated
      7  1.3      yamt  * with that return value.
      8  1.1  christos  */
      9  1.1  christos struct dirpos {
     10  1.1  christos 	struct dirpos *dp_next;	/* next structure in list */
     11  1.3      yamt 	off_t	dp_seek;	/* magic cookie returned by getdents */
     12  1.1  christos 	long	dp_loc;		/* offset of entry in buffer */
     13  1.1  christos };
     14  1.1  christos 
     15  1.1  christos struct _dirdesc;
     16  1.1  christos void _seekdir_unlocked(struct _dirdesc *, long);
     17  1.1  christos long _telldir_unlocked(struct _dirdesc *);
     18  1.4      yamt int _initdir(DIR *, int, const char *);
     19  1.4      yamt void _finidir(DIR *);
     20  1.1  christos #ifndef __LIBC12_SOURCE__
     21  1.1  christos struct dirent;
     22  1.2  tonnerre struct dirent *_readdir_unlocked(struct _dirdesc *, int)
     23  1.2  tonnerre     __RENAME(___readdir_unlocked50);
     24  1.1  christos #endif
     25