1 /* Copyright 2005, 2007 Shaun Jackman
2 * Permission to use, copy, modify, and distribute this software
3 * is freely granted, provided that this notice is preserved.
16 _vdprintf_r (struct _reent
*ptr
,
18 const char *__restrict format
,
23 size_t n
= sizeof buf
;
25 _REENT_SMALL_CHECK_INIT (ptr
);
26 p
= _vasnprintf_r (ptr
, buf
, &n
, format
, ap
);
29 n
= _write_r (ptr
, fd
, p
, n
);
35 #ifdef _NANO_FORMATTED_IO
37 _vdiprintf_r (struct _reent
*, int, const char *, __VALIST
)
38 _ATTRIBUTE ((__alias__("_vdprintf_r")));
45 const char *__restrict format
,
48 return _vdprintf_r (_REENT
, fd
, format
, ap
);
51 #ifdef _NANO_FORMATTED_IO
53 vdiprintf (int, const char *, __VALIST
)
54 _ATTRIBUTE ((__alias__("vdprintf")));
56 #endif /* ! _REENT_ONLY */