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.
13203964Simp * 3. Neither the name of the University nor the names of its contributors
141539Srgrimes *    may be used to endorse or promote products derived from this software
151539Srgrimes *    without specific prior written permission.
161539Srgrimes *
171539Srgrimes * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
181539Srgrimes * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
191539Srgrimes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
201539Srgrimes * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
211539Srgrimes * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
221539Srgrimes * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
231539Srgrimes * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
241539Srgrimes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
251539Srgrimes * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
261539Srgrimes * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
271539Srgrimes * SUCH DAMAGE.
281539Srgrimes *
291539Srgrimes *	@(#)locale.h	8.1 (Berkeley) 6/2/93
3093032Simp * $FreeBSD$
311539Srgrimes */
321539Srgrimes
331539Srgrimes#ifndef _LOCALE_H_
341539Srgrimes#define _LOCALE_H_
351539Srgrimes
36123257Smarcel#include <sys/_null.h>
37123257Smarcel
381539Srgrimesstruct lconv {
391539Srgrimes	char	*decimal_point;
401539Srgrimes	char	*thousands_sep;
411539Srgrimes	char	*grouping;
421539Srgrimes	char	*int_curr_symbol;
431539Srgrimes	char	*currency_symbol;
441539Srgrimes	char	*mon_decimal_point;
451539Srgrimes	char	*mon_thousands_sep;
461539Srgrimes	char	*mon_grouping;
471539Srgrimes	char	*positive_sign;
481539Srgrimes	char	*negative_sign;
491539Srgrimes	char	int_frac_digits;
501539Srgrimes	char	frac_digits;
511539Srgrimes	char	p_cs_precedes;
521539Srgrimes	char	p_sep_by_space;
531539Srgrimes	char	n_cs_precedes;
541539Srgrimes	char	n_sep_by_space;
551539Srgrimes	char	p_sign_posn;
561539Srgrimes	char	n_sign_posn;
57104711Stjr	char	int_p_cs_precedes;
58104711Stjr	char	int_n_cs_precedes;
59104711Stjr	char	int_p_sep_by_space;
60104711Stjr	char	int_n_sep_by_space;
61104711Stjr	char	int_p_sign_posn;
62104711Stjr	char	int_n_sign_posn;
631539Srgrimes};
641539Srgrimes
651539Srgrimes#define	LC_ALL		0
661539Srgrimes#define	LC_COLLATE	1
671539Srgrimes#define	LC_CTYPE	2
681539Srgrimes#define	LC_MONETARY	3
691539Srgrimes#define	LC_NUMERIC	4
701539Srgrimes#define	LC_TIME		5
7135523Sache#define	LC_MESSAGES	6
721539Srgrimes
7335523Sache#define	_LC_LAST	7		/* marks end */
741539Srgrimes
751539Srgrimes#include <sys/cdefs.h>
761539Srgrimes
771539Srgrimes__BEGIN_DECLS
7893032Simpstruct lconv	*localeconv(void);
7993032Simpchar		*setlocale(int, const char *);
801539Srgrimes
81227753Stheraven#if __POSIX_VISIBLE >= 200809
82232498Stheraven#include <xlocale/_locale.h>
83232498Stheraven#endif
84227753Stheraven__END_DECLS
85227753Stheraven
86227753Stheraven
871539Srgrimes#endif /* _LOCALE_H_ */
88