PostgreSQL Source Code git master
|
Go to the source code of this file.
Functions | |
void | print_tar_number (char *s, int len, uint64 val) |
uint64 | read_tar_number (const char *s, int len) |
int | tarChecksum (char *header) |
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) |
void print_tar_number | ( | char * | s, |
int | len, | ||
uint64 | val | ||
) |
Definition at line 22 of file tar.c.
Referenced by tar_close(), and tarCreateHeader().
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(), tar_close(), and tarCreateHeader().
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 114 of file tar.c.
References filename, Min, mode, print_tar_number(), S_ISDIR, size, strlcpy(), TAR_BLOCK_SIZE, TAR_FILETYPE_DIRECTORY, TAR_FILETYPE_PLAIN, TAR_FILETYPE_SYMLINK, TAR_NAME_TOO_LONG, TAR_OFFSET_CHECKSUM, TAR_OFFSET_DEVMAJOR, TAR_OFFSET_DEVMINOR, TAR_OFFSET_GID, TAR_OFFSET_GNAME, TAR_OFFSET_LINKNAME, TAR_OFFSET_MAGIC, TAR_OFFSET_MODE, TAR_OFFSET_MTIME, TAR_OFFSET_NAME, TAR_OFFSET_SIZE, TAR_OFFSET_TYPEFLAG, TAR_OFFSET_UID, TAR_OFFSET_UNAME, TAR_OFFSET_VERSION, TAR_OK, TAR_SYMLINK_TOO_LONG, and tarChecksum().
Referenced by _tarWriteHeader(), astreamer_tar_archiver_content(), and tar_open_for_write().