svn commit: samba r8749 - in branches/SAMBA_4_0/source/lib/replace/repdir: .

tridge at samba.org tridge at samba.org
Mon Jul 25 04:34:15 GMT 2005


Author: tridge
Date: 2005-07-25 04:34:14 +0000 (Mon, 25 Jul 2005)
New Revision: 8749

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8749

Log:
for completeness, add rewinddir() and dirfd()


Modified:
   branches/SAMBA_4_0/source/lib/replace/repdir/repdir.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/replace/repdir/repdir.c
===================================================================
--- branches/SAMBA_4_0/source/lib/replace/repdir/repdir.c	2005-07-25 04:15:57 UTC (rev 8748)
+++ branches/SAMBA_4_0/source/lib/replace/repdir/repdir.c	2005-07-25 04:34:14 UTC (rev 8749)
@@ -125,6 +125,11 @@
 	}
 }
 
+void rewinddir(DIR *dir)
+{
+	seekdir(dir, 0);
+}
+
 int closedir(DIR *dir)
 {
 	struct dir_buf *d = (struct dir_buf *)dir;
@@ -136,3 +141,8 @@
 	return 0;
 }
 
+int dirfd(DIR *dir)
+{
+	struct dir_buf *d = (struct dir_buf *)dir;
+	return d->fd;
+}



More information about the samba-cvs mailing list