devctl.h: update for POSIX-1.2024
[newlib-cygwin.git] / newlib / libc / machine / spu / vprintf.c
blobd2ebc4eda3768cd2da81900af6c37984632182b1
1 #include <_ansi.h>
2 #include <stdio.h>
4 #include "c99ppe.h"
6 #include <stdarg.h>
8 #ifdef INTEGER_ONLY
9 # define vprintf viprintf
10 #endif
12 typedef struct
14 const char* fmt;
15 unsigned int pad0[ 3 ];
16 va_list ap;
17 } c99_vprintf_t;
19 #ifndef _REENT_ONLY
21 int
22 vprintf (const char *fmt,
23 va_list ap)
25 c99_vprintf_t args;
27 args.fmt = fmt;
28 va_copy(args.ap,ap);
30 return __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_VPRINTF, &args);
33 #endif /* ! _REENT_ONLY */