Assorted cleanup of tar-related code.

Robert Haas <rhaas@postgresql.org>

Commit: 2961c9711c17e5fe05fb1fbd72c3e47f3b601ee4
Author: Robert Haas <rhaas@postgresql.org>
Date: 2020-06-15T19:28:49Z
Releases: 14.0
Assorted cleanup of tar-related code.

Introduce TAR_BLOCK_SIZE and replace many instances of 512 with
the new constant. Introduce function tarPaddingBytesRequired
and use it to replace numerous repetitions of (x + 511) & ~511.

Add preprocessor guards against multiple inclusion to pgtar.h.

Reformat the prototype for tarCreateHeader so it doesn't extend
beyond 80 characters.

Discussion: http://postgr.es/m/CA+TgmobWbfReO9-XFk8urR1K4wTNwqoHx_v56t7=T8KaiEoKNw@mail.gmail.com

Files

Discussion