Coda Distributed File System
archive.h
Go to the documentation of this file.
1/* BLURB gpl
2
3 Coda File System
4 Release 6
5
6 Copyright (c) 2008 Carnegie Mellon University
7 Additional copyrights listed below
8
9This code is distributed "AS IS" without warranty of any kind under
10the terms of the GNU General Public Licence Version 2, as shown in the
11file LICENSE. The technical and financial contributors to Coda are
12listed in the file CREDITS.
13
14 Additional copyrights
15 none currently
16#*/
17
18#ifndef _ARCHIVE_H_
19#define _ARCHIVE_H_
20
21#include <sys/types.h>
22#include <stdio.h>
23
24#define TAR_TAR 0 /* only supports 100 character path names */
25#define TAR_USTAR 1 /* up to 255 character path, only 100 character component */
26#define CPIO_ODC 2 /* short inode/uid numbers */
27#define CPIO_NEWC 3 /* 32-bit file size */
28
29extern int archive_type;
30
31int archive_write_entry(FILE *fp, ino_t inode, mode_t mode, uid_t uid,
32 nlink_t nlink, time_t mtime, size_t filesize,
33 const char *name, const char *linkname);
34int archive_write_data(FILE *fp, const char *container);
35int archive_write_trailer(FILE *fp);
36
37#endif /* _ARCHIVE_H_ */
int archive_write_entry(FILE *fp, ino_t inode, mode_t mode, uid_t uid, nlink_t nlink, time_t mtime, size_t filesize, const char *name, const char *linkname)
Definition: archive.c:77
int archive_type
Definition: archive.c:34
int archive_write_data(FILE *fp, const char *container)
Definition: archive.c:224
int archive_write_trailer(FILE *fp)
Definition: archive.c:265
name
Definition: pwdtopdbtool.py:40
uid
Definition: pwdtopdbtool.py:40