1/*	$NetBSD$	*/
2
3/*
4 * One struct _dirpos is malloced to describe the current directory
5 * position each time telldir is called. It records the current magic
6 * cookie returned by getdents and the offset within the buffer associated
7 * with that return value.
8 */
9struct dirpos {
10	struct dirpos *dp_next;	/* next structure in list */
11	off_t	dp_seek;	/* magic cookie returned by getdents */
12	long	dp_loc;		/* offset of entry in buffer */
13};
14
15struct _dirdesc;
16void _seekdir_unlocked(struct _dirdesc *, long);
17long _telldir_unlocked(struct _dirdesc *);
18int _initdir(DIR *, int, const char *);
19void _finidir(DIR *);
20#ifndef __LIBC12_SOURCE__
21struct dirent;
22struct dirent *_readdir_unlocked(struct _dirdesc *, int)
23    __RENAME(___readdir_unlocked50);
24#endif
25