summaryrefslogtreecommitdiff
path: root/src/dirent/telldir.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-08-15 15:53:15 -0400
committerJakob Kaivo <jkk@ung.org>2020-08-15 15:53:15 -0400
commit1cf3773450f3f03c5fdfb79bf4eb06002567dcbd (patch)
treeab473c16d285258aca12e18db2d0dbb42e026859 /src/dirent/telldir.c
parentcdc0335d77e7b07349f43a63442cdad09bcc15f9 (diff)
implement
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);
}
/*