summaryrefslogtreecommitdiff
path: root/libc/stdio/_vfprintf_internal.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-04-09 19:51:18 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-04-09 19:51:18 +0000
commit36ac7bee0f6b0be35eafd74e0fc865edd2352197 (patch)
treeb557dfbf03da9612bc09906fa3fb7559f556fed8 /libc/stdio/_vfprintf_internal.c
parentf1459b13206cee20f322a53bb659a8735e2c8de0 (diff)
Factor out the core of vprintf() into separate function
vprintf_internal, so that: * vprintf() does locking and __STDIO_STREAM_TRANS_TO_WRITE thing, then calls vprintf_internal * vsnprintf, vdprintf.c, vasprintf.c use vprintf_internal directly This makes sprintf faster (since it doesn't do any locking) and stops it from pulling in fseek in static compile.
Diffstat (limited to 'libc/stdio/_vfprintf_internal.c')
-rw-r--r--libc/stdio/_vfprintf_internal.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libc/stdio/_vfprintf_internal.c b/libc/stdio/_vfprintf_internal.c
new file mode 100644
index 000000000..40bf39e26
--- /dev/null
+++ b/libc/stdio/_vfprintf_internal.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2004 Manuel Novoa III <mjn3@uclibc.org>
+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ *
+ * Dedicated to Toni. See uClibc/DEDICATION.mjn3 for details.
+ */
+#define L__vfprintf_internal
+#include "_vfprintf.c"