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>
33 asxprintf_exec(char ** __restrict ret
,
34 printf_comp_t __restrict pc
, ...)
45 iret
= _vasprintf(pc
, NULL
, ret
, NULL
, NULL
, ap
);
51 dxprintf_exec(int fd
, printf_comp_t __restrict pc
, ...)
62 ret
= _vdprintf(pc
, NULL
, fd
, NULL
, NULL
, ap
);
68 fxprintf_exec(FILE * __restrict stream
,
69 printf_comp_t __restrict pc
, ...)
80 ret
= __xvprintf(pc
, NULL
, stream
, NULL
, NULL
, ap
);
86 sxprintf_exec(char * __restrict str
, size_t size
,
87 printf_comp_t __restrict pc
, ...)
98 ret
= _vsnprintf(pc
, NULL
, str
, size
, NULL
, NULL
, ap
);
104 xprintf_exec(printf_comp_t __restrict pc
, ...)
115 ret
= __xvprintf(pc
, NULL
, stdout
, NULL
, NULL
, ap
);
121 vasxprintf_exec(char ** __restrict ret
,
122 printf_comp_t __restrict pc
, va_list ap
)
129 return _vasprintf(pc
, NULL
, ret
, NULL
, NULL
, ap
);
133 vdxprintf_exec(int fd
, printf_comp_t __restrict pc
,
141 return _vdprintf(pc
, NULL
, fd
, NULL
, NULL
, ap
);
145 vfxprintf_exec(FILE * __restrict stream
,
146 printf_comp_t __restrict pc
, va_list ap
)
153 return __xvprintf(pc
, NULL
, stream
, NULL
, NULL
, ap
);
157 vsxprintf_exec(char * __restrict str
, size_t size
,
158 printf_comp_t __restrict pc
, va_list ap
)
165 return _vsnprintf(pc
, NULL
, str
, size
, NULL
, NULL
, ap
);
169 vxprintf_exec(printf_comp_t __restrict pc
, va_list ap
)
176 return __xvprintf(pc
, NULL
, stdout
, NULL
, NULL
, ap
);