2002-12-09 07:00:07 +00:00
|
|
|
#ifndef PROCPS_PROC_ALLOC_H
|
|
|
|
#define PROCPS_PROC_ALLOC_H
|
|
|
|
|
2016-04-16 17:03:57 +10:00
|
|
|
#include <features.h>
|
2002-12-09 07:00:07 +00:00
|
|
|
|
2015-06-20 07:43:02 +10:00
|
|
|
__BEGIN_DECLS
|
2002-12-09 07:00:07 +00:00
|
|
|
|
2016-04-16 17:03:57 +10:00
|
|
|
#define MALLOC __attribute__ ((__malloc__))
|
2011-11-16 10:49:02 -06:00
|
|
|
|
|
|
|
extern void *xcalloc(unsigned int size) MALLOC;
|
2012-11-02 17:50:50 +00:00
|
|
|
extern void *xmalloc(size_t size) MALLOC;
|
2011-11-16 10:49:02 -06:00
|
|
|
extern void *xrealloc(void *oldp, unsigned int size) MALLOC;
|
|
|
|
extern char *xstrdup(const char *str) MALLOC;
|
2002-12-09 07:00:07 +00:00
|
|
|
|
2015-06-20 07:43:02 +10:00
|
|
|
__END_DECLS
|
2002-12-09 07:00:07 +00:00
|
|
|
|
|
|
|
#endif
|