Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | sighook: Allow sigunhook(NULL) | Tavian Barnes | 2024-05-25 | 1 | -3/+1 |
| | |||||
* | opt: Don't raise RLIMIT_NOFILE if it would prevent using posix_spawn() | Tavian Barnes | 2024-05-23 | 1 | -0/+1 |
| | | | | | | | | | | If we raise RLIMIT_NOFILE, we have to lower it before calling exec() for compatibility with select(). If posix_spawn() doesn't support that, we fall back to fork(), which is quite a bit slower. Therefore, if we're going to exec() on most files, it's better to keep RLIMIT_NOFILE the same to avoid the fork() cost, even though it makes bftw() somewhat slower. | ||||
* | Stop using %m | Tavian Barnes | 2024-05-20 | 1 | -2/+2 |
| | |||||
* | Work around https://github.com/llvm/llvm-project/issues/88163 | Tavian Barnes | 2024-05-16 | 1 | -1/+2 |
| | |||||
* | ctx: Try to reset TTY state when terminating abnormally | Tavian Barnes | 2024-05-16 | 1 | -40/+61 |
| | | | | Fixes: https://github.com/tavianator/bfs/issues/138 | ||||
* | ctx: Escape paths when reporting errors in bfs_ctx_free() | Tavian Barnes | 2024-04-24 | 1 | -1/+1 |
| | |||||
* | Re-run include-what-you-use | Tavian Barnes | 2024-03-11 | 1 | -0/+1 |
| | |||||
* | ctx: Fill in ctx->threads earlier | Tavian Barnes | 2024-02-06 | 1 | -0/+16 |
| | |||||
* | expr: Make expressions variadic | Tavian Barnes | 2024-01-07 | 1 | -1/+1 |
| | | | | | | | | | Rather than only unary/binary expressions, we now support an arbitrary number of children. The optimizer has been re-written almost completely and now supports optimal reordering of longer expression chains, rather than just arm-swapping. Fixes #85. | ||||
* | expr: Arena-allocate expressions | Tavian Barnes | 2023-12-20 | 1 | -3/+8 |
| | |||||
* | ctx: Switch paths from darray to RESERVE() | Tavian Barnes | 2023-11-23 | 1 | -3/+2 |
| | |||||
* | ctx: Store the original and current RLIMIT_NOFILE | Tavian Barnes | 2023-11-06 | 1 | -4/+2 |
| | |||||
* | diag: Move enum debug_flags out of ctx.h | Tavian Barnes | 2023-10-12 | 1 | -25/+0 |
| | |||||
* | Formatting fixes | Tavian Barnes | 2023-09-27 | 1 | -1/+0 |
| | |||||
* | Use the new list macros | Tavian Barnes | 2023-09-25 | 1 | -2/+2 |
| | |||||
* | alloc: New header for memory allocation utilities | Tavian Barnes | 2023-06-20 | 1 | -28/+3 |
| | |||||
* | bftw: Use an I/O queue to open directories | Tavian Barnes | 2023-06-13 | 1 | -0/+1 |
| | | | | Parallelism is controlled by the new -j flag. | ||||
* | Use bfs_bug("...") over assert(!"...") | Tavian Barnes | 2023-05-18 | 1 | -2/+1 |
| | |||||
* | Replace license boilerplate with SPDX tags | Tavian Barnes | 2023-01-25 | 1 | -15/+2 |
| | | | | | | | And while I'm at it, remove years from copyright declarations. Link: https://spdx.dev/about/ Link: https://daniel.haxx.se/blog/2023/01/08/copyright-without-years/ | ||||
* | expr: Don't use reftime for -ls | Tavian Barnes | 2022-11-17 | 1 | -0/+5 |
| | | | | | reftime is part of a different union than the print actions are supposed to use. | ||||
* | Try to report I/O errors earlier and only once | Tavian Barnes | 2022-11-10 | 1 | -5/+27 |
| | |||||
* | ctx: Flush the user/group caches when executing commands | Tavian Barnes | 2022-11-09 | 1 | -0/+5 |
| | | | | | | This fixes (admittedly uncommon) commands like $ bfs -nouser -exec add-missing-user.sh {} \; | ||||
* | pwcache: Fill the user/group caches lazily | Tavian Barnes | 2022-11-09 | 1 | -35/+15 |
| | | | | | | | Iterating all the users/groups can be expensive, especially with NSS. Android has so many that it doesn't even return them all from get{pw,gr}ent() for performance reasons, leading to incorrect behaviour of -user/-group/etc. | ||||
* | trie: Make leaves into a linked list | Tavian Barnes | 2022-10-29 | 1 | -3/+1 |
| | |||||
* | Source / Include Folder (#88) | トトも | 2022-04-16 | 1 | -0/+311 |
Moved Source Files Into `src` Folder |