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