From 4f16d2e03a6cc2415a0eefcf50410d1943319543 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Fri, 9 Dec 2005 15:43:30 +0000 Subject: Implement hidden poll, switch user to hidden *printf/*scanf/poll --- libc/stdlib/gcvt.c | 2 +- libc/stdlib/malloc/heap_debug.c | 2 ++ libc/stdlib/malloc/malloc_debug.c | 1 + libc/stdlib/system.c | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-) (limited to 'libc/stdlib') 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 */ +#define vfprintf __vfprintf + #include #include #include 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 #include 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) -- cgit v1.2.3