| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
We can now just use for_arena() to iterate over the allocated bfs_exprs.
|
| |
|
|
|
|
|
|
| |
This replaces the explicit CPPFLAGS list in flags.mk with just
`-include src/prelude.h`, shortening our compiler command lines and
allowing them to be easily documented.
|
| |
|
|
|
|
| |
Closes: https://github.com/tavianator/bfs/issues/142
|
|
|
|
|
|
| |
For example, `bfs -delete -type f` is almost certainly a mistake.
Link: https://savannah.gnu.org/bugs/?65895
|
|
|
|
|
|
|
| |
POSIX 2024 clarified that find(1) is meant to work exactly like chmod(1)
here, so for modes like +rw,-x with no "who" specified, apply the umask.
Link: https://www.austingroupbugs.net/view.php?id=1392
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Parallelism is controlled by the new -j flag.
|
|
|
|
| |
In anticipation of C23, since those headers won't be necessary any more.
|
|
|
|
|
|
|
| |
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/
|
|
|
|
|
| |
reftime is part of a different union than the print actions are supposed
to use.
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
Moved Source Files Into `src` Folder
|