From 75abb31084d8b79e8f98f4670d9a1cccbfdf9ae9 Mon Sep 17 00:00:00 2001 From: brad <> Date: Wed, 30 Jan 2013 00:08:13 +0000 Subject: [PATCH] Add support for POSIX.1-2008 functions dprintf(3) and vdprintf(3). Feedback from millert@ guenther@ OK guenther@ man page bits OK jmc@ --- src/include/stdio.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/include/stdio.h b/src/include/stdio.h index a885ff1e..72fc4378 100644 --- a/src/include/stdio.h +++ b/src/include/stdio.h @@ -1,4 +1,4 @@ -/* $OpenBSD: stdio.h,v 1.42 2012/03/21 23:44:35 fgsch Exp $ */ +/* $OpenBSD: stdio.h,v 1.43 2013/01/30 00:08:13 brad Exp $ */ /* $NetBSD: stdio.h,v 1.18 1996/04/25 18:29:21 jtc Exp $ */ /*- @@ -212,6 +212,9 @@ __END_DECLS */ __BEGIN_DECLS void clearerr(FILE *); +#if __POSIX_VISIBLE >= 200809 +int dprintf(int, const char * __restrict, ...); +#endif int fclose(FILE *); int feof(FILE *); int ferror(FILE *); @@ -272,6 +275,9 @@ int ungetc(int, FILE *); int vfprintf(FILE *, const char *, __va_list); int vprintf(const char *, __va_list); int vsprintf(char *, const char *, __va_list); +#if __POSIX_VISIBLE >= 200809 +int vdprintf(int, const char * __restrict, __va_list); +#endif #if __ISO_C_VISIBLE >= 1999 || __BSD_VISIBLE int snprintf(char *, size_t, const char *, ...)