summaryrefslogtreecommitdiffstats
path: root/src/exec.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename config.h to prelude.hTavian Barnes2024-04-191-1/+1
|
* config: s/attr_format/attr_printf/Tavian Barnes2023-12-181-1/+1
|
* config: New variadic attr(...) macroTavian Barnes2023-12-181-1/+1
|
* exec: Use the new REALLOC_ARRAY() macroTavian Barnes2023-11-231-1/+1
|
* xspawn: API tweaksTavian Barnes2023-11-151-4/+2
|
* exec: Don't do setrlimit() in the parentTavian Barnes2023-11-101-22/+4
| | | | | | | | | This was hacky, but it's also broken because it can make posix_spawn() fail with EMFILE, as happens on at least musl. Fixes: 7d69fef6a0b80ad57acde7bac8a22b83531fec0d Link: https://www.austingroupbugs.net/view.php?id=603 Link: https://sourceware.org/bugzilla/show_bug.cgi?id=31049
* config: s/BFS_FORMATTER/attr_format/Tavian Barnes2023-11-091-1/+1
|
* exec: Try harder to use posix_spawn()Tavian Barnes2023-11-061-5/+26
|
* xspawn: Wrap the real posix_spawn() if possibleTavian Barnes2023-11-061-1/+1
| | | | Fixes #47.
* ctx: Store the original and current RLIMIT_NOFILETavian Barnes2023-11-061-14/+12
|
* bfstd: New xwaitpid() wrapperTavian Barnes2023-10-311-1/+1
|
* Formatting fixesTavian Barnes2023-09-271-8/+8
|
* dstring: New dchar typedef for dynamic stringsTavian Barnes2023-09-261-2/+2
|
* alloc: New header for memory allocation utilitiesTavian Barnes2023-06-201-18/+8
|
* Switch from assert() to bfs_assert()/bfs_verify()Tavian Barnes2023-05-181-4/+3
|
* config: Provide <stdalign.h> and <stdbool.h>Tavian Barnes2023-05-111-1/+0
| | | | In anticipation of C23, since those headers won't be necessary any more.
* Replace license boilerplate with SPDX tagsTavian Barnes2023-01-251-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: New wrappers for dirname()/basename()Tavian Barnes2023-01-191-1/+1
|
* exec: Fix index overflow parsing -exec +Tavian Barnes2022-11-111-1/+1
|
* Revert "exec: Don't flush if the user says no to -ok"Tavian Barnes2022-11-101-3/+3
| | | | | | | | | | | From the bfs_ctx_flush() implementation: // Before executing anything, flush all open streams. This ensures that // - the user sees everything relevant before an -ok[dir] prompt But that only works if we call it before the prompt. This reverts commit 21344dfb72f9b65b366ca5f754f1bc35f52da3c7.
* Fix includesTavian Barnes2022-11-061-0/+1
|
* bfstd: Rename from util and reorganize itTavian Barnes2022-11-061-1/+1
|
* Source / Include Folder (#88)トトも2022-04-161-0/+715
Moved Source Files Into `src` Folder