/***********************************************************************
* *
* 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
/*
* s5r0 archive format method
*/
#include <ardirlib.h>
#include <swap.h>
#include <tm.h>
typedef struct Header_s
{
} Header_t;
typedef struct Member_s
{
} Member_t;
typedef struct Symbol_s
{
} Symbol_t;
{
} State_t;
/*
* closef
*/
static int
{
int r;
r = -1;
else
{
r = 0;
{
r = -1;
else
{
swapput(0, (char*)&header.ar_date, sizeof(header.ar_date), (intmax_t)((unsigned long)time((time_t*)0) + 5));
r = -1;
}
}
}
return r;
}
/*
* openf
*/
static int
{
if (n <= sizeof(Header_t))
return -1;
return -1;
return -1;
state->offset = sizeof(Header_t) + swapget(0, hdr->ar_syms, sizeof(hdr->ar_syms)) * sizeof(Symbol_t);
return 0;
}
/*
* nextf
*/
static Ardirent_t*
{
ssize_t z;
{
return 0;
}
{
else if (z > 0)
return 0;
}
}
/*
* changef
*/
static int
{
off_t o;
{
return -1;
}
if (write(ar->fd, &state->member.arf_date, sizeof(state->member.arf_date)) != sizeof(state->member.arf_date))
{
return -1;
}
return 0;
}
{
"s5r0",
"system V release 0 archive",
0,
0,
};