PostgreSQL Source Code  git master
pgtar.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * pgtar.h
4  * Functions for manipulating tarfile datastructures (src/port/tar.c)
5  *
6  *
7  * Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * src/include/pgtar.h
11  *
12  *-------------------------------------------------------------------------
13  */
14 
16 {
17  TAR_OK = 0,
20 };
21 
22 extern enum tarError tarCreateHeader(char *h, const char *filename, const char *linktarget,
23  pgoff_t size, mode_t mode, uid_t uid, gid_t gid, time_t mtime);
24 extern uint64 read_tar_number(const char *s, int len);
25 extern void print_tar_number(char *s, int len, uint64 val);
26 extern int tarChecksum(char *header);
uint64 read_tar_number(const char *s, int len)
Definition: tar.c:56
Definition: pgtar.h:17
#define pgoff_t
Definition: win32_port.h:206
tarError
Definition: pgtar.h:15
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: tar.c:112
int tarChecksum(char *header)
Definition: tar.c:88
void print_tar_number(char *s, int len, uint64 val)
Definition: tar.c:20
int uid_t
Definition: win32_port.h:241
static void header(const char *fmt,...) pg_attribute_printf(1
Definition: pg_regress.c:208
static char * filename
Definition: pg_dumpall.c:90
int gid_t
Definition: win32_port.h:242
long val
Definition: informix.c:689