summaryrefslogtreecommitdiffstats
path: root/bfs.c
Commit message (Collapse)AuthorAgeFilesLines
* Support -d as an alias for -depth.Tavian Barnes2015-11-261-1/+1
|
* Implement -quit.Tavian Barnes2015-11-261-0/+10
|
* Don't call fstatat() unless actually necessary in fill_statbuf().Tavian Barnes2015-11-261-2/+6
|
* Optimize -maxdepth in -depth mode.Tavian Barnes2015-09-261-1/+11
|
* Don't call stat() until absolutely necessary.Tavian Barnes2015-09-261-6/+24
| | | | | This way we only call stat() if we're actually pretty-printing the path, potentially saving lots of calls on paths that don't get printed.
* bftw() interface improvements:Tavian Barnes2015-09-261-23/+23
| | | | | | - Use enums instead of ints where it makes sense - Move the file path inside struct BFTW - Expose a fd and relative path for *at() calls
* Fix -maxdepth handling when -depth is set.Tavian Barnes2015-09-151-1/+1
| | | | Lost some data due to this bug :(.
* Implement -delete.Tavian Barnes2015-09-081-1/+24
| | | | Related to #5.
* Perform some boolean simplification on the expression tree.Tavian Barnes2015-09-081-52/+133
| | | | And plug some leaks while I'm at it.
* Add -depth support.Tavian Barnes2015-09-081-0/+3
| | | | | | | The resulting order is fairly weird, as files are still returned in breadth-first order, but directories are returned in a backwards order based on when their reference counts drop to zero. But it's good enough for -delete support.
* Print the root file/directory too.Tavian Barnes2015-09-021-1/+1
|
* Add -print0 support.Tavian Barnes2015-09-011-10/+43
|
* Add -mindepth and -maxdepth support.Tavian Barnes2015-08-311-3/+62
|
* Fix parsing around ")".Tavian Barnes2015-08-311-1/+3
|
* Fix -o/-or and comma operator.Tavian Barnes2015-08-311-0/+4
|
* Add -name support.Tavian Barnes2015-08-311-22/+97
|
* Free the colors.Tavian Barnes2015-08-311-0/+1
|
* Don't forget to initialize cl->expr.Tavian Barnes2015-08-311-0/+1
|
* Simplify evaluation function signatures.Tavian Barnes2015-08-311-36/+48
|
* Add support for -true and -false.Tavian Barnes2015-08-301-11/+22
|
* Fix -nohidden return value.Tavian Barnes2015-08-301-2/+6
|
* Add -type support.Tavian Barnes2015-08-301-1/+56
| | | | Fixes #2.
* Parse command line expressions properly.Tavian Barnes2015-08-301-61/+492
|
* Infer the right value for nopenfd, and recover from EMFILE.Tavian Barnes2015-07-271-2/+21
|
* Recover from errors in diropen().Tavian Barnes2015-07-251-3/+8
| | | | Fixes #4.
* bftw: New struct BFTW type to hold file attributes.Tavian Barnes2015-07-231-4/+3
| | | | | Like nftw()'s struct FTW. level is needed to implement -mindepth/ -maxdepth.
* Add initial support for colorized output.Tavian Barnes2015-06-201-15/+36
|
* bftw: Add flags parameter and BFTW_STAT flag.Tavian Barnes2015-06-181-2/+2
|
* Add -hidden/-nohidden flags.Tavian Barnes2015-06-181-4/+43
|
* Implement bftw().Tavian Barnes2015-06-141-0/+34