1a3f66598SOliver Tappe /*- 2a3f66598SOliver Tappe * Copyright (c) 1997-2002 FreeBSD Project. 3a3f66598SOliver Tappe * All rights reserved. 4a3f66598SOliver Tappe * 5a3f66598SOliver Tappe * Redistribution and use in source and binary forms, with or without 6a3f66598SOliver Tappe * modification, are permitted provided that the following conditions 7a3f66598SOliver Tappe * are met: 8a3f66598SOliver Tappe * 1. Redistributions of source code must retain the above copyright 9a3f66598SOliver Tappe * notice, this list of conditions and the following disclaimer. 10a3f66598SOliver Tappe * 2. Redistributions in binary form must reproduce the above copyright 11a3f66598SOliver Tappe * notice, this list of conditions and the following disclaimer in the 12a3f66598SOliver Tappe * documentation and/or other materials provided with the distribution. 13a3f66598SOliver Tappe * 14a3f66598SOliver Tappe * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15a3f66598SOliver Tappe * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16a3f66598SOliver Tappe * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17a3f66598SOliver Tappe * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18a3f66598SOliver Tappe * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19a3f66598SOliver Tappe * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20a3f66598SOliver Tappe * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21a3f66598SOliver Tappe * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22a3f66598SOliver Tappe * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23a3f66598SOliver Tappe * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24a3f66598SOliver Tappe * SUCH DAMAGE. 25a3f66598SOliver Tappe * 26a3f66598SOliver Tappe * $FreeBSD: /repoman/r/ncvs/src/lib/libc/stdtime/timelocal.h,v 1.11 2002/01/24 15:07:44 phantom Exp $ 27a3f66598SOliver Tappe */ 28a3f66598SOliver Tappe #ifndef _TIMELOCAL_H_ 29a3f66598SOliver Tappe #define _TIMELOCAL_H_ 30a3f66598SOliver Tappe 31a3f66598SOliver Tappe 32*d338200eSTrung Nguyen #include <locale.h> 33a3f66598SOliver Tappe #include <sys/cdefs.h> 34a3f66598SOliver Tappe 35a3f66598SOliver Tappe 36a3f66598SOliver Tappe /* 37a3f66598SOliver Tappe * Private header file for the strftime and strptime localization 38a3f66598SOliver Tappe * stuff. 39a3f66598SOliver Tappe */ 40a3f66598SOliver Tappe struct lc_time_t { 41a3f66598SOliver Tappe const char* mon[12]; 42a3f66598SOliver Tappe const char* month[12]; 43a3f66598SOliver Tappe const char* wday[7]; 44a3f66598SOliver Tappe const char* weekday[7]; 45a3f66598SOliver Tappe const char* X_fmt; 46a3f66598SOliver Tappe const char* x_fmt; 47a3f66598SOliver Tappe const char* c_fmt; 48a3f66598SOliver Tappe const char* am; 49a3f66598SOliver Tappe const char* pm; 50a3f66598SOliver Tappe const char* date_fmt; 51a3f66598SOliver Tappe const char* alt_month[12]; 52a3f66598SOliver Tappe const char* md_order; 53a3f66598SOliver Tappe const char* ampm_fmt; 54a3f66598SOliver Tappe }; 55a3f66598SOliver Tappe 56a3f66598SOliver Tappe __BEGIN_DECLS 57a3f66598SOliver Tappe const struct lc_time_t* __get_current_time_locale(void); 58*d338200eSTrung Nguyen const struct lc_time_t* __get_time_locale(locale_t); 59a3f66598SOliver Tappe __END_DECLS 60a3f66598SOliver Tappe 61a3f66598SOliver Tappe 62a3f66598SOliver Tappe #endif /* !_TIMELOCAL_H_ */ 63