summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/misc/dirent.c8
-rw-r--r--test/misc/dirent64.c1
2 files changed, 1 insertions, 8 deletions
diff --git a/test/misc/dirent.c b/test/misc/dirent.c
index c8db2c83d..c348c0db3 100644
--- a/test/misc/dirent.c
+++ b/test/misc/dirent.c
@@ -22,7 +22,6 @@ int main(int argc, char *argv[])
{
DIR *dirh;
struct dirent *de;
- struct dirent64 *de64;
const char *mydir = (argc == 1 ? "/" : argv[1]);
if ((dirh = opendir(mydir)) == NULL) {
@@ -34,14 +33,7 @@ int main(int argc, char *argv[])
while ((de = readdir(dirh)) != NULL)
printf("\tdir entry %s: %s\n", types[de->d_type], de->d_name);
- rewinddir(dirh);
-
- printf("readdir64() says:\n");
- while ((de64 = readdir64(dirh)) != NULL)
- printf("\tdir entry %s: %s\n", types[de64->d_type], de64->d_name);
-
closedir(dirh);
-
return 0;
}
diff --git a/test/misc/dirent64.c b/test/misc/dirent64.c
new file mode 100644
index 000000000..26455ab68
--- /dev/null
+++ b/test/misc/dirent64.c
@@ -0,0 +1 @@
+#include "dirent.c"