187bc118cSBruce Evans /*- 2*4d846d26SWarner Losh * SPDX-License-Identifier: BSD-2-Clause 3e58eb3c4SPedro F. Giffuni * 452d6b430SAlexey Zelkin * Copyright (c) 2001 Alexey Zelkin <phantom@FreeBSD.org> 5cc30da9dSAlexey Zelkin * All rights reserved. 6cc30da9dSAlexey Zelkin * 7cc30da9dSAlexey Zelkin * Redistribution and use in source and binary forms, with or without 8cc30da9dSAlexey Zelkin * modification, are permitted provided that the following conditions 9cc30da9dSAlexey Zelkin * are met: 10cc30da9dSAlexey Zelkin * 1. Redistributions of source code must retain the above copyright 11cc30da9dSAlexey Zelkin * notice, this list of conditions and the following disclaimer. 12cc30da9dSAlexey Zelkin * 2. Redistributions in binary form must reproduce the above copyright 13cc30da9dSAlexey Zelkin * notice, this list of conditions and the following disclaimer in the 14cc30da9dSAlexey Zelkin * documentation and/or other materials provided with the distribution. 15cc30da9dSAlexey Zelkin * 16cc30da9dSAlexey Zelkin * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 17cc30da9dSAlexey Zelkin * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18cc30da9dSAlexey Zelkin * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19cc30da9dSAlexey Zelkin * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 20cc30da9dSAlexey Zelkin * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21cc30da9dSAlexey Zelkin * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22cc30da9dSAlexey Zelkin * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23cc30da9dSAlexey Zelkin * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24cc30da9dSAlexey Zelkin * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25cc30da9dSAlexey Zelkin * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26cc30da9dSAlexey Zelkin * SUCH DAMAGE. 27cc30da9dSAlexey Zelkin */ 28cc30da9dSAlexey Zelkin 2919e4b807SAlexey Zelkin #ifndef _MONETARY_H_ 3019e4b807SAlexey Zelkin #define _MONETARY_H_ 31cc30da9dSAlexey Zelkin 32cc30da9dSAlexey Zelkin #include <sys/cdefs.h> 33abbd8902SMike Barcroft #include <sys/_types.h> 349b68c690SBruce Evans 35abbd8902SMike Barcroft #ifndef _SIZE_T_DECLARED 36abbd8902SMike Barcroft typedef __size_t size_t; 37abbd8902SMike Barcroft #define _SIZE_T_DECLARED 389b68c690SBruce Evans #endif 399b68c690SBruce Evans 406b7f7587SMike Barcroft #ifndef _SSIZE_T_DECLARED 41abbd8902SMike Barcroft typedef __ssize_t ssize_t; 426b7f7587SMike Barcroft #define _SSIZE_T_DECLARED 439b68c690SBruce Evans #endif 44cc30da9dSAlexey Zelkin 45cc30da9dSAlexey Zelkin __BEGIN_DECLS 46b240f5e2SEd Schouten #if __POSIX_VISIBLE >= 200809 || defined(_XLOCALE_H_) 473ac9d659SDavid Chisnall #include <xlocale/_monetary.h> 483ac9d659SDavid Chisnall #endif 496b7f7587SMike Barcroft ssize_t strfmon(char * __restrict, size_t, const char * __restrict, ...); 50cc30da9dSAlexey Zelkin __END_DECLS 51cc30da9dSAlexey Zelkin 5219e4b807SAlexey Zelkin #endif /* !_MONETARY_H_ */ 53