Make `ls' a lot more efficient on systems (e.g., linux-2.4.*)
authorJim Meyering <jim@meyering.net>
Sat, 28 Oct 2000 12:18:21 +0000 (12:18 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 28 Oct 2000 12:18:21 +0000 (12:18 +0000)
commita67cbceb5a648fefe69e542154be266742b38676
tree2cf58b5825dc1b8d0ec084a0042e59b351d95dac
parent71a47cd7bb03e9e0842fd3300435c2065ea46ddd
Make `ls' a lot more efficient on systems (e.g., linux-2.4.*)
that save file type information in directory entries.

[enum filetype] (unknown):
Add members (as yet unused):
(HAVE_STRUCT_DIRENT_D_TYPE): Define.
(format_needs_type): New global.
(main): Set it.
(print_dir): Set `type' from directory entry, if possible.
(gobble_file): Add a parameter, TYPE.
Stat the file only if its type is unknown and we need the type.
Patch from Ulrich Drepper.
src/ls.c