timelocal.h revision 50476
128021Sjoerg/*-
228021Sjoerg * Copyright (c) 1997 FreeBSD Inc.
328021Sjoerg * All rights reserved.
428021Sjoerg *
528021Sjoerg * Redistribution and use in source and binary forms, with or without
628021Sjoerg * modification, are permitted provided that the following conditions
728021Sjoerg * are met:
828021Sjoerg * 1. Redistributions of source code must retain the above copyright
928021Sjoerg *    notice, this list of conditions and the following disclaimer.
1028021Sjoerg * 2. Redistributions in binary form must reproduce the above copyright
1128021Sjoerg *    notice, this list of conditions and the following disclaimer in the
1228021Sjoerg *    documentation and/or other materials provided with the distribution.
1328021Sjoerg *
1428021Sjoerg * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1528021Sjoerg * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1628021Sjoerg * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1728021Sjoerg * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1828021Sjoerg * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1928021Sjoerg * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2028021Sjoerg * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2128021Sjoerg * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2228021Sjoerg * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2328021Sjoerg * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2428021Sjoerg * SUCH DAMAGE.
2528021Sjoerg *
2650476Speter * $FreeBSD: head/lib/libc/stdtime/timelocal.h 50476 1999-08-28 00:22:10Z peter $
2728021Sjoerg */
2828021Sjoerg
2928021Sjoerg/*
3028021Sjoerg * Private header file for the strftime and strptime localization
3128021Sjoerg * stuff.
3228021Sjoerg */
3328021Sjoergstruct lc_time_T {
3428021Sjoerg	const char *	mon[12];
3528021Sjoerg	const char *	month[12];
3628021Sjoerg	const char *	wday[7];
3728021Sjoerg	const char *	weekday[7];
3828021Sjoerg	const char *	X_fmt;
3928021Sjoerg	const char *	x_fmt;
4028021Sjoerg	const char *	c_fmt;
4128021Sjoerg	const char *	am;
4228021Sjoerg	const char *	pm;
4328021Sjoerg	const char *	date_fmt;
4428021Sjoerg};
4528021Sjoerg
4628021Sjoergextern	struct lc_time_T _time_localebuf;
4728021Sjoergextern	int _time_using_locale;
4828021Sjoergextern	const struct lc_time_T _C_time_locale;
4928021Sjoerg
5028021Sjoerg#define Locale	(_time_using_locale ? &_time_localebuf : &_C_time_locale)
5128021Sjoerg
52