locale.h revision 104711
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 104711 2002-10-09 09:19:28Z tjr $
351539Srgrimes */
361539Srgrimes
371539Srgrimes#ifndef _LOCALE_H_
381539Srgrimes#define _LOCALE_H_
391539Srgrimes
401539Srgrimesstruct lconv {
411539Srgrimes	char	*decimal_point;
421539Srgrimes	char	*thousands_sep;
431539Srgrimes	char	*grouping;
441539Srgrimes	char	*int_curr_symbol;
451539Srgrimes	char	*currency_symbol;
461539Srgrimes	char	*mon_decimal_point;
471539Srgrimes	char	*mon_thousands_sep;
481539Srgrimes	char	*mon_grouping;
491539Srgrimes	char	*positive_sign;
501539Srgrimes	char	*negative_sign;
511539Srgrimes	char	int_frac_digits;
521539Srgrimes	char	frac_digits;
531539Srgrimes	char	p_cs_precedes;
541539Srgrimes	char	p_sep_by_space;
551539Srgrimes	char	n_cs_precedes;
561539Srgrimes	char	n_sep_by_space;
571539Srgrimes	char	p_sign_posn;
581539Srgrimes	char	n_sign_posn;
59104711Stjr	char	int_p_cs_precedes;
60104711Stjr	char	int_n_cs_precedes;
61104711Stjr	char	int_p_sep_by_space;
62104711Stjr	char	int_n_sep_by_space;
63104711Stjr	char	int_p_sign_posn;
64104711Stjr	char	int_n_sign_posn;
651539Srgrimes};
661539Srgrimes
671539Srgrimes#ifndef NULL
681539Srgrimes#define	NULL	0
691539Srgrimes#endif
701539Srgrimes
711539Srgrimes#define	LC_ALL		0
721539Srgrimes#define	LC_COLLATE	1
731539Srgrimes#define	LC_CTYPE	2
741539Srgrimes#define	LC_MONETARY	3
751539Srgrimes#define	LC_NUMERIC	4
761539Srgrimes#define	LC_TIME		5
7735523Sache#define	LC_MESSAGES	6
781539Srgrimes
7935523Sache#define	_LC_LAST	7		/* marks end */
801539Srgrimes
811539Srgrimes#include <sys/cdefs.h>
821539Srgrimes
831539Srgrimes__BEGIN_DECLS
8493032Simpstruct lconv	*localeconv(void);
8593032Simpchar		*setlocale(int, const char *);
861539Srgrimes__END_DECLS
871539Srgrimes
881539Srgrimes#endif /* _LOCALE_H_ */
89