summaryrefslogtreecommitdiffstats
path: root/ctx.h
AgeCommit message (Collapse)Author
2021-09-21ctx: Also deduplicate the standard streamsTavian Barnes
This fixes some potential missing output when the same file is used in a redirection and something like -fprint. The main benefit is smarter handling of /dev/stdout, which will now share the CFILE* with cout.
2021-09-02eval: Use 512-byte blocks for -ls when POSIXLY_CORRECT is setTavian Barnes
This matches the behaviour of GNU find, and allows bfs to match the output of BSD find as well. Fixes #77.
2021-05-20eval: Raise RLIMIT_NOFILE if possibleTavian Barnes
This lets us keep more open FDs cached in bftw(). The limit is lowered before running -exec commands, in case they're incompatible with a high limit (e.g. due to select()).
2020-12-02parse: Clean up debug flag parsing/printingTavian Barnes
2020-11-12Include what I useTavian Barnes
Thanks to https://github.com/include-what-you-use/include-what-you-use
2020-11-03New -status option to display a status barTavian Barnes
2020-10-06ctx: Don't include color.hTavian Barnes
2020-10-04parse: Fail if -color is passed and the colors couldn't be parsedTavian Barnes
2020-09-27Rename struct cmdline to bfs_ctxTavian Barnes
The API remains similar, with some added accessor functions for lazy initialization of the pwcache and mtab.