diff options
author | Andrew G. Morgan <morgan@kernel.org> | 2001-11-26 03:04:46 +0000 |
---|---|---|
committer | Andrew G. Morgan <morgan@kernel.org> | 2001-11-26 03:04:46 +0000 |
commit | 6d8f508fe9bed97a12d8f2a8dd01a413d7a60560 (patch) | |
tree | 68937571edf317260b842d2e5d169c9de3abe786 /libpam/include | |
parent | d0ae8d409e9e7de2c714197251c4c005fe7d7ad4 (diff) | |
download | pam-6d8f508fe9bed97a12d8f2a8dd01a413d7a60560.tar.gz pam-6d8f508fe9bed97a12d8f2a8dd01a413d7a60560.tar.bz2 pam-6d8f508fe9bed97a12d8f2a8dd01a413d7a60560.zip |
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.
Diffstat (limited to 'libpam/include')
-rw-r--r-- | libpam/include/security/pam_malloc.h | 18 |
1 files changed, 10 insertions, 8 deletions
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 <sys/types.h> -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 */ |