| 1 |
/** $MirOS: src/bin/pax/pax.h,v 1.4 2006/06/23 23:03:57 tg Exp $ */ |
/** $MirOS: src/bin/pax/pax.h,v 1.6 2007/01/23 11:55:54 tg Exp $ */ |
| 2 |
/* $OpenBSD: pax.h,v 1.17 2005/11/09 19:59:06 otto Exp $ */ |
/* $OpenBSD: pax.h,v 1.17 2005/11/09 19:59:06 otto Exp $ */ |
| 3 |
/* $NetBSD: pax.h,v 1.3 1995/03/21 09:07:41 cgd Exp $ */ |
/* $NetBSD: pax.h,v 1.3 1995/03/21 09:07:41 cgd Exp $ */ |
| 4 |
|
|
| 55 |
/* |
/* |
| 56 |
* Pax modes of operation |
* Pax modes of operation |
| 57 |
*/ |
*/ |
| 58 |
|
#define ERROR -1 /* nothing selected */ |
| 59 |
#define LIST 0 /* List the file in an archive */ |
#define LIST 0 /* List the file in an archive */ |
| 60 |
#define EXTRACT 1 /* extract the files in an archive */ |
#define EXTRACT 1 /* extract the files in an archive */ |
| 61 |
#define ARCHIVE 2 /* write a new archive */ |
#define ARCHIVE 2 /* write a new archive */ |
| 62 |
#define APPND 3 /* append to the end of an archive */ |
#define APPND 3 /* append to the end of an archive */ |
| 63 |
#define COPY 4 /* copy files to destination dir */ |
#define COPY 4 /* copy files to destination dir */ |
|
#define DEFOP LIST /* if no flags default is to LIST */ |
|
| 64 |
|
|
| 65 |
/* |
/* |
| 66 |
* Device type of the current archive volume |
* Device type of the current archive volume |
| 140 |
* dependent routines pass pointers to ARCHD structure (described below). |
* dependent routines pass pointers to ARCHD structure (described below). |
| 141 |
*/ |
*/ |
| 142 |
typedef struct { |
typedef struct { |
| 143 |
char *name; /* name of format, this is the name the user */ |
const char *name; /* name of format, this is the name the user */ |
| 144 |
/* gives to -x option to select it. */ |
/* gives to -x option to select it. */ |
| 145 |
int bsz; /* default block size. used when the user */ |
int bsz; /* default block size. used when the user */ |
| 146 |
/* does not specify a blocksize for writing */ |
/* does not specify a blocksize for writing */ |