summaryrefslogtreecommitdiff
path: root/source4/lib/replace
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/replace')
-rw-r--r--source4/lib/replace/repdir/repdir.c10
1 files changed, 10 insertions, 0 deletions
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;
+}