From 45428979ecbb7d5c9a2ca5dc110aee85e48d7de2 Mon Sep 17 00:00:00 2001 From: deischen Date: Mon, 11 Dec 2000 04:00:36 +0000 Subject: Move telldir position recording type definitions and prototypes to "telldir.h" in order to prevent namespace pollution in (which was including ). Add $FreeBSD$ to rewinddir.c and seekdir.c. --- include/dirent.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/dirent.h b/include/dirent.h index d24c146..2028d7b 100644 --- a/include/dirent.h +++ b/include/dirent.h @@ -42,7 +42,6 @@ * the getdirentries(2) system call. */ #include -#include #ifdef _POSIX_SOURCE typedef void * DIR; @@ -53,7 +52,7 @@ typedef void * DIR; /* definitions for library routines operating on directories. */ #define DIRBLKSIZ 1024 -struct _ddloc; +struct _telldir; /* see telldir.h */ /* structure describing an open directory. */ typedef struct _dirdesc { @@ -65,8 +64,7 @@ typedef struct _dirdesc { long dd_seek; /* magic cookie returned by getdirentries */ long dd_rewind; /* magic cookie for rewinding */ int dd_flags; /* flags for readdir */ - long dd_loccnt; /* Index of entry for sequential readdir's */ - LIST_HEAD(, _ddloc) dd_locq; /* telldir position recording */ + struct _telldir *dd_td; /* telldir position recording */ } DIR; #define dirfd(dirp) ((dirp)->dd_fd) -- cgit v1.1