summaryrefslogtreecommitdiff
path: root/dirent
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2005-02-16 12:31:10 +0000
committerRoland McGrath <roland@gnu.org>2005-02-16 12:31:10 +0000
commit833861be818bb5d45ab0c47370b84068dfb2fedf (patch)
tree2f1754a415c378f6b067f9158cc42df24d4641d2 /dirent
parentc397a0064061e28a00eea873669e59f3983db791 (diff)
import later fedora-branch tweaks
Diffstat (limited to 'dirent')
-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;