* Copyright (c) 1991, 1993
* The Regents of the University of California. All rights reserved.
* This code is derived from software contributed to Berkeley by
* Hugh Smith at The University of Guelph.
* %sccs.include.redist.c%
* @(#)archive.h 8.2 (Berkeley) %G%
#define SETCF(from, fromname, to, toname, pad) { \
/* File copy structure. */
int rfd
; /* read file descriptor */
char *rname
; /* read name */
int wfd
; /* write file descriptor */
char *wname
; /* write name */
#define NOPAD 0x00 /* don't pad */
#define RPAD 0x01 /* pad on reads */
#define WPAD 0x02 /* pad on writes */
u_int flags
; /* pad flags */
/* Header structure internal format. */
off_t size
; /* size of the object in bytes */
int lname
; /* size of the long name in bytes */
u_short mode
; /* permissions */
char name
[MAXNAMLEN
+ 1]; /* name */
/* Header format strings. */
#define HDR1 "%s%-13d%-12ld%-6u%-6u%-8o%-10qd%2s"
#define HDR2 "%-16.16s%-12ld%-6u%-6u%-8o%-10qd%2s"
#define HDR3 "%-16.15s%-12ld%-6u%-6u%-8o%-10qd%2s"
void close_archive
__P((int));
void copy_ar
__P((CF
*, off_t
));
int get_arobj
__P((int));
int open_archive
__P((int));
void put_arobj
__P((CF
*, struct stat
*));
void skip_arobj
__P((int));