PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
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);
int gid_t
Definition: win32.h:251
int uid_t
Definition: win32.h:250
uint64 read_tar_number(const char *s, int len)
Definition: tar.c:56
Definition: pgtar.h:17
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
#define pgoff_t
Definition: win32.h:231
int tarChecksum(char *header)
Definition: tar.c:88
void print_tar_number(char *s, int len, uint64 val)
Definition: tar.c:20
static void header(const char *fmt,...) pg_attribute_printf(1
Definition: pg_regress.c:207
static char * filename
Definition: pg_dumpall.c:90
long val
Definition: informix.c:689