diff options
author | Florian Weimer <fweimer@redhat.com> | 2017-10-30 15:48:33 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2017-10-30 15:48:33 +0100 |
commit | 4484b9e29656980f18bb0fc8cdb6b1bbe5364f21 (patch) | |
tree | 3780df60b52f271014d0ccb66456fe7d6e41b5cf /posix/tst-gnuglob-skeleton.c | |
parent | 68fe16dd327c895c08b9ee443b234c49c13b36e9 (diff) | |
download | glibc-4484b9e29656980f18bb0fc8cdb6b1bbe5364f21.zip glibc-4484b9e29656980f18bb0fc8cdb6b1bbe5364f21.tar.gz glibc-4484b9e29656980f18bb0fc8cdb6b1bbe5364f21.tar.bz2 |
Assume that _DIRENT_HAVE_D_TYPE is always defined.
References remain in io/fts.c, io/ftw.c, posix/glob.c,
sysdeps/posix/getcwd.c. These files are (potentially) externally
shared.
Diffstat (limited to 'posix/tst-gnuglob-skeleton.c')
-rw-r--r-- | posix/tst-gnuglob-skeleton.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/posix/tst-gnuglob-skeleton.c b/posix/tst-gnuglob-skeleton.c index 9276297..ba6812b 100644 --- a/posix/tst-gnuglob-skeleton.c +++ b/posix/tst-gnuglob-skeleton.c @@ -221,27 +221,16 @@ my_readdir (void *gdir) dir->d.d_ino = 1; /* glob should not skip this entry. */ -#ifdef _DIRENT_HAVE_D_TYPE dir->d.d_type = filesystem[dir->idx].type; -#endif strcpy (dir->d.d_name, filesystem[dir->idx].name); -#ifdef _DIRENT_HAVE_D_TYPE if (test_verbose > 0) printf ("info: my_readdir ({ level: %d, idx: %ld })" " = { d_ino: %lld, d_type: %d, d_name: \"%s\" }\n", dir->level, (long int) dir->idx, (long long) dir->d.d_ino, dir->d.d_type, dir->d.d_name); -#else - if (test_verbose > 0) - printf ("info: my_readdir ({ level: %d, idx: %ld })" - " = { d_ino: %lld, d_name: \"%s\" }\n", - dir->level, (long int) dir->idx, - (long long) dir->d.d_ino, - dir->d.d_name); -#endif ++dir->idx; |