2 * Copyright (c) 2012 Apple Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
21 * @APPLE_LICENSE_HEADER_END@
24 #define __va_list __darwin_va_list
29 #include <xprintf_private.h>
32 asxprintf(char ** __restrict ret
, printf_domain_t __restrict domain
,
33 locale_t __restrict loc
, const char * __restrict format
, ...)
39 iret
= _vasprintf(NULL
, domain
, ret
, loc
, format
, ap
);
45 dxprintf(int fd
, printf_domain_t __restrict domain
, locale_t __restrict loc
,
46 const char * __restrict format
, ...)
52 ret
= _vdprintf(NULL
, domain
, fd
, loc
, format
, ap
);
58 fxprintf(FILE * __restrict stream
, printf_domain_t __restrict domain
,
59 locale_t __restrict loc
, const char * __restrict format
, ...)
65 ret
= __xvprintf(NULL
, domain
, stream
, loc
, format
, ap
);
71 sxprintf(char * __restrict str
, size_t size
, printf_domain_t __restrict domain
,
72 locale_t __restrict loc
, const char * __restrict format
, ...)
78 ret
= _vsnprintf(NULL
, domain
, str
, size
, loc
, format
, ap
);
84 xprintf(printf_domain_t __restrict domain
, locale_t __restrict loc
,
85 const char * __restrict format
, ...)
91 ret
= __xvprintf(NULL
, domain
, stdout
, loc
, format
, ap
);
97 vasxprintf(char ** __restrict ret
, printf_domain_t __restrict domain
,
98 locale_t __restrict loc
, const char * __restrict format
, va_list ap
)
100 return _vasprintf(NULL
, domain
, ret
, loc
, format
, ap
);
104 vdxprintf(int fd
, printf_domain_t __restrict domain
, locale_t __restrict loc
,
105 const char * __restrict format
, va_list ap
)
107 return _vdprintf(NULL
, domain
, fd
, loc
, format
, ap
);
111 vfxprintf(FILE * __restrict stream
, printf_domain_t __restrict domain
,
112 locale_t __restrict loc
, const char * __restrict format
, va_list ap
)
114 return __xvprintf(NULL
, domain
, stream
, loc
, format
, ap
);
118 vsxprintf(char * __restrict str
, size_t size
, printf_domain_t __restrict domain
,
119 locale_t __restrict loc
, const char * __restrict format
, va_list ap
)
121 return _vsnprintf(NULL
, domain
, str
, size
, loc
, format
, ap
);
125 vxprintf(printf_domain_t __restrict domain
, locale_t __restrict loc
,
126 const char * __restrict format
, va_list ap
)
128 return __xvprintf(NULL
, domain
, stdout
, loc
, format
, ap
);