summaryrefslogtreecommitdiffstats
path: root/color.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2018-07-24 19:16:27 -0400
committerTavian Barnes <tavianator@tavianator.com>2018-07-24 19:16:27 -0400
commit199063ab53cbae3b3be199ff902f9f2d001d1058 (patch)
treee533572ad08648917322e35a05fd1465f99bae6b /color.h
parent86f0049bff0c8c802bb07fcb52ae468608ec0920 (diff)
downloadbfs-199063ab53cbae3b3be199ff902f9f2d001d1058.tar.xz
stat: Don't assume blocks are 512 bytes
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.
Diffstat (limited to 'color.h')
0 files changed, 0 insertions, 0 deletions