diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-07-25 04:34:14 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:30:02 -0500 |
commit | ecc691041c0650973830c4c566b362b19967f80c (patch) | |
tree | f0c92f203eff17bb771ae9b37c74cd853bf52f1e /source4/lib | |
parent | 27ab60f5d406adee641d7a288822ba4c34eed416 (diff) | |
download | samba-ecc691041c0650973830c4c566b362b19967f80c.tar.gz samba-ecc691041c0650973830c4c566b362b19967f80c.tar.bz2 samba-ecc691041c0650973830c4c566b362b19967f80c.zip |
r8749: for completeness, add rewinddir() and dirfd()
(This used to be commit ce022e40908dabad41de276941d2ee7a5739aea4)
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/replace/repdir/repdir.c | 10 |
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; +} |