File: xmalloc.h

package info (click to toggle)
nilfs-tools 2.2.11-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,852 kB
  • sloc: ansic: 15,594; sh: 4,374; perl: 4,174; makefile: 140
file content (11 lines) | stat: -rw-r--r-- 300 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
/*
 * Code borrowed from util-linux-2.12r/mount/xmalloc.h
 */
#include <sys/types.h>
#include <stdarg.h>

extern void *xmalloc(size_t size);
extern void *xrealloc(void *p, size_t size);
extern char *xstrdup(const char *s);
extern void die(int err, const char *fmt, ...);
extern void (*at_die)(void);