Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | ctx: Also check ferror(stdout) | Tavian Barnes | 2022-02-11 | 1 | -15/+27 |
| | | | | | | Previously this was checked for all other files, but for stdout we just checked the return value of fflush(). Checking ferror() makes sure we don't miss any errors that occurred on a previous flush. | ||||
* | Don't truncate files until we know they're not duplicates | Tavian Barnes | 2021-09-26 | 1 | -1/+1 |
| | |||||
* | ctx: Also deduplicate the standard streams | Tavian Barnes | 2021-09-21 | 1 | -29/+43 |
| | | | | | | 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. | ||||
* | Implement -files0-from FILE | Tavian Barnes | 2021-09-15 | 1 | -0/+5 |
| | | | | | See https://savannah.gnu.org/bugs/?60383 for the development of the corresponding GNU find feature. | ||||
* | eval: Use 512-byte blocks for -ls when POSIXLY_CORRECT is set | Tavian Barnes | 2021-09-02 | 1 | -1/+2 |
| | | | | | 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 possible | Tavian Barnes | 2021-05-20 | 1 | -0/+9 |
| | | | | | | 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()). | ||||
* | Give messages to unconditional assertion failures | Tavian Barnes | 2020-12-02 | 1 | -1/+1 |
| | |||||
* | parse: Clean up debug flag parsing/printing | Tavian Barnes | 2020-12-02 | 1 | -0/+26 |
| | |||||
* | Include what I use | Tavian Barnes | 2020-11-12 | 1 | -1/+3 |
| | | | | Thanks to https://github.com/include-what-you-use/include-what-you-use | ||||
* | ctx: Add missing #include <limits.h> | Tavian Barnes | 2020-11-12 | 1 | -0/+1 |
| | | | | Spotted at https://github.com/freebsd/freebsd-ports/commit/4d80040cb4c10271b375f3b5d70d2b29dae7fc6f | ||||
* | New -status option to display a status bar | Tavian Barnes | 2020-11-03 | 1 | -0/+1 |
| | |||||
* | pwcache: Adjust some naming conventions | Tavian Barnes | 2020-10-06 | 1 | -4/+4 |
| | |||||
* | mtab: Adjust some naming conventions | Tavian Barnes | 2020-10-06 | 1 | -2/+2 |
| | |||||
* | parse: Fail if -color is passed and the colors couldn't be parsed | Tavian Barnes | 2020-10-04 | 1 | -0/+1 |
| | |||||
* | ctx: Perserve errno better in bfs_ctx_open() | Tavian Barnes | 2020-09-28 | 1 | -0/+7 |
| | |||||
* | Rename struct cmdline to bfs_ctx | Tavian Barnes | 2020-09-27 | 1 | -0/+217 |
The API remains similar, with some added accessor functions for lazy initialization of the pwcache and mtab. |