PostgreSQL Source Code
git master
|
Go to the source code of this file.
Macros | |
#define | TAR_BLOCK_SIZE 512 |
Enumerations | |
enum | tarError { TAR_OK = 0 , TAR_NAME_TOO_LONG , TAR_SYMLINK_TOO_LONG } |
enum | tarHeaderOffset { TAR_OFFSET_NAME = 0 , TAR_OFFSET_MODE = 100 , TAR_OFFSET_UID = 108 , TAR_OFFSET_GID = 116 , TAR_OFFSET_SIZE = 124 , TAR_OFFSET_MTIME = 136 , TAR_OFFSET_CHECKSUM = 148 , TAR_OFFSET_TYPEFLAG = 156 , TAR_OFFSET_LINKNAME = 157 , TAR_OFFSET_MAGIC = 257 , TAR_OFFSET_VERSION = 263 , TAR_OFFSET_UNAME = 265 , TAR_OFFSET_GNAME = 297 , TAR_OFFSET_DEVMAJOR = 329 , TAR_OFFSET_DEVMINOR = 337 , TAR_OFFSET_PREFIX = 345 } |
enum | tarFileType { TAR_FILETYPE_PLAIN = '0' , TAR_FILETYPE_SYMLINK = '2' , TAR_FILETYPE_DIRECTORY = '5' } |
Functions | |
enum tarError | tarCreateHeader (char *h, const char *filename, const char *linktarget, pgoff_t size, mode_t mode, uid_t uid, gid_t gid, time_t mtime) |
uint64 | read_tar_number (const char *s, int len) |
void | print_tar_number (char *s, int len, uint64 val) |
int | tarChecksum (char *header) |
static size_t | tarPaddingBytesRequired (size_t len) |
enum tarError |
enum tarFileType |
enum tarHeaderOffset |
Definition at line 37 of file pgtar.h.
void print_tar_number | ( | char * | s, |
int | len, | ||
uint64 | val | ||
) |
uint64 read_tar_number | ( | const char * | s, |
int | len | ||
) |
Definition at line 58 of file tar.c.
References len.
Referenced by _tarGetHeader(), astreamer_tar_header(), and isValidTarHeader().
int tarChecksum | ( | char * | header | ) |
Definition at line 90 of file tar.c.
References i.
Referenced by _tarGetHeader(), isValidTarHeader(), and tar_close().
enum tarError tarCreateHeader | ( | char * | h, |
const char * | filename, | ||
const char * | linktarget, | ||
pgoff_t | size, | ||
mode_t | mode, | ||
uid_t | uid, | ||
gid_t | gid, | ||
time_t | mtime | ||
) |
Definition at line 90 of file tar.c.
Referenced by _tarWriteHeader(), astreamer_tar_archiver_content(), and tar_open_for_write().
|
inlinestatic |
Definition at line 79 of file pgtar.h.
References len, TAR_BLOCK_SIZE, and TYPEALIGN.
Referenced by _tarAddFile(), _tarPositionTo(), _tarWritePadding(), astreamer_tar_archiver_content(), astreamer_tar_header(), sendDir(), and tar_close().