summaryrefslogtreecommitdiffstats
path: root/ctx.h
Commit message (Collapse)AuthorAgeFilesLines
* ctx: Also deduplicate the standard streamsTavian Barnes2021-09-211-5/+8
| | | | | | 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.
* eval: Use 512-byte blocks for -ls when POSIXLY_CORRECT is setTavian Barnes2021-09-021-1/+3
| | | | | This matches the behaviour of GNU find, and allows bfs to match the output of BSD find as well. Fixes #77.
* eval: Raise RLIMIT_NOFILE if possibleTavian Barnes2021-05-201-0/+6
| | | | | | 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()).
* parse: Clean up debug flag parsing/printingTavian Barnes2020-12-021-0/+5
|
* Include what I useTavian Barnes2020-11-121-0/+1
| | | | Thanks to https://github.com/include-what-you-use/include-what-you-use
* New -status option to display a status barTavian Barnes2020-11-031-0/+2
|
* ctx: Don't include color.hTavian Barnes2020-10-061-4/+4
|
* parse: Fail if -color is passed and the colors couldn't be parsedTavian Barnes2020-10-041-0/+2
|
* Rename struct cmdline to bfs_ctxTavian Barnes2020-09-271-0/+180
The API remains similar, with some added accessor functions for lazy initialization of the pwcache and mtab.