Mercurial > hg > octave-kai > gnulib-hg
view lib/xalloc.h @ 1192:fcb9d43860d6
(make_path): Try to change ownership only if we've just created the
directory. Fix latent bug (s/&&/||/ in two places -- also, note that
it could not be exercised via install or mkdir) whereby chown would
not be invoked when only one of owner/group is not -1.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Fri, 02 Jan 1998 23:15:39 +0000 |
parents | 8de2d981b46f |
children | 394e749157f3 |
line wrap: on
line source
#ifndef PARAMS # if defined PROTOTYPES || (defined __STDC__ && __STDC__) # define PARAMS(Args) Args # else # define PARAMS(Args) () # endif #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));