From 22f3ae27019cc24faaac443b843a3683dd4aef67 Mon Sep 17 00:00:00 2001 From: rsc Date: Wed, 9 Jun 2004 14:25:42 +0000 Subject: catch strdup, malloc, and friends --- include/libc.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/libc.h b/include/libc.h index 18ac25aa..3b472e39 100644 --- a/include/libc.h +++ b/include/libc.h @@ -40,8 +40,8 @@ extern int strcmp(char*, char*); extern char* strcpy(char*, char*); */ extern char* strecpy(char*, char*, char*); - /* -extern char* strdup(char*); +extern char* p9strdup(char*); +/* extern char* strncat(char*, char*, long); extern char* strncpy(char*, char*, long); extern int strncmp(char*, char*, long); @@ -128,6 +128,8 @@ extern void* malloctopoolblock(void*); #define realloc p9realloc #define calloc p9calloc #define free p9free +#undef strdup +#define strdup p9strdup #endif /* -- cgit v1.2.3