/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 2004-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* *
***********************************************************************/
#pragma prototyped
/*
* pax tp format
*/
#include <paxlib.h>
#include <ccode.h>
#include <tm.h>
typedef struct Dir_s
{
} Dir_t;
typedef struct Ar_s
{
} Ar_t;
static int
{
if (!ar)
return -1;
return 0;
}
static int
tp_getprologue(Pax_t* pax, Paxformat_t* fp, register Paxarchive_t* ap, Paxfile_t* f, unsigned char* buf, size_t size)
{
register ui1* s;
register ui1* e;
int16_t w;
size_t n;
return 0;
w = 0;
w += s[0] + (s[1]<<8);
if (w)
return 0;
if (w < 0 || w > DIRMAG)
w = DIRMAG;
return paxnospace(pax);
{
return -1;
}
return 1;
}
static int
{
register ui1* s;
register ui1* e;
int16_t w;
do
{
return 0;
w = 0;
w += s[0] + (s[1]<<8);
if (w)
{
error(2, "%s: %s format directory entry %d checksum error", ap->name, ap->format->name, ar->dp - ar->dir);
return -1;
}
f->linktype = PAX_NOLINK;
f->linkpath = 0;
f->st->st_mtime = dp->modtime[2] + (dp->modtime[3]<<8) + (dp->modtime[0]<<16) + (dp->modtime[1]<<24);
return 1;
}
static int
{
ssize_t n;
int r;
return 1;
r = -1;
if (fd < 0)
r = 1;
for (;;)
{
{
break;
}
else if (n == 0)
{
r = 1;
break;
}
skip -= n;
break;
}
{
(*pax->errorf)(NiL, pax, 2, "%s: %s: cannot skip past %s format data", ap->name, f->name, ap->format->name);
r = -1;
}
return r;
}
{
"tp",
0,
"unix 4th-7th edition PDP-11 tp archive",
0,
0,
};