1231673Stheraven/*-
2231673Stheraven * Copyright (c) 2011, 2012 The FreeBSD Foundation
3231673Stheraven * All rights reserved.
4231673Stheraven *
5231673Stheraven * This software was developed by David Chisnall under sponsorship from
6231673Stheraven * the FreeBSD Foundation.
7231673Stheraven *
8231673Stheraven * Redistribution and use in source and binary forms, with or without
9231673Stheraven * modification, are permitted provided that the following conditions
10231673Stheraven * are met:
11231673Stheraven * 1. Redistributions of source code must retain the above copyright
12231673Stheraven *    notice, this list of conditions and the following disclaimer.
13231673Stheraven * 2. Redistributions in binary form must reproduce the above copyright
14231673Stheraven *    notice, this list of conditions and the following disclaimer in the
15231673Stheraven *    documentation and/or other materials provided with the distribution.
16231673Stheraven *
17231673Stheraven * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
18231673Stheraven * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19231673Stheraven * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20231673Stheraven * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
21231673Stheraven * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22231673Stheraven * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23231673Stheraven * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24231673Stheraven * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25231673Stheraven * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26231673Stheraven * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27231673Stheraven * SUCH DAMAGE.
28231673Stheraven *
29231673Stheraven * $FreeBSD$
30231673Stheraven */
31231673Stheraven
32231673Stheravenint	 asprintf_l(char **, locale_t, const char *, ...) __printflike(3, 4);
33231673Stheravenint	 dprintf_l(int, locale_t, const char * __restrict, ...)
34231673Stheraven	    __printflike(3, 4);
35231673Stheravenint	 fprintf_l(FILE * __restrict, locale_t, const char * __restrict, ...)
36231673Stheraven	    __printflike(3, 4);
37231673Stheravenint	 fscanf_l(FILE * __restrict, locale_t, const char * __restrict, ...)
38231673Stheraven	    __scanflike(3, 4);
39231673Stheravenint	 printf_l(locale_t, const char * __restrict, ...) __printflike(2, 3);
40231673Stheravenint	 scanf_l(locale_t, const char * __restrict, ...) __scanflike(2, 3);
41231673Stheravenint	 snprintf_l(char * __restrict, size_t, locale_t,
42231673Stheraven	    const char * __restrict, ...) __printflike(4, 5);
43231673Stheravenint	 sprintf_l(char * __restrict, locale_t, const char * __restrict, ...)
44231673Stheraven	    __printflike(3, 4);
45231673Stheravenint	 sscanf_l(const char * __restrict, locale_t, const char * __restrict,
46231673Stheraven	    ...) __scanflike(3, 4);
47231673Stheravenint	 vfprintf_l(FILE * __restrict, locale_t, const char * __restrict,
48231673Stheraven	    __va_list) __printflike(3, 0);
49231673Stheravenint	 vprintf_l(locale_t, const char * __restrict, __va_list)
50231673Stheraven	    __printflike(2, 0);
51231673Stheravenint	 vsprintf_l(char * __restrict, locale_t, const char * __restrict,
52231673Stheraven	    __va_list) __printflike(3, 0);
53231673Stheravenint	 vfscanf_l(FILE * __restrict, locale_t, const char * __restrict,
54231673Stheraven	    __va_list) __scanflike(3, 0);
55231673Stheravenint	 vscanf_l(locale_t, const char * __restrict, __va_list)
56231673Stheraven	    __scanflike(2, 0);
57231673Stheravenint	 vsnprintf_l(char * __restrict, size_t, locale_t,
58231673Stheraven	    const char * __restrict, __va_list) __printflike(4, 0);
59231673Stheravenint	 vsscanf_l(const char * __restrict, locale_t, const char * __restrict,
60231673Stheraven	    __va_list) __scanflike(3, 0);
61231673Stheravenint	 vdprintf_l(int, locale_t, const char * __restrict, __va_list)
62231673Stheraven	    __printflike(3, 0);
63231673Stheravenint	 vasprintf_l(char **, locale_t, const char *, __va_list)
64231673Stheraven	    __printflike(3, 0);
65