GNU findutils uses a section of code shared with coreutils' system.h
to implement the -ls action.  This particular section of code deals
with figuring out the number of blocks in a file, and the units of
st_nblocks.

Rather than continue to try to keep these bits of code in sync, I
propose to move the code into a gnulib module.  The stat-macros module
looked to me as if it's the right place, but since that module was
originally trivial, this change adds a couple of previously
nonexistent dependencies.

Apologies if I got anything badly wrong, this is essentially my first
gnulib module.  It's particularly likely for example that I documented
the module in the wrong place.  So, corrections gratefully received.

Jim, I hope you don't mind me listing you as a maintainer, I did so
simply because the code came from coreutils.

Thanks,
James.

Reply via email to