summaryrefslogtreecommitdiff
path: root/src/dirent/telldir.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dirent/telldir.c')
-rw-r--r--src/dirent/telldir.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dirent/telldir.c b/src/dirent/telldir.c
index 4e51810d..0aa8a72c 100644
--- a/src/dirent/telldir.c
+++ b/src/dirent/telldir.c
@@ -1,8 +1,11 @@
+#include <sys/types.h>
#include <dirent.h>
+#include <unistd.h>
+#include "_dirent.h"
long telldir(DIR * dirp)
{
- return 0;
+ return lseek(dirp->fd, 0, SEEK_CUR);
}
/*