mamstate.c revision 3f54fd611f536639ec30dd53c48e5ec1897cc7d9
/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1982-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 *
* *
* David Korn <dgk@research.att.com> *
* *
***********************************************************************/
/*
* AT&T Bell Laboratories
* make abstract machine file state support
*
* mamstate reference [ file ... | <files ]
*
* stdout is list of <file,delta> pairs where delta
* is diff between reference and file times
* non-existent files are not listed
*/
#if !lint
static char id[] = "\n@(#)$Id: mamstate (AT&T Bell Laboratories) 1989-06-26 $\0\n";
#endif
#include <stdio.h>
int argc;
register char** argv;
{
register char* s;
register int c;
long ref;
char buf[1024];
{
exit(1);
}
if (s = *++argv) do
{
} while (s = *++argv);
else do
{
s = buf;
if (s > buf)
{
*s = 0;
}
} while (c != EOF);
exit(0);
}