summaryrefslogtreecommitdiffstats
path: root/eval.c
AgeCommit message (Collapse)Author
2016-12-04Move portability code into util.hTavian Barnes
2016-11-24Allow // to be different from /Tavian Barnes
POSIX says that // may be resolved in an implementation-defined way (generally, to access network shares). So don't use it in tests, and don't canonicalize it to '/' in -execdir.
2016-11-22Don't pass AT_SYMLINK_NOFOLLOW to faccessat()Tavian Barnes
It's an invalid flag for that call, and FreeBSD actually complains.
2016-11-21bftw: Make bftw_flags more similar to fts() options.Tavian Barnes
2016-11-21Fix -execdir for /Tavian Barnes
2016-11-21Fix -execdir for root paths with no slashes.Tavian Barnes
2016-11-14Check for readdir() errors everywhere.Tavian Barnes
2016-11-13Don't try to -delete the current directory.Tavian Barnes
2016-11-13Redirect stdin from /dev/null for -ok and -okdir.Tavian Barnes
2016-10-29Implement -perm.Tavian Barnes
2016-10-24Implement -ignore_readdir_race.Tavian Barnes
2016-10-24Check for POSIX timers before using them.Tavian Barnes
2016-10-16Check for errors in -print and friends.Tavian Barnes
2016-10-02bftw: Add support for some exotic file types, where available.Tavian Barnes
2016-07-13Use a linked list to store the root paths.Tavian Barnes
2016-06-28Implement -D rates.Tavian Barnes
2016-06-19Use underscores.Tavian Barnes
2016-06-09Re-work optimization levels.Tavian Barnes
-O3 is the new default, for the future cost-based optimizer. -O4 enables the surprising/aggressive optimizations that used to be under -O3. -Ofast is a synonym for -O4.
2016-06-08Implement -fprint and -fprint0.Tavian Barnes
2016-06-07Implement -D opt.Tavian Barnes
2016-06-03eval: Clean up open fd counting code.Tavian Barnes
2016-06-02Fix hypothetical leak if waitpid() fails.Tavian Barnes
2016-05-22Use argc/argv naming consistently.Tavian Barnes
2016-05-22Implement -{exec,ok}{,dir}.Tavian Barnes
2016-04-10Remove an errant debugging printf().Tavian Barnes
2016-03-12Implement -size.Tavian Barnes
2016-03-05Implement -used.Tavian Barnes
This doesn't agree with find's output, but I think find is buggy here. For example, find -used +0 is returning fewer results than find -used 1, which makes no sense given that 1 is greater than 0.
2016-02-27Fix potential leaks in -lname.Tavian Barnes
2016-02-27Don't repeat reported error messages from bftw().Tavian Barnes
Fixes #7.
2016-02-23Implement -O.Tavian Barnes
2016-02-22Implement -D stat.Tavian Barnes
2016-02-21Fix infinite recursion in eval_not().Tavian Barnes
And use a helper function to prevent this kind of bug in the future.
2016-02-17Fix an uninitialized value warning.Tavian Barnes
2016-02-14s/color_table/colors/.Tavian Barnes
2016-02-14Refactor color handling.Tavian Barnes
The main benefit is colored warnings/errors during parsing.
2016-02-14Implement -lname and -ilname.Tavian Barnes
2016-02-14Add brief -help and -version support.Tavian Barnes
2016-02-14Don't stop early just because deleting failed.Tavian Barnes
2016-02-13Implement -iname and -ipath.Tavian Barnes
2016-02-13Fix -name handling when the root has trailing slashes.Tavian Barnes
2016-02-13Implement -xtype.Tavian Barnes
2016-02-13Follow links if appropriate in predicates.Tavian Barnes
2016-02-12Check the number of open FDs at the start.Tavian Barnes
This fixes the issues with things like $ bfs -empty 3</dev/null
2016-02-12Consolidate some error reporting logic.Tavian Barnes
2016-02-12Use 'cmdline' instead of 'cl'.Tavian Barnes
2016-02-12Report failures that happen inside predicates.Tavian Barnes
2016-02-11Keep one fd free for the predicates themselves.Tavian Barnes
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.
2016-02-10Implement -samefile.Tavian Barnes
2016-02-04Implement -links.Tavian Barnes
2016-02-04Implement -inum.Tavian Barnes