File:  [ELWIX - Embedded LightWeight unIX -] / embedtools / src / Attic / clog.c
Revision 1.1.2.1: download - view: text, annotated - select for diffs - revision graph
Tue Sep 28 15:02:55 2010 UTC (14 years, 3 months ago) by misho
Branches: tools1_0
added new prog clog

#include "global.h"
#include "clog.h"


extern char compiled[], compiledby[], compilehost[];


static void
Usage()
{

	printf(	"cLOG is tool for managment syslogd operation with circular logs\n"
		"=== %s === %s@%s ===\n\n"
		"  Syntax: clog [options] <file.log>\n\n"
		"\t-i\t\tInit file.log, create and prepare for use\n"
		"\t-s <size>\tUse with init for set needed file.log size\n"
		"\t-f\t\tForce command\n"
		"\n", compiled, compiledby, compilehost);
}


int
main(int argc, char **argv)
{
	char ch;

	while ((ch = getopt(argc, argv, "hfis:")) != -1)
		switch (ch) {
			case 'h':
			default:
				Usage();
				return 1;
		}
	argc -= optind;
	argv += optind;

	return 0;
}

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>