From ecc691041c0650973830c4c566b362b19967f80c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 25 Jul 2005 04:34:14 +0000 Subject: r8749: for completeness, add rewinddir() and dirfd() (This used to be commit ce022e40908dabad41de276941d2ee7a5739aea4) --- source4/lib/replace/repdir/repdir.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source4/lib/replace/repdir/repdir.c') diff --git a/source4/lib/replace/repdir/repdir.c b/source4/lib/replace/repdir/repdir.c index 9c81355c68..a4317aa11c 100644 --- a/source4/lib/replace/repdir/repdir.c +++ b/source4/lib/replace/repdir/repdir.c @@ -125,6 +125,11 @@ void seekdir(DIR *dir, long ofs) } } +void rewinddir(DIR *dir) +{ + seekdir(dir, 0); +} + int closedir(DIR *dir) { struct dir_buf *d = (struct dir_buf *)dir; @@ -136,3 +141,8 @@ int closedir(DIR *dir) return 0; } +int dirfd(DIR *dir) +{ + struct dir_buf *d = (struct dir_buf *)dir; + return d->fd; +} -- cgit