table for the hardlink cache. This dramatically improves performance when archiving millions of hardlinked files. While I'm here, clean up some style bugs (per Bruce Evans) and clarify some comments.
a stack-allocated buffer for safe_fprintf formatting. Only if the result is too large do we resort to malloc.