summaryrefslogtreecommitdiffstats
path: root/stat.h
Commit message (Collapse)AuthorAgeFilesLines
* stat: Provide a helper for getting human-readable field namesTavian Barnes2018-12-251-0/+5
| | | | And fix -newerXY if the Y time doesn't exist.
* stat: Unify bfs_stat_time() implementationsTavian Barnes2018-12-201-0/+5
|
* Check for <sys/param.h> before including itTavian Barnes2018-11-081-1/+5
| | | | Fixes #38.
* Print device major/minor numbers for -lsTavian Barnes2018-11-011-4/+7
|
* stat: Don't assume blocks are 512 bytesTavian Barnes2018-07-241-1/+11
| | | | | | | | | | | | 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.
* stat: New wrapper around the stat() familyTavian Barnes2018-01-081-0/+94
This lets bfs transparently support the new statx() system call on Linux, giving it access to file birth times.