From 6d8f508fe9bed97a12d8f2a8dd01a413d7a60560 Mon Sep 17 00:00:00 2001 From: "Andrew G. Morgan" Date: Mon, 26 Nov 2001 03:04:46 +0000 Subject: Relevant BUGIDs: 485454 Purpose of commit: revive feature Commit summary: --------------- malloc et al. debugging was not supported by the new autoconf setup, this commit rectifies that. It also adds a couple of header file inclusions that seem to be needed with recent glibc headers. --- libpam/include/security/pam_malloc.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'libpam/include/security') diff --git a/libpam/include/security/pam_malloc.h b/libpam/include/security/pam_malloc.h index 62777ca8..cc95d7de 100644 --- a/libpam/include/security/pam_malloc.h +++ b/libpam/include/security/pam_malloc.h @@ -23,20 +23,22 @@ /* #define valloc(s) pam_valloc(s,__FILE__,__FUNCTION__,__LINE__) */ /* #define alloca(s) pam_alloca(s,__FILE__,__FUNCTION__,__LINE__) */ #define exit(i) pam_exit(i,__FILE__,__FUNCTION__,__LINE__) +#define strdup(s) pam_strdup(s,__FILE__,__FUNCTION__,__LINE__) /* these are the prototypes for the wrapper functions */ #include -extern void *pam_malloc(size_t s,const char *,const char *,const int); -extern void *pam_calloc(size_t n,size_t s,const char *,const char *,const int); -extern void pam_free(void *x,const char *,const char *,const int); +extern void *pam_malloc(size_t s,const char *,const char *, int); +extern void *pam_calloc(size_t n,size_t s,const char *,const char *, int); +extern void pam_free(void *x,const char *,const char *, int); extern void *pam_memalign(size_t a,size_t s - ,const char *,const char *,const int); -extern void *pam_realloc(void *x,size_t s,const char *,const char *,const int); -extern void *pam_valloc(size_t s,const char *,const char *,const int); -extern void *pam_alloca(size_t s,const char *,const char *,const int); -extern void pam_exit(int i,const char *,const char *,const int); + ,const char *,const char *, int); +extern void *pam_realloc(void *x,size_t s,const char *,const char *, int); +extern void *pam_valloc(size_t s,const char *,const char *, int); +extern void *pam_alloca(size_t s,const char *,const char *, int); +extern void pam_exit(int i,const char *,const char *, int); +extern char *pam_strdup(const char *,const char *,const char *, int); /* these are the flags used to turn on and off diagnostics */ -- cgit v1.2.3