/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 2002-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> *
* David Korn <dgk@research.att.com> *
* *
***********************************************************************/
#pragma prototyped
/*
* pdp11 archive format method
*/
#include <ardirlib.h>
#include <swap.h>
#include <tm.h>
typedef struct Header_s
{
} Header_t;
{
} State_t;
/*
* closef
*/
static int
{
return 0;
}
/*
* openf
*/
static int
{
int swap;
if (n <= MAGIC_SIZE)
return -1;
swap = 0;
swap = 3;
else
return -1;
return -1;
return 0;
}
/*
* nextf
*/
static Ardirent_t*
{
ssize_t z;
{
return 0;
}
{
else if (z > 0)
return 0;
}
ar->dirent.mtime = swapget(state->swap, (char*)&state->header.ar_date, sizeof(state->header.ar_date));
ar->dirent.mode = swapget(state->swap, (char*)&state->header.ar_mode, sizeof(state->header.ar_mode));
ar->dirent.size = swapget(state->swap, (char*)&state->header.ar_size, sizeof(state->header.ar_size));
}
/*
* changef
*/
static int
{
off_t o;
{
return -1;
}
swapput(state->swap, (char*)&state->header.ar_date, sizeof(state->header.ar_date), (intmax_t)ent->mtime);
if (write(ar->fd, &state->header.ar_date, sizeof(state->header.ar_date)) != sizeof(state->header.ar_date))
{
return -1;
}
return 0;
}
{
"pdp11",
"pdp11 archive",
0,
0,
};