/***********************************************************************
* *
* 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
/*
* local archive format method
*/
#include <ardirlib.h>
#include <ctype.h>
#include <tm.h>
{
} State_t;
/*
* closef
*/
static int
{
int r;
r = -1;
else
{
r = -1;
else
r = 0;
}
return r;
}
/*
* openf
*/
static int
{
char* cmd;
int c;
return -1;
return -1;
if (!(state->sp = sfpopen(NiL, cmd, "r")) || (c = sfgetc(state->sp)) == EOF || sfungetc(state->sp, c) == EOF)
{
localclose(ar);
return -1;
}
return 0;
}
/*
* nextf
*/
static Ardirent_t*
{
register char* s;
register char* t;
char* e;
int n;
{
/*
* assume ``junk Mmm ... member''
*/
if (!(t = strrchr(s, ' ')))
continue;
*t++ = 0;
while (s = strchr(s, ' '))
{
{
if (!*e)
{
break;
}
}
else
}
}
return 0;
}
{
"local",
"local ar archive",
0,
0,
0,
};