- Test m_pkthdr.fw_flags against DUMMYNET_MBUF_TAGGED before trying to locate
[dragonfly/netmp.git] / sys / sys / localedef.h
blob9599ee7d0030a9f12dc6ec3903e2359d55b229f8
1 /* $NetBSD: src/sys/sys/localedef.h,v 1.6 2002/11/19 09:53:16 junyoung Exp $ */
2 /* $DragonFly: src/sys/sys/localedef.h,v 1.2 2005/04/21 16:36:35 joerg Exp $ */
4 /*
5 * Copyright (c) 1994 Winning Strategies, Inc.
6 * All rights reserved.
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:
11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the distribution.
16 * 3. All advertising materials mentioning features or use of this software
17 * must display the following acknowledgement:
18 * This product includes software developed by Winning Strategies, Inc.
19 * 4. The name of the author may not be used to endorse or promote products
20 * derived from this software without specific prior written permission.
22 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
23 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
24 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
25 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
26 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
27 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
31 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 #ifndef _SYS_LOCALEDEF_H_
35 #define _SYS_LOCALEDEF_H_
37 /* messages */
38 typedef struct {
39 const char *yesexpr;
40 const char *noexpr;
41 const char *yesstr;
42 const char *nostr;
43 } _MessagesLocale;
45 extern const _MessagesLocale *_CurrentMessagesLocale;
46 extern const _MessagesLocale _DefaultMessagesLocale;
48 /* monetary */
49 typedef struct {
50 const char *int_curr_symbol;
51 const char *currency_symbol;
52 const char *mon_decimal_point;
53 const char *mon_thousands_sep;
54 const char *mon_grouping;
55 char *positive_sign;
56 char *negative_sign;
57 char int_frac_digits;
58 char frac_digits;
59 char p_cs_precedes;
60 char p_sep_by_space;
61 char n_cs_precedes;
62 char n_sep_by_space;
63 char p_sign_posn;
64 char n_sign_posn;
65 char int_p_cs_precedes;
66 char int_n_cs_precedes;
67 char int_p_sep_by_space;
68 char int_n_sep_by_space;
69 char int_p_sign_posn;
70 char int_n_sign_posn;
71 } _MonetaryLocale;
73 extern const _MonetaryLocale *_CurrentMonetaryLocale;
74 extern const _MonetaryLocale _DefaultMonetaryLocale;
76 /* numeric */
77 typedef struct {
78 const char *decimal_point;
79 const char *thousands_sep;
80 const char *grouping;
81 } _NumericLocale;
83 extern const _NumericLocale *_CurrentNumericLocale;
84 extern const _NumericLocale _DefaultNumericLocale;
86 /* time */
87 typedef struct {
88 const char *abday[7];
89 const char *day[7];
90 const char *abmon[12];
91 const char *mon[12];
92 const char *am_pm[2];
93 const char *d_t_fmt;
94 const char *d_fmt;
95 const char *t_fmt;
96 const char *t_fmt_ampm;
97 const char *date_fmt;
98 } _TimeLocale;
100 extern const _TimeLocale *_CurrentTimeLocale;
101 extern const _TimeLocale _DefaultTimeLocale;
103 #endif /* !_SYS_LOCALEDEF_H_ */