summaryrefslogtreecommitdiffstats
path: root/src/mtab.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename config.h to prelude.hTavian Barnes2024-04-191-1/+1
|
* mtab: Arena-allocate struct bfs_mountTavian Barnes2024-04-171-15/+28
|
* mtab: Take the basename directly in bfs_might_be_mount()Tavian Barnes2024-02-051-2/+1
| | | | This avoids some hot xbaseoff() calls.
* config: New variadic attr(...) macroTavian Barnes2023-12-181-1/+1
|
* mtab: Switch from darray to RESERVE()Tavian Barnes2023-11-231-23/+23
|
* config: New attr_maybe_unused macroTavian Barnes2023-11-151-1/+2
|
* Unify macro naming conventionsTavian Barnes2023-06-241-14/+14
| | | | | In particular, macros that decide whether to use a particular API/ dependency should be spelled BFS_USE_*, and should be configurable.
* alloc: New header for memory allocation utilitiesTavian Barnes2023-06-201-3/+2
|
* 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.
* style: Don't use tabs to indent preprocessor directivesTavian Barnes2023-05-031-10/+10
|
* mtab: Explicitly initialize parent_retTavian Barnes2023-01-311-1/+1
|
* 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/
* mtab: Flags are separated with | not ,Tavian Barnes2023-01-251-1/+1
|
* mtab: Keep parent dirs open during fill_types()Tavian Barnes2023-01-251-27/+56
|
* mtab: Always fill in the root fstypeTavian Barnes2023-01-251-1/+1
| | | | Fixes: 869e4010433c8610ba59f9a6a310df8be228d718
* mtab: Mitigate the race between bfs_mtab_parse() and bfs_mtab_fill_types()Tavian Barnes2023-01-221-2/+35
| | | | Fixes #97.
* bfstd: New wrappers for dirname()/basename()Tavian Barnes2023-01-191-2/+3
|
* bfstd: Rename from util and reorganize itTavian Barnes2022-11-061-1/+1
|
* config: Split out some of util.h into a new headerTavian Barnes2022-11-061-4/+1
|
* util: Get rid of BFS_HAS_INCLUDE() wrapper for __has_include()Tavian Barnes2022-11-061-2/+2
| | | | | | | | | Since __has_include() needs special preprocessing rules (e.g. not expanding `linux` in `__has_include(<linux/stat.h>)`, macros that expand to __has_include() do not necessarily behave correctly. Instead, we have to directly test `#if __has_include(...)`. See https://bugs.llvm.org/show_bug.cgi?id=37990 for more details.
* Source / Include Folder (#88)トトも2022-04-161-0/+246
Moved Source Files Into `src` Folder