extern.h revision 119998
1183423Smarius/*- 2183423Smarius * ------+---------+---------+---------+---------+---------+---------+---------* 3183423Smarius * Copyright (c) 2003 - Garance Alistair Drosehn <gad@FreeBSD.org>. 4220038Smarius * All rights reserved. 5183423Smarius * 6183423Smarius * Redistribution and use in source and binary forms, with or without 7183423Smarius * modification, are permitted provided that the following conditions 8183423Smarius * are met: 9183423Smarius * 1. Redistributions of source code must retain the above copyright 10183423Smarius * notice, this list of conditions and the following disclaimer. 11183423Smarius * 2. Redistributions in binary form must reproduce the above copyright 12183423Smarius * notice, this list of conditions and the following disclaimer in the 13183423Smarius * documentation and/or other materials provided with the distribution. 14183423Smarius * 15183423Smarius * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 16183423Smarius * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17183423Smarius * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18183423Smarius * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 19183423Smarius * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20183423Smarius * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21183423Smarius * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22183423Smarius * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23183423Smarius * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24183423Smarius * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25183423Smarius * SUCH DAMAGE. 26183423Smarius * 27183423Smarius * The views and conclusions contained in the software and documentation 28183423Smarius * are those of the authors and should not be interpreted as representing 29183423Smarius * official policies, either expressed or implied, of the FreeBSD Project. 30183423Smarius * 31183423Smarius * ------+---------+---------+---------+---------+---------+---------+---------* 32183423Smarius * $FreeBSD: head/usr.sbin/newsyslog/extern.h 119998 2003-09-12 01:33:37Z gad $ 33183423Smarius * ------+---------+---------+---------+---------+---------+---------+---------* 34183423Smarius */ 35183423Smarius 36183423Smarius#include <sys/cdefs.h> 37183423Smarius#include <time.h> 38220038Smarius 39220038Smariusextern int noaction; /* command-line option */ 40183423Smariusextern int verbose; /* command-line option */ 41183423Smarius 42183423Smariusextern time_t dbg_timenow; 43183423Smariusextern time_t timenow; 44183423Smarius 45183423Smarius__BEGIN_DECLS 46183423Smariustime_t parse8601(const char *_srcstr, time_t *_next_time); 47183423Smariustime_t parseDWM(char *_srcstr, time_t *_next_time); 48183423Smarius__END_DECLS 49183423Smarius