summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Check the number of open FDs at the start.Tavian Barnes2016-02-121-22/+42
| | | | | | This fixes the issues with things like $ bfs -empty 3</dev/null
* Consolidate some error reporting logic.Tavian Barnes2016-02-121-7/+12
|
* Use 'cmdline' instead of 'cl'.Tavian Barnes2016-02-122-19/+19
|
* Report failures that happen inside predicates.Tavian Barnes2016-02-122-7/+30
|
* Keep one fd free for the predicates themselves.Tavian Barnes2016-02-111-3/+3
| | | | | | | | | | | | Otherwise -empty may start failing once the dircache grows. It's still possible to cause failures with $ bfs some/big/dir -empty 3</dev/null because one more fd than expected will be allocated, but that's not a common case. It could be worked around by reading /proc/self/fd/ at startup.
* Implement -samefile.Tavian Barnes2016-02-104-8/+66
|
* Add a README.Tavian Barnes2016-02-101-0/+93
|
* Implement -L/-follow.Tavian Barnes2016-02-094-34/+110
|
* bftw: Don't give up when following a broken symlink.Tavian Barnes2016-02-062-2/+16
|
* Implement -P and -H.Tavian Barnes2016-02-044-9/+57
|
* Drive the literal parsing with a switch.Tavian Barnes2016-02-041-82/+157
|
* Implement -links.Tavian Barnes2016-02-044-1/+32
|
* Implement -inum.Tavian Barnes2016-02-043-0/+15
|
* Implement -[ac]?newer.Tavian Barnes2016-02-045-2/+93
|
* Implements -daystart.Tavian Barnes2016-02-043-9/+48
|
* Refactor how -[acm]{min,time} are handled.Tavian Barnes2016-02-043-92/+68
|
* Leave some struct expr fields uninitialized.Tavian Barnes2016-02-041-7/+0
|
* Don't use typedefs to avoid struct/enum tags.Tavian Barnes2016-02-048-259/+254
|
* Add -gid and -uid support.Tavian Barnes2016-02-024-1/+46
|
* Add -[acm]{min,time} support.Tavian Barnes2016-02-023-30/+242
|
* bftw: Add missing #include.Tavian Barnes2016-01-301-0/+1
|
* Implement -empty.Tavian Barnes2016-01-304-1/+53
|
* bftw: Fix fd leak if fdopendir() fails.Tavian Barnes2016-01-301-1/+5
|
* Split out parsing code.Tavian Barnes2015-11-295-350/+412
|
* Implement -executable, -readable, and -writable.Tavian Barnes2015-11-282-1/+40
|
* Implement warnings for misplaced options.Tavian Barnes2015-11-271-47/+77
|
* Implement -path.Tavian Barnes2015-11-272-21/+44
|
* 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-264-17/+36
|
* Don't call stat() until absolutely necessary.Tavian Barnes2015-09-262-7/+25
| | | | | 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-265-137/+141
| | | | | | - 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
* Use -O3 for release builds.Tavian Barnes2015-09-161-1/+1
|
* tests.sh: Use a more portable mktemp form.Tavian Barnes2015-09-151-1/+1
|
* Fix -maxdepth handling when -depth is set.Tavian Barnes2015-09-152-3/+15
| | | | Lost some data due to this bug :(.
* Add a basic test suite.Tavian Barnes2015-09-152-1/+64
|
* Implement -delete.Tavian Barnes2015-09-083-6/+29
| | | | 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-083-41/+191
| | | | | | | 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.
* Factor some code out of bftw().Tavian Barnes2015-09-061-77/+172
|
* Print the root file/directory too.Tavian Barnes2015-09-025-100/+142
|
* 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
|
* bftw: Store the paths with a trailing slash.Tavian Barnes2015-08-311-32/+37
|
* bftw: Fix path size of /.Tavian Barnes2015-08-311-2/+6
|