]> granicus.if.org Git - postgresql/blob - src/include/pgtar.h
Centralize definition of integer limits.
[postgresql] / src / include / pgtar.h
1 /*-------------------------------------------------------------------------
2  *
3  * pgtar.h
4  *        Functions for manipulating tarfile datastructures (src/port/tar.c)
5  *
6  *
7  * Portions Copyright (c) 1996-2015, 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
15 enum tarError
16 {
17         TAR_OK = 0,
18         TAR_NAME_TOO_LONG,
19         TAR_SYMLINK_TOO_LONG
20 };
21
22 extern enum tarError tarCreateHeader(char *h, const char *filename, const char *linktarget, size_t size, mode_t mode, uid_t uid, gid_t gid, time_t mtime);
23 extern int      tarChecksum(char *header);