Hash :
9ad38b46
Author :
Date :
2021-03-22T02:50:07
fatal-signal: Remove dependency upon xalloc. * lib/fatal-signal.h (at_fatal_signal): Change return type to 'int'. * lib/fatal-signal.c: Don't include xalloc.h. (at_fatal_signal): Return an error indicator. * modules/fatal-signal (Depends-on): Remove xalloc. * NEWS: Mention the change. * lib/term-style-control.c: Include xalloc.h. (ensure_other_signal_handlers): Test return value of at_fatal_signal. * lib/clean-temp.c (do_init_clean_temp): Likewise. * lib/wait-process.c (register_slave_subprocess): Likewise. * modules/term-style-control (Depends-on): Add xalloc-die. * modules/clean-temp (Depends-on): Likewise. * modules/wait-process (Depends-on): Likewise.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
Description:
Temporary directories and temporary files with automatic cleanup.
Files:
lib/clean-temp.h
lib/clean-temp.c
Depends-on:
c99
stdbool
stdint
unistd
lock
thread-optim
error
fatal-signal
asyncsafe-spin
open
pathmax
tmpdir
mkdtemp
rmdir
xalloc
xalloc-die
xmalloca
linkedhash-list
linked-list
xlist
gettext-h
configure.ac:
AC_DEFINE([SIGNAL_SAFE_LIST], [1], [Define if lists must be signal-safe.])
Makefile.am:
lib_SOURCES += clean-temp.h clean-temp.c
Include:
"clean-temp.h"
Link:
$(LIB_GETRANDOM)
$(LIBTHREAD)
License:
GPL
Maintainer:
all