2002-12-09 12:30:07 +05:30
|
|
|
#ifndef PROCPS_PROC_ALLOC_H
|
|
|
|
#define PROCPS_PROC_ALLOC_H
|
|
|
|
|
|
|
|
#include "procps.h"
|
|
|
|
|
|
|
|
EXTERN_C_BEGIN
|
|
|
|
|
2011-11-16 22:19:02 +05:30
|
|
|
/* change xalloc_err_handler to override the default fprintf(stderr... */
|
|
|
|
extern message_fn xalloc_err_handler;
|
|
|
|
|
|
|
|
extern void *xcalloc(unsigned int size) MALLOC;
|
2002-12-09 12:30:07 +05:30
|
|
|
extern void *xmalloc(unsigned int size) MALLOC;
|
2011-11-16 22:19:02 +05:30
|
|
|
extern void *xrealloc(void *oldp, unsigned int size) MALLOC;
|
|
|
|
extern char *xstrdup(const char *str) MALLOC;
|
2002-12-09 12:30:07 +05:30
|
|
|
|
|
|
|
EXTERN_C_END
|
|
|
|
|
|
|
|
#endif
|