summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* trie: Use load8_beu*() for trie_mismatch()HEADmainTavian Barnes3 days1-29/+23
|
* bfstd: Use load8_leu*() for asciinlen()Tavian Barnes3 days1-24/+20
|
* bit: Add the load8_[bl]euN() utilitiesTavian Barnes3 days2-2/+63
|
* trie: Make nibble indices big-endianTavian Barnes3 days2-7/+11
| | | | Otherwise the order doesn't match lexicographical order on bytes.
* tests/xtouch: Use xstrtol()Tavian Barnes3 days1-5/+2
|
* trie: New trie_node_size() helperTavian Barnes3 days1-3/+9
|
* configure: Add separate --enable-lto knobTavian Barnes3 days2-3/+9
|
* configure: Add warn() helper functionTavian Barnes4 days1-6/+13
|
* trie: Clean up some bounds checkingTavian Barnes4 days1-6/+6
|
* trie: Micro-optimize trie_representative()Tavian Barnes5 days1-4/+5
| | | | | popcount(map & (bit - 1) & mask) has a longer critical path than popcount(map & (bit - 1)) & mask.
* tests: Don't shell out to tr just to replace slashes with dashesTavian Barnes9 days1-3/+1
|
* tests: Make --no-clean listen to $NO_COLORTavian Barnes9 days1-1/+1
|
* tests/color: Use /dev/tty over $TTYTavian Barnes9 days1-2/+2
| | | | | | | | | | $TTY is the actual TTY, e.g. /dev/pts/3, which may not be accessible by the current user. This can happen e.g. if the PTY is owned by root, who then does root@host# su user user@host$ ./tests/tests.sh ./tests/color.sh: line 81: /dev/pts/3: Permission denied
* eval: Don't error out in -ls if the time overflowsTavian Barnes9 days2-19/+34
|
* tests: Use $EPOCHSECONDS if it existsTavian Barnes9 days1-2/+7
| | | | | | | Bash 5 adds that special variable, which should be more reliable than the awk trick, which is known to be broken on mawk. Fixes: https://github.com/tavianator/bfs/issues/152
* ioq: Use getppid() for the heavy NOP syscallTavian Barnes10 days1-1/+1
| | | | | | | | getpid() could hypothetically be cached (and glibc used to do it). getppid() can't be, because the parent could die and reparent the child to init. Link: https://lore.kernel.org/linux-mm/Z58dIOGlJ3grsAge@casper.infradead.org/
* mtab: Use mount IDs instead of dev_t for bfs_fstype()Tavian Barnes10 days3-2/+31
| | | | | | | | | This fixes -fstype on btrfs subvolumes, which previously reported "unknown" due to their dev_t being potentially different from the mount point. Link: https://savannah.gnu.org/bugs/?50859 Link: https://lwn.net/Articles/866582/
* stat: Expose mount IDs from statx()Tavian Barnes10 days3-2/+40
|
* trie: New trie_{get,set}_{str,mem}() functionsTavian Barnes10 days4-23/+93
|
* diag: Try to make diagnostics signal-saferTavian Barnes10 days3-3/+25
| | | | Link: https://sourceware.org/bugzilla/show_bug.cgi?id=16060
* tests/posix/exec_sigmask: Make portableTavian Barnes12 days1-2/+14
| | | | | | | | The test was Linux-only, and didn't pass on at least mips64el due to a different signal mask size. The new version should be fully portable, but will hang forever on failure. Link: https://buildd.debian.org/status/fetch.php?pkg=bfs&arch=mips64el&ver=4.0.5-1&stamp=1737761227&raw=0
* ioq: Rewrite the spin loop to avoid a warningTavian Barnes13 days1-4/+3
| | | | | | | | | | | | With some GCC versions, --enable-ubsan leads to this warning: src/ioq.c: In function ‘ioq_slot_wait’: src/ioq.c:287:17: warning: ignoring loop annotation 287 | for (int j = 0; j < (1 << i); ++j) { | ^~~ presumably due to UBSan rewriting the shift to check for overflow. Work around this by precomputing the iteration count.
* ci/diag.sh: Try to make sed unbufferedTavian Barnes13 days1-1/+6
|
* ci/diag.sh: Simplify sed expressionTavian Barnes2025-01-271-2/+1
|
* ci: Update to NetBSD 10.1Tavian Barnes2025-01-271-1/+1
|
* build(deps): bump cross-platform-actions/action from 0.26.0 to 0.27.0dependabot[bot]2025-01-271-3/+3
| | | | | | | | | | | | | | | Bumps [cross-platform-actions/action](https://github.com/cross-platform-actions/action) from 0.26.0 to 0.27.0. - [Release notes](https://github.com/cross-platform-actions/action/releases) - [Changelog](https://github.com/cross-platform-actions/action/blob/master/changelog.md) - [Commits](https://github.com/cross-platform-actions/action/compare/v0.26.0...v0.27.0) --- updated-dependencies: - dependency-name: cross-platform-actions/action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
* ci: Add an Arm64 Linux jobTavian Barnes2025-01-231-3/+34
|
* ci: Remove mmap_rnd_bits workaroundTavian Barnes2025-01-231-2/+0
| | | | Link: https://github.com/actions/runner-images/issues/9524#issuecomment-2002065399
* ci: Update to macos-15Tavian Barnes2025-01-231-4/+2
|
* tests/sighook: Fix Valgrind compatibilityTavian Barnes2025-01-211-39/+43
| | | | | | | | | | | | | | | | | | | | Valgrind does not deliver async signals in a timely manner; by default, it polls for new signals every 1,000 basic blocks. That means we can get SIGALRM delivered after timer_delete(), or kill(SIGSEGV) never delivered after pause(). Fix the timer_delete() issue by reordering the cleanup path. Valgrind always polls pending signals after pthread_sigmask(), so call that between timer_delete() and sigunhook(). Fix the pause() issue by sleeping in a loop instead. Note that --fair-sched=yes is required to avoid starvation of the background thread. Link: https://bugs.kde.org/show_bug.cgi?id=492678 Link: https://bugs.kde.org/show_bug.cgi?id=343357 Link: https://bugs.kde.org/show_bug.cgi?id=498936
* sighook: Fix sigreset() error handlingTavian Barnes2025-01-201-9/+16
|
* Release 4.0.54.0.5Tavian Barnes2025-01-184-4/+22
|
* tests: Add a test for sigmask restorationTavian Barnes2025-01-182-0/+5
|
* sighook: Don't forget to check `initialized` in sigreset()Tavian Barnes2025-01-181-0/+4
|
* sighook: Fix up siginit() error pathsTavian Barnes2025-01-181-8/+14
|
* xspawn: Unblock signals between fork() and exec()Tavian Barnes2025-01-181-2/+15
| | | | | | Otherwise the child process runs with all signals blocked. Fixes: 423cfa4 ("xspawn: Mask signals before fork()")
* sighook: New sigreset() function to reset all handlersTavian Barnes2025-01-182-3/+45
|
* sighook: Convert siglist to a more general rcu_list typeTavian Barnes2025-01-181-52/+66
|
* build: Feature-detect #pragma nounroll supportTavian Barnes2025-01-173-2/+13
|
* list: Don't use leading underscores for globalsTavian Barnes2025-01-161-6/+6
|
* ioq: Don't unroll the spin loopTavian Barnes2025-01-162-1/+15
|
* ioq: Prefetch slots with a write intentTavian Barnes2025-01-161-1/+1
|
* build: Check for compound literal storage-class supportTavian Barnes2025-01-073-1/+8
| | | | This lets us use them on GCC >= 13, even before C23.
* configure: Suggest --enable-release over RELEASE=y etc.Tavian Barnes2025-01-071-0/+19
|
* configure: Reduce redundant info in CONFFLAGS for bfs --versionTavian Barnes2025-01-071-1/+8
|
* sighook: Add some missing fatal signalsTavian Barnes2024-12-241-5/+14
|
* sighook: Preserve the exact siginfo_t in reraise() on LinuxTavian Barnes2024-12-241-3/+16
| | | | Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=66dd34ad31e5963d72a700ec3f2449291d322921
* sighook: Always re-raise faults on macOSTavian Barnes2024-12-222-0/+11
| | | | | | | | | | macOS always fills in si_code for SIG{BUS,ILL,SEGV} as if it were a real hardware fault, so returning from the handler is not guaranteed to re- trigger the signal. Fixes: aecdabb ("sighook: Return instead of re-raising for faults") Link: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/2386463/4/util/posix/signals_test.cc Link: https://github.com/chromium/crashpad/commit/e0d8a0aa01ac176804077f1f128ccc894c098f79
* tests/sighook: Add missing #include <sys/wait.h>Tavian Barnes2024-12-191-2/+3
|
* tests/gnu: Add an -ignore_readdir_race test for removed directoriesTavian Barnes2024-12-172-0/+7
| | | | Link: https://savannah.gnu.org/bugs/index.php?45930