diff options
author | deischen <deischen@FreeBSD.org> | 2000-12-11 04:00:36 +0000 |
---|---|---|
committer | deischen <deischen@FreeBSD.org> | 2000-12-11 04:00:36 +0000 |
commit | 45428979ecbb7d5c9a2ca5dc110aee85e48d7de2 (patch) | |
tree | 4ff93d9c2aa5d2573156e1b352a4574235595006 /lib/libc/gen/rewinddir.c | |
parent | db0edd3c391b9475070b42d03b53f9a058882b13 (diff) | |
download | FreeBSD-src-45428979ecbb7d5c9a2ca5dc110aee85e48d7de2.zip FreeBSD-src-45428979ecbb7d5c9a2ca5dc110aee85e48d7de2.tar.gz |
Move telldir position recording type definitions and prototypes
to "telldir.h" in order to prevent namespace pollution in
<dirent.h> (which was including <sys/queue.h>).
Add $FreeBSD$ to rewinddir.c and seekdir.c.
Diffstat (limited to 'lib/libc/gen/rewinddir.c')
-rw-r--r-- | lib/libc/gen/rewinddir.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/gen/rewinddir.c b/lib/libc/gen/rewinddir.c index 2076ddd..7e021b7 100644 --- a/lib/libc/gen/rewinddir.c +++ b/lib/libc/gen/rewinddir.c @@ -29,6 +29,8 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. + * + * $FreeBSD$ */ #if defined(LIBC_SCCS) && !defined(lint) @@ -38,13 +40,12 @@ static char sccsid[] = "@(#)rewinddir.c 8.1 (Berkeley) 6/8/93"; #include <sys/types.h> #include <dirent.h> -extern void _seekdir __P(( DIR *, long )); +#include "telldir.h" void rewinddir(dirp) DIR *dirp; { - _seekdir(dirp, dirp->dd_rewind); dirp->dd_rewind = telldir(dirp); } |