Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | bench: Don't print paths in the --strategies benchmark | Tavian Barnes | 2023-10-10 | 1 | -1/+1 | |
| | ||||||
* | bench: Allow format specifiers in (sub)group headers | Tavian Barnes | 2023-10-10 | 1 | -10/+10 | |
| | ||||||
* | bar: Replace volatile sig_atomic_t with actual atomics | Tavian Barnes | 2023-10-06 | 1 | -8/+12 | |
| | ||||||
* | alloc: Test allocation size overflows | Tavian Barnes | 2023-10-06 | 2 | -4/+12 | |
| | ||||||
* | tests/bfs/status: Try to test SIGWINCH | Tavian Barnes | 2023-10-06 | 1 | -1/+1 | |
| | ||||||
* | tests: Check for expect_unbuffer too | Tavian Barnes | 2023-10-06 | 1 | -2/+8 | |
| | | | | That's where FreeBSD installs it. | |||||
* | tests: New bfs_pty wrapper for unbuffer | Tavian Barnes | 2023-10-06 | 4 | -7/+17 | |
| | ||||||
* | ci: Install expect for unbuffer | Tavian Barnes | 2023-10-05 | 2 | -0/+6 | |
| | ||||||
* | tests/bfs: Add a test that runs -status | Tavian Barnes | 2023-10-05 | 1 | -0/+3 | |
| | ||||||
* | tests/bfs: Add tests for color autodetection | Tavian Barnes | 2023-10-05 | 4 | -0/+65 | |
| | ||||||
* | tests: Respect $NO_COLOR | Tavian Barnes | 2023-10-05 | 1 | -9/+15 | |
| | ||||||
* | README: Realign badges | Tavian Barnes | 2023-10-05 | 1 | -4/+3 | |
| | | | | A recent GitHub change broke the nice alignment of the badges to the top heading, so just put the badges underneath it for now. | |||||
* | bfstd: Add a thread-safe wrapper for strerror() | Tavian Barnes | 2023-10-05 | 11 | -13/+69 | |
| | ||||||
* | thread: Define thread_local | Tavian Barnes | 2023-10-05 | 2 | -0/+16 | |
| | ||||||
* | config: Fold !__FreeBSD__ into BFS_USE_SYS_CAPABILITY_H | Tavian Barnes | 2023-10-05 | 2 | -2/+2 | |
| | ||||||
* | dstring: Limit the special dchar typedef to lint builds | Tavian Barnes | 2023-10-04 | 1 | -7/+2 | |
| | | | | | Clang still thinks that alignof(dstr[1]) == 2, so out of an abundance of caution, don't mess with dchar alignment in normal builds. | |||||
* | build: New lint flag | Tavian Barnes | 2023-10-04 | 1 | -1/+8 | |
| | ||||||
* | thread: s/call_once/invoke_once/ | Tavian Barnes | 2023-10-03 | 3 | -3/+3 | |
| | | | | call_once() is a reserved identifier from C11. | |||||
* | ci/freebsd: Use tailscale ssh | Tavian Barnes | 2023-10-03 | 1 | -10/+3 | |
| | ||||||
* | ci/macos: Don't install coreutils | Tavian Barnes | 2023-10-03 | 1 | -4/+0 | |
| | | | | | Since we build our own touch(1) implementation, we no longer need to work around the macOS bug. | |||||
* | tests: Fix make_deep() on FreeBSD | Tavian Barnes | 2023-10-02 | 1 | -9/+10 | |
| | | | | I keep forgetting that PATH_MAX is only 1024 there. | |||||
* | Merge branch 'io-uring' | Tavian Barnes | 2023-10-02 | 8 | -53/+310 | |
|\ | ||||||
| * | ioq: Use io_uring | Tavian Barnes | 2023-10-02 | 2 | -42/+288 | |
| | | | | | | | | Closes #65. | |||||
| * | build: Add liburing on Linux | Tavian Barnes | 2023-10-02 | 6 | -11/+22 | |
| | | ||||||
* | | Merge branch 'benchmarks' | Tavian Barnes | 2023-10-02 | 5 | -15/+712 | |
|\ \ | ||||||
| * | | bench: Add a README | Tavian Barnes | 2023-10-02 | 1 | -0/+51 | |
| | | | ||||||
| * | | bench: Add benchmarking script | Tavian Barnes | 2023-10-02 | 2 | -0/+494 | |
| | | | ||||||
| * | | bench: New script to clone a git repo without file contents | Tavian Barnes | 2023-09-30 | 1 | -0/+143 | |
| | | | ||||||
| * | | tests/xtouch: Try creating the immediate parent first | Tavian Barnes | 2023-09-29 | 1 | -15/+24 | |
| |/ | ||||||
* / | tests: Don't cd into paths longer than PATH_MAX | Tavian Barnes | 2023-10-02 | 1 | -12/+8 | |
|/ | | | | | | This fixes a warning on at least Alpine Linux that looks like cd: error retrieving current directory: getcwd: cannot access parent directories: Filename too long | |||||
* | Formatting fixes | Tavian Barnes | 2023-09-27 | 25 | -106/+100 | |
| | ||||||
* | bit: Fix UINTPTR_WIDTH typo | Tavian Barnes | 2023-09-26 | 1 | -1/+1 | |
| | ||||||
* | bit: Use predefined __*_WIDTH__ macros if we can | Tavian Barnes | 2023-09-26 | 1 | -24/+69 | |
| | ||||||
* | dstring: New dchar typedef for dynamic strings | Tavian Barnes | 2023-09-26 | 11 | -64/+85 | |
| | ||||||
* | ci/freebsd: Switch to Tailscale OAuth | Tavian Barnes | 2023-09-25 | 1 | -1/+3 | |
| | ||||||
* | Use the new list macros | Tavian Barnes | 2023-09-25 | 6 | -28/+24 | |
| | ||||||
* | list: New for_[s]list() macros | Tavian Barnes | 2023-09-25 | 1 | -2/+60 | |
| | ||||||
* | list: Unify formatting | Tavian Barnes | 2023-09-25 | 1 | -16/+32 | |
| | ||||||
* | list: New [S]LIST_EMPTY() macros | Tavian Barnes | 2023-09-25 | 1 | -0/+18 | |
| | ||||||
* | list: New [S]LIST_ITEM_INIT() macros | Tavian Barnes | 2023-09-25 | 1 | -22/+52 | |
| | ||||||
* | list: Use (void)(...) rather than do { ... } while (0) | Tavian Barnes | 2023-09-25 | 1 | -31/+30 | |
| | | | | This makes everything usable in expression contexts. | |||||
* | README: Add Guix and OpenBSD packages | Tavian Barnes | 2023-09-14 | 1 | -8/+39 | |
| | ||||||
* | bftw: Share the bftw_state between iterations of ids/eds | Tavian Barnes | 2023-09-13 | 1 | -72/+71 | |
| | ||||||
* | parse: Give more ephemeral_fds to -no{user,group} | Tavian Barnes | 2023-09-12 | 1 | -7/+9 | |
| | | | | | | | | Fewer than 3 can lead to Assertion failed: (retval->write_queue != -1), function __open_cached_connection, file /usr/src/lib/libc/net/nscachedcli.c, line 224. on a FreeBSD system with LDAP accounts. | |||||
* | Release 3.0.23.0.2 | Tavian Barnes | 2023-09-06 | 3 | -2/+20 | |
| | ||||||
* | bfstd: Work around a FreeBSD-specific msan issue | Tavian Barnes | 2023-09-06 | 1 | -4/+23 | |
| | | | | Link: https://github.com/llvm/llvm-project/issues/65532 | |||||
* | bfstd: Skip a whole loop in dollar_quote() if possible | Tavian Barnes | 2023-09-06 | 1 | -2/+1 | |
| | ||||||
* | bfstd: Fix printable_len() off-by-one | Tavian Barnes | 2023-09-06 | 2 | -2/+17 | |
| | | | | | | | If xmbrtowc() fails, or if xiswprint() is false, then we shouldn't include that wide char in the printable length. Fixes: 19c96abe0a1ee56cf206fd5e87defb1fd3e0daa5 | |||||
* | bfstd: Fix an OOB string index in xmbrtowc() | Tavian Barnes | 2023-09-06 | 3 | -6/+24 | |
| | | | | | | | | | | | | | | | | | | | | | | This bug could be reproduced with something like $ bfs -samefile $'\xFA\xFA' bfs: error: bfs: dstrnescat@src/dstring.c:252: wordesc() result truncated or worse, with -DNDEBUG, $ bfs -samefile $'.....................\xFA\xFA' bfs: error: bfs -samefile $'.....................\xFA\xFA\x00\x55\x53\x45\x52\x3D\x74\x61\x76\x69\x61\x6E\x61\x74\x6F\x72 bfs: error: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bfs: error: No such file or directory. which prints the memory after the end of the string (in this case, the environment variable USER=tavianator). The bug was caused by the line `*i += len`, which was intended to be `*i = len`. But actually, the right behaviour seems to be `*i += 1`. Fixes: 19c96abe0a1ee56cf206fd5e87defb1fd3e0daa5 | |||||
* | bftw: Enforce the dirlimit strictly | Tavian Barnes | 2023-09-06 | 1 | -19/+17 | |
| | | | | | | The previous accounting didn't fully control the number of allocated bfs_dirs, as the dirlimit was incremented once we popped the directory, not when we freed it. |