1b096817theraven/*-
2d3308bcpfg * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3d3308bcpfg *
4b096817theraven * Copyright (c) 2011, 2012 The FreeBSD Foundation
5b096817theraven * All rights reserved.
6b096817theraven *
7b096817theraven * This software was developed by David Chisnall under sponsorship from
8b096817theraven * the FreeBSD Foundation.
9b096817theraven *
10b096817theraven * Redistribution and use in source and binary forms, with or without
11b096817theraven * modification, are permitted provided that the following conditions
12b096817theraven * are met:
13b096817theraven * 1. Redistributions of source code must retain the above copyright
14b096817theraven *    notice, this list of conditions and the following disclaimer.
15b096817theraven * 2. Redistributions in binary form must reproduce the above copyright
16b096817theraven *    notice, this list of conditions and the following disclaimer in the
17b096817theraven *    documentation and/or other materials provided with the distribution.
18b096817theraven *
19b096817theraven * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
20b096817theraven * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21b096817theraven * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22b096817theraven * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
23b096817theraven * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24b096817theraven * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25b096817theraven * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26b096817theraven * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27b096817theraven * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28b096817theraven * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29b096817theraven * SUCH DAMAGE.
30b096817theraven *
31b096817theraven * $FreeBSD$
32b096817theraven */
33b096817theraven
34b096817theravenint	 asprintf_l(char **, locale_t, const char *, ...) __printflike(3, 4);
35b096817theravenint	 dprintf_l(int, locale_t, const char * __restrict, ...)
36b096817theraven	    __printflike(3, 4);
37b096817theravenint	 fprintf_l(FILE * __restrict, locale_t, const char * __restrict, ...)
38b096817theraven	    __printflike(3, 4);
39b096817theravenint	 fscanf_l(FILE * __restrict, locale_t, const char * __restrict, ...)
40b096817theraven	    __scanflike(3, 4);
41b096817theravenint	 printf_l(locale_t, const char * __restrict, ...) __printflike(2, 3);
42b096817theravenint	 scanf_l(locale_t, const char * __restrict, ...) __scanflike(2, 3);
43b096817theravenint	 snprintf_l(char * __restrict, size_t, locale_t,
44b096817theraven	    const char * __restrict, ...) __printflike(4, 5);
45b096817theravenint	 sprintf_l(char * __restrict, locale_t, const char * __restrict, ...)
46b096817theraven	    __printflike(3, 4);
47b096817theravenint	 sscanf_l(const char * __restrict, locale_t, const char * __restrict,
48b096817theraven	    ...) __scanflike(3, 4);
49b096817theravenint	 vfprintf_l(FILE * __restrict, locale_t, const char * __restrict,
50b096817theraven	    __va_list) __printflike(3, 0);
51b096817theravenint	 vprintf_l(locale_t, const char * __restrict, __va_list)
52b096817theraven	    __printflike(2, 0);
53b096817theravenint	 vsprintf_l(char * __restrict, locale_t, const char * __restrict,
54b096817theraven	    __va_list) __printflike(3, 0);
55b096817theravenint	 vfscanf_l(FILE * __restrict, locale_t, const char * __restrict,
56b096817theraven	    __va_list) __scanflike(3, 0);
57b096817theravenint	 vscanf_l(locale_t, const char * __restrict, __va_list)
58b096817theraven	    __scanflike(2, 0);
59b096817theravenint	 vsnprintf_l(char * __restrict, size_t, locale_t,
60b096817theraven	    const char * __restrict, __va_list) __printflike(4, 0);
61b096817theravenint	 vsscanf_l(const char * __restrict, locale_t, const char * __restrict,
62b096817theraven	    __va_list) __scanflike(3, 0);
63b096817theravenint	 vdprintf_l(int, locale_t, const char * __restrict, __va_list)
64b096817theraven	    __printflike(3, 0);
65b096817theravenint	 vasprintf_l(char **, locale_t, const char *, __va_list)
66b096817theraven	    __printflike(3, 0);
67