Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bfstd: Add more strto*() wrappers | Tavian Barnes | 2024-12-02 | 1 | -12/+15 |
| | |||||
* | Write @arg instead of @param arg in doc comments | Tavian Barnes | 2024-10-01 | 1 | -55/+55 |
| | |||||
* | build: Move feature test macros to prelude.h | Tavian Barnes | 2024-08-28 | 1 | -2/+0 |
| | | | | | | 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. | ||||
* | prelude: Split bfs-specific utilities into new bfs.h header | Tavian Barnes | 2024-08-28 | 1 | -0/+3 |
| | |||||
* | prelude: Define __SANITIZE_*__ | Tavian Barnes | 2024-08-28 | 1 | -2/+1 |
| | |||||
* | bfstd: New sysoption() macro to check for POSIX option runtime support | Tavian Barnes | 2024-08-09 | 1 | -0/+13 |
| | | | | | | | | | | POSIX allows optional features to be supported at compile time but not necessarily at run time by defining _POSIX_OPTION to 0 and requiring users to check sysconf(_SC_OPTION) > 0. The new sysoption() macro simplifies the check. sighook() and bfs_spawn() now check for conditional runtime support for the relevant POSIX options. | ||||
* | Minor formatting fixes | Tavian Barnes | 2024-06-06 | 1 | -1/+1 |
| | |||||
* | bfstd: New xstrtoll() wrapper | Tavian Barnes | 2024-06-04 | 1 | -0/+17 |
| | |||||
* | bfstd: New helper for open(ctermid()) | Tavian Barnes | 2024-05-25 | 1 | -0/+10 |
| | |||||
* | Stop using %m | Tavian Barnes | 2024-05-20 | 1 | -0/+5 |
| | |||||
* | Work around https://github.com/llvm/llvm-project/issues/88163 | Tavian Barnes | 2024-05-16 | 1 | -0/+5 |
| | |||||
* | config: Check for struct stat::st_{a,c,m,birth}{tim,timespec} | Tavian Barnes | 2024-04-19 | 1 | -5/+15 |
| | |||||
* | Rename config.h to prelude.h | Tavian Barnes | 2024-04-19 | 1 | -1/+1 |
| | |||||
* | bfstd: New asciilen() function | Tavian Barnes | 2024-03-21 | 1 | -0/+15 |
| | |||||
* | ioq: Use the negative errno convention | Tavian Barnes | 2024-01-13 | 1 | -0/+10 |
| | |||||
* | bfstd: New {error,errno}_is_like() functions | Tavian Barnes | 2024-01-13 | 1 | -2/+16 |
| | | | | | | | We used to have is_nonexistence_error() to consistently treat ENOENT and ENOTDIR the same. Recently, we started considering EFAULT the same as ENAMETOOLONG on DragonFly BSD to work around a kernel bug. Unify both of these behind a more generic interface. | ||||
* | bfstd: New xwcwidth() wrapper | Tavian Barnes | 2023-12-16 | 1 | -0/+5 |
| | |||||
* | bfstd: Wrap is[w]{alpha,digit,...}() | Tavian Barnes | 2023-12-09 | 1 | -0/+50 |
| | |||||
* | bfstd: Expose rlim_cmp() | Tavian Barnes | 2023-11-06 | 1 | -0/+7 |
| | |||||
* | bfstd: New xwaitpid() wrapper | Tavian Barnes | 2023-10-31 | 1 | -0/+7 |
| | |||||
* | bfstd: Expose xmbrtowc() and use it in eval_status() | Tavian Barnes | 2023-10-27 | 1 | -1/+18 |
| | |||||
* | bfstd: Add a thread-safe wrapper for strerror() | Tavian Barnes | 2023-10-05 | 1 | -0/+11 |
| | |||||
* | bfstd: Support wordesc() without allocating | Tavian Barnes | 2023-07-13 | 1 | -4/+43 |
| | |||||
* | wordesc: Also escape non-printable chars | Tavian Barnes | 2023-07-06 | 1 | -0/+32 |
| | |||||
* | bfstd: Add a getprogname() wrapper | Tavian Barnes | 2023-06-24 | 1 | -0/+8 |
| | |||||
* | alloc: New header for memory allocation utilities | Tavian Barnes | 2023-06-20 | 1 | -12/+0 |
| | |||||
* | bfstd: New xmemdup() function | Tavian Barnes | 2023-06-20 | 1 | -0/+12 |
| | |||||
* | bfstd: New wordesc() function to shell-escape strings | Tavian Barnes | 2023-06-16 | 1 | -0/+13 |
| | |||||
* | bfstd: Add an aligned_alloc()/posix_memalign() wrapper | Tavian Barnes | 2023-06-14 | 1 | -0/+12 |
| | |||||
* | config: Provide <stdalign.h> and <stdbool.h> | Tavian Barnes | 2023-05-11 | 1 | -1/+1 |
| | | | | In anticipation of C23, since those headers won't be necessary any more. | ||||
* | style: Don't use tabs to indent preprocessor directives | Tavian Barnes | 2023-05-03 | 1 | -16/+16 |
| | |||||
* | bfstd: Fix declaration order to match the right standard headers | Tavian Barnes | 2023-04-07 | 1 | -42/+42 |
| | |||||
* | 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/ | ||||
* | bfstd: Add O_SEARCH/O_EXEC fallbacks | Tavian Barnes | 2023-01-22 | 1 | -0/+16 |
| | |||||
* | bfstd: New wrappers for dirname()/basename() | Tavian Barnes | 2023-01-19 | 1 | -3/+25 |
| | |||||
* | tests/xtouch: Add some missing POSIX touch features | Tavian Barnes | 2022-11-08 | 1 | -0/+9 |
| | |||||
* | Fix includes | Tavian Barnes | 2022-11-06 | 1 | -1/+1 |
| | |||||
* | bfstd: Rename from util and reorganize it | Tavian Barnes | 2022-11-06 | 1 | -0/+234 |