Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/include Add dprintf and vdprintf. XXX: Might ifdef it if too...
details: https://anonhg.NetBSD.org/src/rev/8efed860a5e9
branches: trunk
changeset: 757572:8efed860a5e9
user: christos <christos%NetBSD.org@localhost>
date: Mon Sep 06 14:52:26 2010 +0000
description:
Add dprintf and vdprintf. XXX: Might ifdef it if too many things break.
diffstat:
include/stdio.h | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r ed2f4acdc2b1 -r 8efed860a5e9 include/stdio.h
--- a/include/stdio.h Mon Sep 06 14:50:34 2010 +0000
+++ b/include/stdio.h Mon Sep 06 14:52:26 2010 +0000
@@ -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)
Home |
Main Index |
Thread Index |
Old Index