Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Source / Include Folder (#88) | トトも | 2022-04-16 | 1 | -510/+0 |
| | | | Moved Source Files Into `src` Folder | ||||
* | util: New xstrwidth() function | Tavian Barnes | 2022-03-26 | 1 | -0/+36 |
| | |||||
* | Don't shadow standard headers | Tavian Barnes | 2022-03-12 | 1 | -1/+1 |
| | | | | | | | | | | | | | @italic on the AUR stated that bfs from the AUR fails to build on Manjaro. From the build log, it seems like <time.h> doesn't get included properly. I assume it's picking up ./time.h instead. I couldn't reproduce the build issue in the default configuration, but it does fail with EXTRA_CFLAGS="-I." which isn't good. So rename everything with an x prefix to stop clashing. Link: https://aur.archlinux.org/packages/bfs#comment-856102 Link: https://paste.rs/eqR | ||||
* | regex: Rework error handling | Tavian Barnes | 2022-02-24 | 1 | -6/+5 |
| | |||||
* | regex: Wrap the POSIX API in a facade | Tavian Barnes | 2022-02-21 | 1 | -12/+12 |
| | |||||
* | regex: Add support for emacs and grep types | Tavian Barnes | 2022-02-04 | 1 | -10/+1 |
| | |||||
* | Standardize WITH_* make variables for configuring dependencies | Tavian Barnes | 2022-01-29 | 1 | -1/+1 |
| | |||||
* | Simplifying | data-man | 2022-01-24 | 1 | -6/+1 |
| | |||||
* | Using Oniguruma library (optionally) | data-man | 2022-01-24 | 1 | -1/+6 |
| | |||||
* | util: New close() wrappers to check for EBADF and preserve errno | Tavian Barnes | 2022-01-18 | 1 | -9/+19 |
| | |||||
* | Add some missing (void)'s | Tavian Barnes | 2022-01-18 | 1 | -1/+1 |
| | |||||
* | Don't truncate files until we know they're not duplicates | Tavian Barnes | 2021-09-26 | 1 | -0/+1 |
| | |||||
* | util: New xfopen() utility | Tavian Barnes | 2021-09-21 | 1 | -0/+45 |
| | | | | | And use it to pass O_CLOEXEC to all FILE*'s, so the files opened for -fprint etc. don't get passed to the programs run by -exec etc. | ||||
* | util: Wrap getdelim() instead of open coding it | Tavian Barnes | 2021-09-15 | 1 | -27/+20 |
| | |||||
* | util: New xconfstr() wrapper | Tavian Barnes | 2021-06-13 | 1 | -0/+19 |
| | |||||
* | util: Tweak the safe read/write functions | Tavian Barnes | 2021-04-15 | 1 | -40/+31 |
| | |||||
* | util: add safe_read_all() and safe_write_all() functions. | Markus F.X.J. Oberhumer | 2021-04-15 | 1 | -0/+35 |
| | |||||
* | util: introduce safe versions of read & write that handle interrupted | Markus F.X.J. Oberhumer | 2021-04-15 | 1 | -0/+20 |
| | | | | systems calls. | ||||
* | util: Fix build on GNU Hurd | Tavian Barnes | 2021-03-21 | 1 | -1/+1 |
| | | | | | | | Hurd apparently #defines BSD, but doesn't profide strtofflags. So make all that code conditional on !__GNU__. Link: https://buildd.debian.org/status/fetch.php?pkg=bfs&arch=hurd-i386&ver=2.2-1&stamp=1615370700&raw=0 | ||||
* | Support -flags on all the BSDs | Tavian Barnes | 2021-03-06 | 1 | -0/+30 |
| | |||||
* | Update copyright dates | Tavian Barnes | 2021-02-05 | 1 | -1/+1 |
| | |||||
* | dir: New DIR* facade | Tavian Barnes | 2021-01-28 | 1 | -18/+0 |
| | |||||
* | util: Use fgetc(stdin) instead of getchar() | Tavian Barnes | 2020-11-30 | 1 | -1/+1 |
| | | | | | On FreeBSD the getchar() macro leads to (spurious?) msan uninitialized value errors. Call the fgetc() library function to work around it. | ||||
* | Include what I use | Tavian Barnes | 2020-11-12 | 1 | -1/+1 |
| | | | | Thanks to https://github.com/include-what-you-use/include-what-you-use | ||||
* | Enable -Wsign-compare to catch bugs like 726d7801 | Tavian Barnes | 2020-11-04 | 1 | -1/+1 |
| | |||||
* | util: Move redirect() and isopen() to main.c | Tavian Barnes | 2020-10-01 | 1 | -28/+0 |
| | |||||
* | util: Don't rely on bftw | Tavian Barnes | 2020-09-30 | 1 | -37/+36 |
| | | | | And rename format_mode() to xstrmode() while I'm at it. | ||||
* | util: Make the initial allocation bigger for xreadlinkat() | Tavian Barnes | 2020-09-18 | 1 | -1/+6 |
| | | | | | | | | | Most symlinks are more than 1 character long, so rather than wasting time with 1, 2, 4, ... when we don't have a good guess for the length, start with a bigger one. Credit to https://twitter.com/RichFelker/status/1306321019108556806 for reminding me of this. | ||||
* | bftw: Rename bftw_typeflag to bftw_type, and make it not a bitmask | Tavian Barnes | 2020-07-29 | 1 | -1/+1 |
| | |||||
* | time: Split out time-related functions from util | Tavian Barnes | 2020-02-13 | 1 | -86/+0 |
| | |||||
* | parse: Handle 1969-12-31T23:59:59Z | Tavian Barnes | 2020-02-13 | 1 | -3/+24 |
| | | | | | mktime() returns -1 on error, but also for one second before the epoch. Compare the input against localtime(-1) to distinguish those cases. | ||||
* | Implement explicit reference times (-newerXt) | Tavian Barnes | 2020-02-11 | 1 | -0/+54 |
| | |||||
* | Update copyright dates | Tavian Barnes | 2020-01-07 | 1 | -1/+1 |
| | |||||
* | util: Support ports and whiteouts in format_mode() | Tavian Barnes | 2020-01-07 | 1 | -3/+13 |
| | |||||
* | util: Filter out . and .. in xreaddir() | Tavian Barnes | 2019-06-25 | 1 | -6/+14 |
| | |||||
* | Turn on -Wstrict-prototypes | Tavian Barnes | 2019-02-06 | 1 | -1/+1 |
| | |||||
* | main: Fix closed standard stream handling | Tavian Barnes | 2019-02-01 | 1 | -7/+3 |
| | | | | | bfs >&- should complain about a missing file descriptor, rather than silently succeeding. | ||||
* | posix1e: Split out ACL and capability handling from util | Tavian Barnes | 2019-01-02 | 1 | -168/+0 |
| | |||||
* | util: Don't leak an acl_t on non-POSIX.1e platforms | Tavian Barnes | 2018-12-19 | 1 | -1/+2 |
| | |||||
* | util: Support systems that don't define the POSIX.1e ACL tag values | Tavian Barnes | 2018-12-18 | 1 | -0/+4 |
| | |||||
* | Implement -acl test | Tavian Barnes | 2018-12-17 | 1 | -1/+71 |
| | |||||
* | color: Support coloring files with capabilities | Tavian Barnes | 2018-12-17 | 1 | -0/+93 |
| | |||||
* | bftw: Move bftw_typeflag conversion out of util | Tavian Barnes | 2018-12-17 | 1 | -98/+1 |
| | | | | Turns out incomplete enum types are a GNU C extension. | ||||
* | Check for <sys/param.h> before including it | Tavian Barnes | 2018-11-08 | 1 | -3/+7 |
| | | | | Fixes #38. | ||||
* | util: Provide fallback implementations of makedev()/major()/minor() | Tavian Barnes | 2018-11-02 | 1 | -0/+14 |
| | |||||
* | util: Wrap __has_include() | Tavian Barnes | 2018-11-01 | 1 | -1/+1 |
| | |||||
* | Print device major/minor numbers for -ls | Tavian Barnes | 2018-11-01 | 1 | -0/+16 |
| | |||||
* | Update copyright dates | Tavian Barnes | 2018-09-24 | 1 | -1/+1 |
| | |||||
* | util: Preserve errno in pipe_cloexec() | Tavian Barnes | 2018-07-24 | 1 | -0/+2 |
| | |||||
* | util: macOS doesn't have pipe2() | Tavian Barnes | 2018-07-24 | 1 | -1/+2 |
| | | | | | | | The code was testing for BSD, since all the normal BSDs have it. But until recently, <sys/param.h> wasn't included, so BSD was undefined even on platforms that define it. Now that it is defined appropriately, exclude macOS specifically. |