| 1 | /* $Id; $ */ | 
|---|
| 2 | /** @file | 
|---|
| 3 | * FreeBSD 5.1 | 
|---|
| 4 | * @changed bird: removed unsupported values and added comments to lconv. | 
|---|
| 5 | * @changed bird: Changed the LC_* values to match those unidef.h sets. | 
|---|
| 6 | */ | 
|---|
| 7 |  | 
|---|
| 8 | /* | 
|---|
| 9 | * Copyright (c) 1991, 1993 | 
|---|
| 10 | *      The Regents of the University of California.  All rights reserved. | 
|---|
| 11 | * | 
|---|
| 12 | * Redistribution and use in source and binary forms, with or without | 
|---|
| 13 | * modification, are permitted provided that the following conditions | 
|---|
| 14 | * are met: | 
|---|
| 15 | * 1. Redistributions of source code must retain the above copyright | 
|---|
| 16 | *    notice, this list of conditions and the following disclaimer. | 
|---|
| 17 | * 2. Redistributions in binary form must reproduce the above copyright | 
|---|
| 18 | *    notice, this list of conditions and the following disclaimer in the | 
|---|
| 19 | *    documentation and/or other materials provided with the distribution. | 
|---|
| 20 | * 3. All advertising materials mentioning features or use of this software | 
|---|
| 21 | *    must display the following acknowledgement: | 
|---|
| 22 | *      This product includes software developed by the University of | 
|---|
| 23 | *      California, Berkeley and its contributors. | 
|---|
| 24 | * 4. Neither the name of the University nor the names of its contributors | 
|---|
| 25 | *    may be used to endorse or promote products derived from this software | 
|---|
| 26 | *    without specific prior written permission. | 
|---|
| 27 | * | 
|---|
| 28 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | 
|---|
| 29 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 
|---|
| 30 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | 
|---|
| 31 | * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | 
|---|
| 32 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | 
|---|
| 33 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | 
|---|
| 34 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | 
|---|
| 35 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | 
|---|
| 36 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 
|---|
| 37 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 
|---|
| 38 | * SUCH DAMAGE. | 
|---|
| 39 | * | 
|---|
| 40 | *      @(#)locale.h    8.1 (Berkeley) 6/2/93 | 
|---|
| 41 | * $FreeBSD: src/include/locale.h,v 1.7 2002/10/09 09:19:27 tjr Exp $ | 
|---|
| 42 | */ | 
|---|
| 43 |  | 
|---|
| 44 | #ifndef _LOCALE_H_ | 
|---|
| 45 | #define _LOCALE_H_ | 
|---|
| 46 |  | 
|---|
| 47 | struct lconv { | 
|---|
| 48 | char    *decimal_point;         /** non-monetary decimal point */ | 
|---|
| 49 | char    *thousands_sep;         /** non-monetary thousands separator */ | 
|---|
| 50 | char    *grouping;              /** non-monetary size of grouping */ | 
|---|
| 51 | char    *int_curr_symbol;       /** international currency symbol and separator */ | 
|---|
| 52 | char    *currency_symbol;       /** local currency symbol */ | 
|---|
| 53 | char    *mon_decimal_point;     /** monetary decimal point */ | 
|---|
| 54 | char    *mon_thousands_sep;     /** monetary thousands separator */ | 
|---|
| 55 | char    *mon_grouping;          /** monetary size of grouping */ | 
|---|
| 56 | char    *positive_sign;         /** non-negative values sign */ | 
|---|
| 57 | char    *negative_sign;         /** negative values sign */ | 
|---|
| 58 | char    int_frac_digits;        /** number of fractional digits - int currency */ | 
|---|
| 59 | char    frac_digits;            /** number of fractional digits - local currency */ | 
|---|
| 60 | char    p_cs_precedes;          /** (non-neg curr sym) 1-precedes, 0-succeeds */ | 
|---|
| 61 | char    p_sep_by_space;         /** (non-neg curr sym) 1-space, 0-no space */ | 
|---|
| 62 | char    n_cs_precedes;          /** (neg curr sym) 1-precedes, 0-succeeds */ | 
|---|
| 63 | char    n_sep_by_space;         /** (neg curr sym) 1-space, 0-no space */ | 
|---|
| 64 | char    p_sign_posn;            /** positioning of non-negative monetary sign */ | 
|---|
| 65 | char    n_sign_posn;            /** positioning of negative monetary sign */ | 
|---|
| 66 | char    int_p_cs_precedes; | 
|---|
| 67 | char    int_n_cs_precedes; | 
|---|
| 68 | char    int_p_sep_by_space; | 
|---|
| 69 | char    int_n_sep_by_space; | 
|---|
| 70 | char    int_p_sign_posn; | 
|---|
| 71 | char    int_n_sign_posn; | 
|---|
| 72 | }; | 
|---|
| 73 |  | 
|---|
| 74 | #ifndef NULL | 
|---|
| 75 | #define NULL    0 | 
|---|
| 76 | #endif | 
|---|
| 77 |  | 
|---|
| 78 | #define LC_ALL          (-1) /* bird: was 0 */ | 
|---|
| 79 | #define LC_COLLATE      0    /* bird: was 1 */ | 
|---|
| 80 | #define LC_CTYPE        1    /* bird: was 2 */ | 
|---|
| 81 | #define LC_MONETARY     2    /* bird: was 3 */ | 
|---|
| 82 | #define LC_NUMERIC      3    /* bird: was 4 */ | 
|---|
| 83 | #define LC_TIME         4    /* bird: was 5 */ | 
|---|
| 84 | #define LC_MESSAGES     5    /* bird: was 6 */ | 
|---|
| 85 |  | 
|---|
| 86 | #define _LC_LAST        6    /* bird: was 7 */          /* marks end */ | 
|---|
| 87 |  | 
|---|
| 88 | #include <sys/cdefs.h> | 
|---|
| 89 |  | 
|---|
| 90 | __BEGIN_DECLS | 
|---|
| 91 | struct lconv    *localeconv(void); | 
|---|
| 92 | char            *setlocale(int, const char *); | 
|---|
| 93 | __END_DECLS | 
|---|
| 94 |  | 
|---|
| 95 | #endif /* _LOCALE_H_ */ | 
|---|