summaryrefslogtreecommitdiffstats
path: root/printf.c
AgeCommit message (Collapse)Author
2019-05-05bftw: Pass a const struct BFTW * to the callbackTavian Barnes
2019-05-04bftw: Add a caching stat() API to struct BFTWTavian Barnes
2019-05-04stat: Unify the flags argumentsTavian Barnes
2019-04-15Release 1.41.4Tavian Barnes
2019-03-06bftw: Work around d_type being wrong for bind mounts on LinuxTavian Barnes
C.f. https://savannah.gnu.org/bugs/?54913 C.f. https://lkml.org/lkml/2019/2/11/2027 Fixes https://github.com/tavianator/bfs/issues/37
2019-02-06Turn on -Wstrict-prototypesTavian Barnes
2019-01-02diag: Unify diagnostic formattingTavian Barnes
This adds a bfs: prefix to error/warning messages for consistency with other command line tools, and leaves only the "error:"/"warning:" part colored like GCC. It also uniformly adds full stops after messages.
2018-12-20stat: Unify bfs_stat_time() implementationsTavian Barnes
2018-12-17bftw: Move bftw_typeflag conversion out of utilTavian Barnes
Turns out incomplete enum types are a GNU C extension.
2018-09-24Update copyright datesTavian Barnes
2018-08-16Add some missing fallthrough commentsTavian Barnes
2018-07-24printf: Support all standard strftime() directivesTavian Barnes
2018-07-24printf: Support %B, GNU find's undocumented birth time specifierTavian Barnes
2018-07-24stat: Don't assume blocks are 512 bytesTavian Barnes
POSIX says > The unit for the st_blocks member of the stat structure is not defined > within POSIX.1‐2008. and recommends using DEV_BSIZE from <sys/param.h> if available. Also, for -printf '%S', print 1 instead of NaN for empty files with no blocks.
2018-07-20printf: Output ? for errors in %YTavian Barnes
2018-01-20printf: Add %w and %Wk for file birth timesTavian Barnes
%w and %W were chosen to match the format specifiers for file birth times from stat(1)
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-13color: Implement %m for cfprintf()Tavian Barnes
2017-11-05Add support for file birth/creation times on platforms that have itTavian Barnes
Fixes #19
2017-09-16opt: Separate optimization from parsingTavian Barnes
2017-08-27printf: Save some lines in time specifier parsingTavian Barnes
2017-07-27Re-license under the BSD Zero Clause LicenseTavian Barnes
2017-07-09Handle ENOTDIR the same as ENOENTTavian Barnes
For a/b/c, ENOTDIR is returned instead of ENOENT if a or b are not directories. Handle this uniformly when detecting broken symlinks, readdir races, etc.
2017-06-10printf: Fix embedded nul bytesTavian Barnes
Fixes #26.
2017-04-29Don't parse the mount table until it's neededTavian Barnes
2017-04-23Implement -fstypeTavian Barnes
Fixes #6!
2017-04-08Move bftw_typeflag converters to util.cTavian Barnes
2017-03-11Implement -ls and -flsTavian Barnes
2017-03-11Make a printf()-style API for colored messagesTavian Barnes
2017-03-11Implement -printf %Ak, %Ck, and %TkTavian Barnes
2017-02-09bftw: Make the nameoff of "///" point to "/"Tavian Barnes
This simplifies a few things such as -name handling for ///.
2017-02-08Add support for -x?type with multiple typesTavian Barnes
This functionality is already part of GNU findutils git.
2017-02-07Add some missing perror() callsTavian Barnes
2017-02-06Fix a memory leak parsing -printfTavian Barnes
2017-02-05Implement -printf/-fprintfTavian Barnes
Based on a patch by Fangrui Song <i@maskray.me>. Closes #16.