diff options
author | Magnus Hagander <magnus@hagander.net> | 2013-01-01 18:15:57 +0100 |
---|---|---|
committer | Magnus Hagander <magnus@hagander.net> | 2013-01-01 18:15:57 +0100 |
commit | f5d4bdd3a5c1b7987a257b2a64e977501338af0d (patch) | |
tree | 2e0528df81881a91c687ac1551cd3a3883b47890 /src/include | |
parent | a266f7dd93bcac8d8543df46efa2968226ddc81f (diff) | |
download | postgresql-f5d4bdd3a5c1b7987a257b2a64e977501338af0d.tar.gz postgresql-f5d4bdd3a5c1b7987a257b2a64e977501338af0d.zip |
Unify some tar functionality across different parts
Move some of the tar functionality that existed mostly duplicated
in both pg_dump and the walsender basebackup functionality into
port/tar.c instead, so it can be used from both. It will also be
used by pg_basebackup in the future, which would've caused a third
copy of it around.
Zoltan Boszormenyi and Magnus Hagander
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/port.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/port.h b/src/include/port.h index c429c77cd6d..3126ce89fef 100644 --- a/src/include/port.h +++ b/src/include/port.h @@ -465,4 +465,8 @@ extern int pg_check_dir(const char *dir); /* port/pgmkdirp.c */ extern int pg_mkdir_p(char *path, int omode); +/* port/tar.c */ +void tarCreateHeader(char *h, const char *filename, const char *linktarget, size_t size, mode_t mode, uid_t uid, gid_t gid, time_t mtime); +int tarChecksum(char *header); + #endif /* PG_PORT_H */ |