diff options
author | Jim Meyering <jim@meyering.net> | 1997-10-25 21:49:45 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-10-25 21:49:45 +0000 |
commit | 01b84d9480ef51a21a143bdc647f31331a05c639 (patch) | |
tree | 7330197bb23e425aa520e21602c5d5f7207ec268 /lib | |
parent | c740c3f8ae14ee8cb7603d3ae2024741129dd620 (diff) | |
download | coreutils-01b84d9480ef51a21a143bdc647f31331a05c639.tar.xz |
.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/xalloc.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/xalloc.h b/lib/xalloc.h new file mode 100644 index 000000000..a66226dd3 --- /dev/null +++ b/lib/xalloc.h @@ -0,0 +1,20 @@ +#undef PARAMS +#if defined (__STDC__) && __STDC__ +# define PARAMS(Args) Args +#else +# define PARAMS(Args) () +#endif + +/* Exit value when the requested amount of memory is not available. + The caller may set it to some other value. */ +extern int xalloc_exit_failure; + +/* FIXME: describe */ +extern char *const xalloc_msg_memory_exhausted; + +/* FIXME: describe */ +extern void (*xalloc_fail_func) (); + +void *xmalloc PARAMS ((size_t n)); +void *xcalloc PARAMS ((size_t n, size_t s)); +void *xrealloc PARAMS ((void *p, size_t n)); |