Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-02-21 | regex: Wrap the POSIX API in a facade | Tavian Barnes | |
2022-02-04 | regex: Add support for emacs and grep types | Tavian Barnes | |
2022-01-29 | Standardize WITH_* make variables for configuring dependencies | Tavian Barnes | |
2022-01-24 | Simplifying | data-man | |
2022-01-24 | Using Oniguruma library (optionally) | data-man | |
2022-01-18 | util: New close() wrappers to check for EBADF and preserve errno | Tavian Barnes | |
2022-01-18 | Add some missing (void)'s | Tavian Barnes | |
2021-09-26 | Don't truncate files until we know they're not duplicates | Tavian Barnes | |
2021-09-21 | util: New xfopen() utility | Tavian Barnes | |
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. | |||
2021-09-15 | util: Wrap getdelim() instead of open coding it | Tavian Barnes | |
2021-06-13 | util: New xconfstr() wrapper | Tavian Barnes | |
2021-04-15 | util: Tweak the safe read/write functions | Tavian Barnes | |
2021-04-15 | util: add safe_read_all() and safe_write_all() functions. | Markus F.X.J. Oberhumer | |
2021-04-15 | util: introduce safe versions of read & write that handle interrupted | Markus F.X.J. Oberhumer | |
systems calls. | |||
2021-03-21 | util: Fix build on GNU Hurd | Tavian Barnes | |
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 | |||
2021-03-06 | Support -flags on all the BSDs | Tavian Barnes | |
2021-02-05 | Update copyright dates | Tavian Barnes | |
2021-01-28 | dir: New DIR* facade | Tavian Barnes | |
2020-11-30 | util: Use fgetc(stdin) instead of getchar() | Tavian Barnes | |
On FreeBSD the getchar() macro leads to (spurious?) msan uninitialized value errors. Call the fgetc() library function to work around it. | |||
2020-11-12 | Include what I use | Tavian Barnes | |
Thanks to https://github.com/include-what-you-use/include-what-you-use | |||
2020-11-04 | Enable -Wsign-compare to catch bugs like 726d7801 | Tavian Barnes | |
2020-10-01 | util: Move redirect() and isopen() to main.c | Tavian Barnes | |
2020-09-30 | util: Don't rely on bftw | Tavian Barnes | |
And rename format_mode() to xstrmode() while I'm at it. | |||
2020-09-18 | util: Make the initial allocation bigger for xreadlinkat() | Tavian Barnes | |
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. | |||
2020-07-29 | bftw: Rename bftw_typeflag to bftw_type, and make it not a bitmask | Tavian Barnes | |
2020-02-13 | time: Split out time-related functions from util | Tavian Barnes | |
2020-02-13 | parse: Handle 1969-12-31T23:59:59Z | Tavian Barnes | |
mktime() returns -1 on error, but also for one second before the epoch. Compare the input against localtime(-1) to distinguish those cases. | |||
2020-02-11 | Implement explicit reference times (-newerXt) | Tavian Barnes | |
2020-01-07 | Update copyright dates | Tavian Barnes | |
2020-01-07 | util: Support ports and whiteouts in format_mode() | Tavian Barnes | |
2019-06-25 | util: Filter out . and .. in xreaddir() | Tavian Barnes | |
2019-02-06 | Turn on -Wstrict-prototypes | Tavian Barnes | |
2019-02-01 | main: Fix closed standard stream handling | Tavian Barnes | |
bfs >&- should complain about a missing file descriptor, rather than silently succeeding. | |||
2019-01-02 | posix1e: Split out ACL and capability handling from util | Tavian Barnes | |
2018-12-19 | util: Don't leak an acl_t on non-POSIX.1e platforms | Tavian Barnes | |
2018-12-18 | util: Support systems that don't define the POSIX.1e ACL tag values | Tavian Barnes | |
2018-12-17 | Implement -acl test | Tavian Barnes | |
2018-12-17 | color: Support coloring files with capabilities | Tavian Barnes | |
2018-12-17 | bftw: Move bftw_typeflag conversion out of util | Tavian Barnes | |
Turns out incomplete enum types are a GNU C extension. | |||
2018-11-08 | Check for <sys/param.h> before including it | Tavian Barnes | |
Fixes #38. | |||
2018-11-02 | util: Provide fallback implementations of makedev()/major()/minor() | Tavian Barnes | |
2018-11-01 | util: Wrap __has_include() | Tavian Barnes | |
2018-11-01 | Print device major/minor numbers for -ls | Tavian Barnes | |
2018-09-24 | Update copyright dates | Tavian Barnes | |
2018-07-24 | util: Preserve errno in pipe_cloexec() | Tavian Barnes | |
2018-07-24 | util: macOS doesn't have pipe2() | Tavian Barnes | |
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. | |||
2018-01-08 | stat: New wrapper around the stat() family | Tavian Barnes | |
This lets bfs transparently support the new statx() system call on Linux, giving it access to file birth times. | |||
2017-11-12 | exec: Recover from E2BIG | Tavian Barnes | |
2017-09-20 | util: Wrap faccessat() to fix some portability issues | Tavian Barnes | |
2017-09-06 | util: Factor out checks for nonexistent paths/broken links | Tavian Barnes | |