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
30 #include <xprintf_private.h>
32 #pragma clang diagnostic push
33 #pragma clang diagnostic ignored "-Wpointer-bool-conversion"
36 asxprintf_exec(char ** __restrict ret
,
37 printf_comp_t __restrict pc
, ...)
48 iret
= _vasprintf(pc
, NULL
, ret
, NULL
, NULL
, ap
);
54 dxprintf_exec(int fd
, printf_comp_t __restrict pc
, ...)
65 ret
= _vdprintf(pc
, NULL
, fd
, NULL
, NULL
, ap
);
71 fxprintf_exec(FILE * __restrict stream
,
72 printf_comp_t __restrict pc
, ...)
83 ret
= __xvprintf(pc
, NULL
, stream
, NULL
, NULL
, ap
);
89 sxprintf_exec(char * __restrict str
, size_t size
,
90 printf_comp_t __restrict pc
, ...)
101 ret
= _vsnprintf(pc
, NULL
, str
, size
, NULL
, NULL
, ap
);
107 xprintf_exec(printf_comp_t __restrict pc
, ...)
118 ret
= __xvprintf(pc
, NULL
, stdout
, NULL
, NULL
, ap
);
124 vasxprintf_exec(char ** __restrict ret
,
125 printf_comp_t __restrict pc
, va_list ap
)
132 return _vasprintf(pc
, NULL
, ret
, NULL
, NULL
, ap
);
136 vdxprintf_exec(int fd
, printf_comp_t __restrict pc
,
144 return _vdprintf(pc
, NULL
, fd
, NULL
, NULL
, ap
);
148 vfxprintf_exec(FILE * __restrict stream
,
149 printf_comp_t __restrict pc
, va_list ap
)
156 return __xvprintf(pc
, NULL
, stream
, NULL
, NULL
, ap
);
160 vsxprintf_exec(char * __restrict str
, size_t size
,
161 printf_comp_t __restrict pc
, va_list ap
)
168 return _vsnprintf(pc
, NULL
, str
, size
, NULL
, NULL
, ap
);
172 vxprintf_exec(printf_comp_t __restrict pc
, va_list ap
)
179 return __xvprintf(pc
, NULL
, stdout
, NULL
, NULL
, ap
);
181 #pragma clang diagnostic pop