timelocal.h revision 256281
156083Skris/*-
256083Skris * Copyright (c) 1997-2002 FreeBSD Project.
3238405Sjkim * All rights reserved.
456083Skris *
556083Skris * Copyright (c) 2011 The FreeBSD Foundation
656083Skris * All rights reserved.
756083Skris * Portions of this software were developed by David Chisnall
856083Skris * under sponsorship from the FreeBSD Foundation.
956083Skris *
1056083Skris * Redistribution and use in source and binary forms, with or without
1156083Skris * modification, are permitted provided that the following conditions
1256083Skris * are met:
1356083Skris * 1. Redistributions of source code must retain the above copyright
1456083Skris *    notice, this list of conditions and the following disclaimer.
1556083Skris * 2. Redistributions in binary form must reproduce the above copyright
1656083Skris *    notice, this list of conditions and the following disclaimer in the
1756083Skris *    documentation and/or other materials provided with the distribution.
1856083Skris *
1956083Skris * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
2056083Skris * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2156083Skris * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2256083Skris * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
2356083Skris * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2456083Skris * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2556083Skris * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2656083Skris * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2756083Skris * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2856083Skris * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2956083Skris * SUCH DAMAGE.
3056083Skris *
3156083Skris * $FreeBSD: stable/10/lib/libc/stdtime/timelocal.h 227753 2011-11-20 14:45:42Z theraven $
3256083Skris */
3356083Skris
3456083Skris#ifndef _TIMELOCAL_H_
3556083Skris#define	_TIMELOCAL_H_
3656083Skris#include "xlocale_private.h"
3756083Skris
3856083Skris/*
3956083Skris * Private header file for the strftime and strptime localization
4056083Skris * stuff.
4156083Skris */
4256083Skrisstruct lc_time_T {
4356083Skris	const char	*mon[12];
4456083Skris	const char	*month[12];
4556083Skris	const char	*wday[7];
4656083Skris	const char	*weekday[7];
4756083Skris	const char	*X_fmt;
4856083Skris	const char	*x_fmt;
4956083Skris	const char	*c_fmt;
5056083Skris	const char	*am;
5156083Skris	const char	*pm;
5256083Skris	const char	*date_fmt;
5356083Skris	const char	*alt_month[12];
5456083Skris	const char	*md_order;
5556083Skris	const char	*ampm_fmt;
5656083Skris};
5759191Skris
5859191Skrisstruct lc_time_T *__get_current_time_locale(locale_t);
5956083Skrisint	__time_load_locale(const char *);
6056083Skris
6156083Skris#endif /* !_TIMELOCAL_H_ */
6256083Skris