Coda Distributed File System
Macros | Functions | Variables
archive.h File Reference
#include <sys/types.h>
#include <stdio.h>
Include dependency graph for archive.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TAR_TAR   0 /* only supports 100 character path names */
 
#define TAR_USTAR   1 /* up to 255 character path, only 100 character component */
 
#define CPIO_ODC   2 /* short inode/uid numbers */
 
#define CPIO_NEWC   3 /* 32-bit file size */
 

Functions

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)
 
int archive_write_data (FILE *fp, const char *container)
 
int archive_write_trailer (FILE *fp)
 

Variables

int archive_type
 

Macro Definition Documentation

◆ CPIO_NEWC

#define CPIO_NEWC   3 /* 32-bit file size */

◆ CPIO_ODC

#define CPIO_ODC   2 /* short inode/uid numbers */

◆ TAR_TAR

#define TAR_TAR   0 /* only supports 100 character path names */

◆ TAR_USTAR

#define TAR_USTAR   1 /* up to 255 character path, only 100 character component */

Function Documentation

◆ archive_write_data()

int archive_write_data ( FILE *  fp,
const char *  container 
)

◆ archive_write_entry()

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 
)

◆ archive_write_trailer()

int archive_write_trailer ( FILE *  fp)

Variable Documentation

◆ archive_type

int archive_type
extern