2002-12-09 12:30:07 +05:30
|
|
|
#ifndef PROCPS_PROC_ALLOC_H
|
|
|
|
#define PROCPS_PROC_ALLOC_H
|
|
|
|
|
2016-04-16 12:33:57 +05:30
|
|
|
#include <features.h>
|
2002-12-09 12:30:07 +05:30
|
|
|
|
2015-06-20 03:13:02 +05:30
|
|
|
__BEGIN_DECLS
|
2002-12-09 12:30:07 +05:30
|
|
|
|
2016-04-16 12:33:57 +05:30
|
|
|
#define MALLOC __attribute__ ((__malloc__))
|
2011-11-16 22:19:02 +05:30
|
|
|
|
|
|
|
extern void *xcalloc(unsigned int size) MALLOC;
|
2012-11-02 23:20:50 +05:30
|
|
|
extern void *xmalloc(size_t 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
|
|
|
|
2015-06-20 03:13:02 +05:30
|
|
|
__END_DECLS
|
2002-12-09 12:30:07 +05:30
|
|
|
|
|
|
|
#endif
|