summaryrefslogtreecommitdiffstats
path: root/util.h
AgeCommit message (Collapse)Author
2020-01-09Release 1.5.21.5.2Tavian Barnes
2020-01-08fsade: Support checking for xattrs (extattrs) on FreeBSDTavian Barnes
2019-05-24Implement -xattr predicateTavian Barnes
2019-02-09Add some documentation commentsTavian Barnes
2019-02-01util: Remove some unused macrosTavian Barnes
2019-02-01util: Allow configuration macros to be specified with -DTavian Barnes
In case we need to override them at build time.
2019-01-31stat: Work around msan not knowing about statx()Tavian Barnes
2019-01-03posix1e: Don't #include <sys/capability.h> on FreeBSDTavian Barnes
The file is there by default, but deprecated and not a POSIX.1E implementation. While I'm at it, move the logic to posix1e.h so other files aren't burdened with an extra include. Fixes the other half of #40.
2019-01-02posix1e: Split out ACL and capability handling from utilTavian Barnes
2019-01-02color: Check format strings + args for cfprintf()Tavian Barnes
%{cc} is now ${cc} to avoid warnings about an unrecognized format specifier, and %P and %L are now %pP and %pL to make them look more like standard format strings.
2018-12-17Implement -acl testTavian Barnes
2018-12-17color: Support coloring files with capabilitiesTavian Barnes
2018-12-17bftw: Move bftw_typeflag conversion out of utilTavian Barnes
Turns out incomplete enum types are a GNU C extension.
2018-11-08Check for <sys/param.h> before including itTavian Barnes
Fixes #38.
2018-11-01util: Wrap __has_include()Tavian Barnes
2018-11-01Print device major/minor numbers for -lsTavian Barnes
2018-09-24Update copyright datesTavian Barnes
2018-01-08stat: New wrapper around the stat() familyTavian Barnes
This lets bfs transparently support the new statx() system call on Linux, giving it access to file birth times.
2017-11-12exec: Recover from E2BIGTavian Barnes
2017-11-05Add support for file birth/creation times on platforms that have itTavian Barnes
Fixes #19
2017-09-20util: Wrap faccessat() to fix some portability issuesTavian Barnes
2017-09-06util: Factor out checks for nonexistent paths/broken linksTavian Barnes
2017-08-22Avoid multiple extra stat()s of broken symlinks for -xtypeTavian Barnes
2017-08-12Unify broken symlink handlingTavian Barnes
Rather than open-code the fallback logic for broken symlinks everywhere it's needed, introduce a new xfstatat() utility function that performs the fallback automatically. Using xfstatat() consistently fixes a few bugs, including cases where broken symlinks are given as arguments to predicates like -samefile.
2017-07-29util: Define O_DIRECTORY to 0 if it's not already definedTavian Barnes
2017-07-27Re-license under the BSD Zero Clause LicenseTavian Barnes
2017-07-15Handle yes/no prompts correctly according to the localeTavian Barnes
2017-04-24Release 1.01.0Tavian Barnes
2017-04-13util.h: Don't use a forward reference to enum bftw_typeflagTavian Barnes
Apparently that's not allowed in standard C.
2017-04-08Move bftw_typeflag converters to util.cTavian Barnes
2017-03-16Color link targets for -lsTavian Barnes
Fixes #18.
2017-03-11Implement -ls and -flsTavian Barnes
2017-01-31Don't trust st_size when reading symlinksTavian Barnes
Linux /proc, for example, reports a st_size of 0 for everything. It's nice to be able to use -lname on them anyway.
2016-12-18Implement -regex, -iregex, and -regextype/-ETavian Barnes
2016-12-16Fix the build on OpenIndianaTavian Barnes
2016-12-04Move portability code into util.hTavian Barnes
2016-11-14Check for readdir() errors everywhere.Tavian Barnes
2016-11-13Redirect stdin from /dev/null for -ok and -okdir.Tavian Barnes