- Fix numerous style violations.
- Modernize somewhat.
- Don't bother examining errno after calling get_inode(), as it always exits on error.
- Fix confusing wording in the manual page.
The code remains somewhat idiosyncratic, e.g. in its insistance on
counting down rather than up in simple for loops, but in the absence
of comprehensive automated tests, the risk of introducing bugs exceeds
the benefit of rewriting these into more idiomatic forms.