Module Name: src Committed By: christos Date: Mon Sep 6 14:52:26 UTC 2010
Modified Files: src/include: stdio.h Log Message: Add dprintf and vdprintf. XXX: Might ifdef it if too many things break. To generate a diff of this commit: cvs rdiff -u -r1.76 -r1.77 src/include/stdio.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/include/stdio.h diff -u src/include/stdio.h:1.76 src/include/stdio.h:1.77 --- src/include/stdio.h:1.76 Thu Feb 25 13:37:12 2010 +++ src/include/stdio.h Mon Sep 6 10:52:26 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: stdio.h,v 1.76 2010/02/25 18:37:12 joerg Exp $ */ +/* $NetBSD: stdio.h,v 1.77 2010/09/06 14:52:26 christos Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -492,6 +492,13 @@ #endif /* !_REENTRANT && !_PTHREADS */ #endif /* !_ANSI_SOURCE */ +#if (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE) +int vdprintf(int, const char * __restrict, _BSD_VA_LIST_) + __printflike(2, 0); +int dprintf(int, const char * __restrict, ...) + __printflike(2, 3); +#endif /* (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE) */ + #if (_POSIX_C_SOURCE - 0) >= 199506L || (_XOPEN_SOURCE - 0) >= 500 || \ defined(_REENTRANT) || defined(_NETBSD_SOURCE) #define getc_unlocked(fp) __sgetc(fp)