137486f03SJoerg Wunsch /*- 24d846d26SWarner Losh * SPDX-License-Identifier: BSD-2-Clause 3d915a14eSPedro F. Giffuni * 4bcbeac34SAlexey Zelkin * Copyright (c) 1997-2002 FreeBSD Project. 537486f03SJoerg Wunsch * All rights reserved. 637486f03SJoerg Wunsch * 73c87aa1dSDavid Chisnall * Copyright (c) 2011 The FreeBSD Foundation 85b5fa75aSEd Maste * 93c87aa1dSDavid Chisnall * Portions of this software were developed by David Chisnall 103c87aa1dSDavid Chisnall * under sponsorship from the FreeBSD Foundation. 113c87aa1dSDavid Chisnall * 1237486f03SJoerg Wunsch * Redistribution and use in source and binary forms, with or without 1337486f03SJoerg Wunsch * modification, are permitted provided that the following conditions 1437486f03SJoerg Wunsch * are met: 1537486f03SJoerg Wunsch * 1. Redistributions of source code must retain the above copyright 1637486f03SJoerg Wunsch * notice, this list of conditions and the following disclaimer. 1737486f03SJoerg Wunsch * 2. Redistributions in binary form must reproduce the above copyright 1837486f03SJoerg Wunsch * notice, this list of conditions and the following disclaimer in the 1937486f03SJoerg Wunsch * documentation and/or other materials provided with the distribution. 2037486f03SJoerg Wunsch * 2137486f03SJoerg Wunsch * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 2237486f03SJoerg Wunsch * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2337486f03SJoerg Wunsch * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2437486f03SJoerg Wunsch * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 2537486f03SJoerg Wunsch * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2637486f03SJoerg Wunsch * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2737486f03SJoerg Wunsch * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2837486f03SJoerg Wunsch * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2937486f03SJoerg Wunsch * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3037486f03SJoerg Wunsch * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3137486f03SJoerg Wunsch * SUCH DAMAGE. 3237486f03SJoerg Wunsch */ 3337486f03SJoerg Wunsch 34bcbeac34SAlexey Zelkin #ifndef _TIMELOCAL_H_ 35bcbeac34SAlexey Zelkin #define _TIMELOCAL_H_ 363c87aa1dSDavid Chisnall #include "xlocale_private.h" 3718f3e1e4SAlexey Zelkin 3837486f03SJoerg Wunsch /* 3937486f03SJoerg Wunsch * Private header file for the strftime and strptime localization 4037486f03SJoerg Wunsch * stuff. 4137486f03SJoerg Wunsch */ 4237486f03SJoerg Wunsch struct lc_time_T { 4337486f03SJoerg Wunsch const char *mon[12]; 4437486f03SJoerg Wunsch const char *month[12]; 4537486f03SJoerg Wunsch const char *wday[7]; 4637486f03SJoerg Wunsch const char *weekday[7]; 4737486f03SJoerg Wunsch const char *X_fmt; 4837486f03SJoerg Wunsch const char *x_fmt; 49740972dcSAndrey A. Chernov const char *c_fmt; 5037486f03SJoerg Wunsch const char *am; 5137486f03SJoerg Wunsch const char *pm; 5237486f03SJoerg Wunsch const char *date_fmt; 53da3785efSDmitrij Tejblum const char *alt_month[12]; 54faeb1b82SAndrey A. Chernov const char *md_order; 5550bab1e6SAndrey A. Chernov const char *ampm_fmt; 5637486f03SJoerg Wunsch }; 5737486f03SJoerg Wunsch 583c87aa1dSDavid Chisnall struct lc_time_T *__get_current_time_locale(locale_t); 59bcbeac34SAlexey Zelkin int __time_load_locale(const char *); 6037486f03SJoerg Wunsch 61bcbeac34SAlexey Zelkin #endif /* !_TIMELOCAL_H_ */ 62