xref: /utopia/UTPA2-700.0.x/projects/tools/lint/mips-linux-gnu_include/monetary.h (revision 53ee8cc121a030b8d368113ac3e966b4705770ef)
1*53ee8cc1Swenshuai.xi /* Header file for monetary value formatting functions.
2*53ee8cc1Swenshuai.xi    Copyright (C) 1996,1997,1998,1999,2000,2002,2006
3*53ee8cc1Swenshuai.xi 	Free Software Foundation, Inc.
4*53ee8cc1Swenshuai.xi    This file is part of the GNU C Library.
5*53ee8cc1Swenshuai.xi 
6*53ee8cc1Swenshuai.xi    The GNU C Library is free software; you can redistribute it and/or
7*53ee8cc1Swenshuai.xi    modify it under the terms of the GNU Lesser General Public
8*53ee8cc1Swenshuai.xi    License as published by the Free Software Foundation; either
9*53ee8cc1Swenshuai.xi    version 2.1 of the License, or (at your option) any later version.
10*53ee8cc1Swenshuai.xi 
11*53ee8cc1Swenshuai.xi    The GNU C Library is distributed in the hope that it will be useful,
12*53ee8cc1Swenshuai.xi    but WITHOUT ANY WARRANTY; without even the implied warranty of
13*53ee8cc1Swenshuai.xi    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14*53ee8cc1Swenshuai.xi    Lesser General Public License for more details.
15*53ee8cc1Swenshuai.xi 
16*53ee8cc1Swenshuai.xi    You should have received a copy of the GNU Lesser General Public
17*53ee8cc1Swenshuai.xi    License along with the GNU C Library; if not, write to the Free
18*53ee8cc1Swenshuai.xi    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
19*53ee8cc1Swenshuai.xi    02111-1307 USA.  */
20*53ee8cc1Swenshuai.xi 
21*53ee8cc1Swenshuai.xi #ifndef	_MONETARY_H
22*53ee8cc1Swenshuai.xi #define	_MONETARY_H	1
23*53ee8cc1Swenshuai.xi 
24*53ee8cc1Swenshuai.xi #include <features.h>
25*53ee8cc1Swenshuai.xi 
26*53ee8cc1Swenshuai.xi /* Get needed types.  */
27*53ee8cc1Swenshuai.xi #define __need_size_t
28*53ee8cc1Swenshuai.xi #include <stddef.h>
29*53ee8cc1Swenshuai.xi #include <bits/types.h>
30*53ee8cc1Swenshuai.xi 
31*53ee8cc1Swenshuai.xi #ifndef	__ssize_t_defined
32*53ee8cc1Swenshuai.xi typedef __ssize_t ssize_t;
33*53ee8cc1Swenshuai.xi # define __ssize_t_defined
34*53ee8cc1Swenshuai.xi #endif
35*53ee8cc1Swenshuai.xi 
36*53ee8cc1Swenshuai.xi 
37*53ee8cc1Swenshuai.xi __BEGIN_DECLS
38*53ee8cc1Swenshuai.xi 
39*53ee8cc1Swenshuai.xi /* Formatting a monetary value according to the current locale.  */
40*53ee8cc1Swenshuai.xi extern ssize_t strfmon (char *__restrict __s, size_t __maxsize,
41*53ee8cc1Swenshuai.xi 			__const char *__restrict __format, ...)
42*53ee8cc1Swenshuai.xi      __THROW __attribute_format_strfmon__ (3, 4);
43*53ee8cc1Swenshuai.xi 
44*53ee8cc1Swenshuai.xi #ifdef __USE_GNU
45*53ee8cc1Swenshuai.xi # include <xlocale.h>
46*53ee8cc1Swenshuai.xi 
47*53ee8cc1Swenshuai.xi /* Formatting a monetary value according to the current locale.  */
48*53ee8cc1Swenshuai.xi extern ssize_t strfmon_l (char *__restrict __s, size_t __maxsize,
49*53ee8cc1Swenshuai.xi 			  __locale_t loc,
50*53ee8cc1Swenshuai.xi 			  __const char *__restrict __format, ...)
51*53ee8cc1Swenshuai.xi      __THROW __attribute_format_strfmon__ (4, 5);
52*53ee8cc1Swenshuai.xi #endif
53*53ee8cc1Swenshuai.xi 
54*53ee8cc1Swenshuai.xi #ifdef __LDBL_COMPAT
55*53ee8cc1Swenshuai.xi # include <bits/monetary-ldbl.h>
56*53ee8cc1Swenshuai.xi #endif
57*53ee8cc1Swenshuai.xi 
58*53ee8cc1Swenshuai.xi __END_DECLS
59*53ee8cc1Swenshuai.xi 
60*53ee8cc1Swenshuai.xi #endif	/* monetary.h */
61