]> git.ipfire.org Git - thirdparty/coreutils.git/commit
Rewrite to perform directory traversal using nftw.
authorJim Meyering <jim@meyering.net>
Fri, 31 Jan 2003 10:39:33 +0000 (10:39 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 31 Jan 2003 10:39:33 +0000 (10:39 +0000)
commitde49951491631bab884ac387ebb745a511817d6b
tree02580e73a4717f15d34b0cf97047b3a52fece55c
parent129c735cda46fbe1c1d4a86879f87aa52fb59779
Rewrite to perform directory traversal using nftw.

Include "dirname.h", "ftw.h", and "quotearg.h".
(AUTHORS): Add self.
(opt_one_file_system): Move global into `main'.
(path, xstat, exit_status): Remove declarations.
(arg_length, suffix_length): New globals.
(G_fail): New global, sort of like the old `exit_status'.
(IS_FTW_DIR_TYPE): Define.
(print_only_size): New function.
(process_file): New function.
(str_init, ensure_space, str_copyc, str_concatc): Remove functions.
(str_trunc, pop_dir, count_entry): Likewise.
(du_files): Rewrite to use nftw.
src/du.c