summaryrefslogtreecommitdiff
path: root/libc/stdio/vdprintf.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-14 00:58:03 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-14 00:58:03 +0000
commitaf0172162f7c653cad6a11ed1c1a5459bc154465 (patch)
tree70031dad1e7286d58762da7b9e3d3f93d043c278 /libc/stdio/vdprintf.c
parentc8609543a9a8bf6559c2931dbbef6b3c41b3fbf2 (diff)
hidden_def/hidden_proto: convert all users (I hope) termios split, add some missing headers, other jump relocs removed
Diffstat (limited to 'libc/stdio/vdprintf.c')
-rw-r--r--libc/stdio/vdprintf.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/libc/stdio/vdprintf.c b/libc/stdio/vdprintf.c
index 1822f69b7..f36987477 100644
--- a/libc/stdio/vdprintf.c
+++ b/libc/stdio/vdprintf.c
@@ -8,7 +8,10 @@
#include "_stdio.h"
#include <stdarg.h>
-int attribute_hidden __vdprintf(int filedes, const char * __restrict format, va_list arg)
+libc_hidden_proto(vfprintf)
+libc_hidden_proto(fflush_unlocked)
+
+int vdprintf(int filedes, const char * __restrict format, va_list arg)
{
FILE f;
int rv;
@@ -47,11 +50,11 @@ int attribute_hidden __vdprintf(int filedes, const char * __restrict format, va_
#endif
f.__nextopen = NULL;
- rv = __vfprintf(&f, format, arg);
+ rv = vfprintf(&f, format, arg);
#ifdef __STDIO_BUFFERS
/* If not buffering, then fflush is unnecessary. */
- if ((rv > 0) && __fflush_unlocked(&f)) {
+ if ((rv > 0) && fflush_unlocked(&f)) {
rv = -1;
}
#endif
@@ -60,4 +63,5 @@ int attribute_hidden __vdprintf(int filedes, const char * __restrict format, va_
return rv;
}
-strong_alias(__vdprintf,vdprintf)
+libc_hidden_proto(vdprintf)
+libc_hidden_def(vdprintf)