summaryrefslogtreecommitdiff
path: root/libc/stdlib
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-09 15:43:30 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-09 15:43:30 +0000
commit4f16d2e03a6cc2415a0eefcf50410d1943319543 (patch)
tree8d3132396738369409812b09668e5f39b3459096 /libc/stdlib
parent06f8a796e2d4d88cfd89b21a2b7b195c3612ba81 (diff)
Implement hidden poll, switch user to hidden *printf/*scanf/poll
Diffstat (limited to 'libc/stdlib')
-rw-r--r--libc/stdlib/gcvt.c2
-rw-r--r--libc/stdlib/malloc/heap_debug.c2
-rw-r--r--libc/stdlib/malloc/malloc_debug.c1
-rw-r--r--libc/stdlib/system.c2
4 files changed, 5 insertions, 2 deletions
diff --git a/libc/stdlib/gcvt.c b/libc/stdlib/gcvt.c
index 71bfcec80..75e3bbe70 100644
--- a/libc/stdlib/gcvt.c
+++ b/libc/stdlib/gcvt.c
@@ -5,7 +5,7 @@
#define MAX_NDIGIT 17
char *gcvt (double number, int ndigit, char *buf)
{
- sprintf(buf, "%.*g", (ndigit > MAX_NDIGIT)? MAX_NDIGIT : ndigit, number);
+ __sprintf(buf, "%.*g", (ndigit > MAX_NDIGIT)? MAX_NDIGIT : ndigit, number);
return buf;
}
#endif
diff --git a/libc/stdlib/malloc/heap_debug.c b/libc/stdlib/malloc/heap_debug.c
index c1a127317..4804ba9ee 100644
--- a/libc/stdlib/malloc/heap_debug.c
+++ b/libc/stdlib/malloc/heap_debug.c
@@ -11,6 +11,8 @@
* Written by Miles Bader <miles@gnu.org>
*/
+#define vfprintf __vfprintf
+
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
diff --git a/libc/stdlib/malloc/malloc_debug.c b/libc/stdlib/malloc/malloc_debug.c
index b8f404621..e8711ff77 100644
--- a/libc/stdlib/malloc/malloc_debug.c
+++ b/libc/stdlib/malloc/malloc_debug.c
@@ -12,6 +12,7 @@
*/
#define atoi __atoi
+#define vfprintf __vfprintf
#include <stdlib.h>
#include <stdio.h>
diff --git a/libc/stdlib/system.c b/libc/stdlib/system.c
index 1a3afed25..616d2dda6 100644
--- a/libc/stdlib/system.c
+++ b/libc/stdlib/system.c
@@ -45,7 +45,7 @@ int __libc_system(char *command)
signal(SIGINT, SIG_IGN);
#if 0
- printf("Waiting for child %d\n", pid);
+ __printf("Waiting for child %d\n", pid);
#endif
if (wait4(pid, &wait_val, 0, 0) == -1)