locale.h revision 123257
11539Srgrimes/* 21539Srgrimes * Copyright (c) 1991, 1993 31539Srgrimes * The Regents of the University of California. All rights reserved. 41539Srgrimes * 51539Srgrimes * Redistribution and use in source and binary forms, with or without 61539Srgrimes * modification, are permitted provided that the following conditions 71539Srgrimes * are met: 81539Srgrimes * 1. Redistributions of source code must retain the above copyright 91539Srgrimes * notice, this list of conditions and the following disclaimer. 101539Srgrimes * 2. Redistributions in binary form must reproduce the above copyright 111539Srgrimes * notice, this list of conditions and the following disclaimer in the 121539Srgrimes * documentation and/or other materials provided with the distribution. 131539Srgrimes * 3. All advertising materials mentioning features or use of this software 141539Srgrimes * must display the following acknowledgement: 151539Srgrimes * This product includes software developed by the University of 161539Srgrimes * California, Berkeley and its contributors. 171539Srgrimes * 4. Neither the name of the University nor the names of its contributors 181539Srgrimes * may be used to endorse or promote products derived from this software 191539Srgrimes * without specific prior written permission. 201539Srgrimes * 211539Srgrimes * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 221539Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 231539Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 241539Srgrimes * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 251539Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 261539Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 271539Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 281539Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 291539Srgrimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 301539Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 311539Srgrimes * SUCH DAMAGE. 321539Srgrimes * 331539Srgrimes * @(#)locale.h 8.1 (Berkeley) 6/2/93 3493032Simp * $FreeBSD: head/include/locale.h 123257 2003-12-07 21:10:06Z marcel $ 351539Srgrimes */ 361539Srgrimes 371539Srgrimes#ifndef _LOCALE_H_ 381539Srgrimes#define _LOCALE_H_ 391539Srgrimes 40123257Smarcel#include <sys/_null.h> 41123257Smarcel 421539Srgrimesstruct lconv { 431539Srgrimes char *decimal_point; 441539Srgrimes char *thousands_sep; 451539Srgrimes char *grouping; 461539Srgrimes char *int_curr_symbol; 471539Srgrimes char *currency_symbol; 481539Srgrimes char *mon_decimal_point; 491539Srgrimes char *mon_thousands_sep; 501539Srgrimes char *mon_grouping; 511539Srgrimes char *positive_sign; 521539Srgrimes char *negative_sign; 531539Srgrimes char int_frac_digits; 541539Srgrimes char frac_digits; 551539Srgrimes char p_cs_precedes; 561539Srgrimes char p_sep_by_space; 571539Srgrimes char n_cs_precedes; 581539Srgrimes char n_sep_by_space; 591539Srgrimes char p_sign_posn; 601539Srgrimes char n_sign_posn; 61104711Stjr char int_p_cs_precedes; 62104711Stjr char int_n_cs_precedes; 63104711Stjr char int_p_sep_by_space; 64104711Stjr char int_n_sep_by_space; 65104711Stjr char int_p_sign_posn; 66104711Stjr char int_n_sign_posn; 671539Srgrimes}; 681539Srgrimes 691539Srgrimes#define LC_ALL 0 701539Srgrimes#define LC_COLLATE 1 711539Srgrimes#define LC_CTYPE 2 721539Srgrimes#define LC_MONETARY 3 731539Srgrimes#define LC_NUMERIC 4 741539Srgrimes#define LC_TIME 5 7535523Sache#define LC_MESSAGES 6 761539Srgrimes 7735523Sache#define _LC_LAST 7 /* marks end */ 781539Srgrimes 791539Srgrimes#include <sys/cdefs.h> 801539Srgrimes 811539Srgrimes__BEGIN_DECLS 8293032Simpstruct lconv *localeconv(void); 8393032Simpchar *setlocale(int, const char *); 841539Srgrimes__END_DECLS 851539Srgrimes 861539Srgrimes#endif /* _LOCALE_H_ */ 87