about summary refs log tree commit diff
path: root/dirent/tst-seekdir.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-12-22 20:10:10 +0000
committerUlrich Drepper <drepper@redhat.com>2004-12-22 20:10:10 +0000
commita334319f6530564d22e775935d9c91663623a1b4 (patch)
treeb5877475619e4c938e98757d518bb1e9cbead751 /dirent/tst-seekdir.c
parent0ecb606cb6cf65de1d9fc8a919bceb4be476c602 (diff)
downloadglibc-a334319f6530564d22e775935d9c91663623a1b4.tar.gz
glibc-a334319f6530564d22e775935d9c91663623a1b4.tar.xz
glibc-a334319f6530564d22e775935d9c91663623a1b4.zip
(CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.
Diffstat (limited to 'dirent/tst-seekdir.c')
-rw-r--r--dirent/tst-seekdir.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/dirent/tst-seekdir.c b/dirent/tst-seekdir.c
index 43808fecb5..b833c30705 100644
--- a/dirent/tst-seekdir.c
+++ b/dirent/tst-seekdir.c
@@ -11,23 +11,8 @@ main (int argc, char *argv[])
   int i = 0;
   int result = 0;
   struct dirent *dp;
-  long int save0;
-  long int rewind;
 
   dirp = opendir (".");
-  if (dirp == NULL)
-    {
-      printf ("opendir failed: %m\n");
-      return 1;
-    }
-
-  save0 = telldir (dirp);
-  if (save0 == -1)
-    {
-      printf ("telldir failed: %m\n");
-      result = 1;
-    }
-
   for (dp = readdir (dirp); dp != NULL; dp = readdir (dirp))
     {
       /* save position 3 (after fourth entry) */
@@ -59,19 +44,6 @@ main (int argc, char *argv[])
   for (dp = readdir (dirp); dp != NULL; dp = readdir (dirp))
     printf ("%s\n", dp->d_name);
 
-  /* Check rewinddir */
-  rewinddir (dirp);
-  rewind = telldir (dirp);
-  if (rewind == -1)
-    {
-      printf ("telldir failed: %m\n");
-      result = 1;
-    }
-  else if (save0 != rewind)
-    {
-      printf ("rewinddir didn't reset directory stream\n");
-      result = 1;
-    }
 
   closedir (dirp);
   return result;