/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1987-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
/*
* Glenn Fowler
*
* pax pax external library support
*/
#include "pax.h"
static int
{
}
static void*
{
}
static int
{
return 0;
}
static off_t
{
}
static off_t
{
}
static char*
{
return stash(v, s, z);
}
static int
{
else
return 0;
}
static int
{
return 0;
}
static int
{
return 0;
}
static int
{
return 0;
}
static int
{
(*pax->errorf)(NiL, pax, 2, "%s%s%s: %s archive corrupt at %I*u%s%s", ap->name, TXT(f, f->name), ap->format->name, sizeof(off_t), paxseek(pax, ap, 0, SEEK_CUR, 0), TXT(msg, msg));
return -1;
}
static int
paxchecksum(Pax_t* pax, Paxarchive_t* ap, Paxfile_t* f, unsigned long expected, unsigned long value)
{
int z;
{
(*pax->errorf)(NiL, pax, 2, "%s%s%s: %s archive checksum error -- expected %0*lx != %0*lx", ap->name, TXT(f, f->name), ap->format->name, z, expected, z, value);
return -1;
}
return 0;
}
static int
{
return -1;
}
/*
* archive part sfio discipline
*/
static ssize_t
{
ssize_t r;
if (part->n <= 0)
return part->n;
if (n > part->n)
n = part->n;
part->n -= r;
return r;
}
static ssize_t
{
ssize_t r;
part->n += r;
return r;
}
static Sfio_t*
{
{
{
return 0;
}
else
if (fd < 0)
{
return 0;
}
}
part->n = n;
}
/*
* initialize the external library callbacks
*/
void
{
}