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