]> Savannah Git Hosting - gnulib.git/commit
clean-temp-simple: New module.
authorBruno Haible <bruno@clisp.org>
Mon, 22 Mar 2021 21:48:23 +0000 (22:48 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 22 Mar 2021 21:48:23 +0000 (22:48 +0100)
commit83c222f7a65279e4e659a4caf8b85d34f91d5eeb
tree9a57b0ec52989a98acdfdd22ef5f55f1aea9dcbe
parentfe8e6696806c54dd0f0e15f6d3464241f529d874
clean-temp-simple: New module.

* lib/clean-temp-simple.h: New file, based on lib/clean-temp.h.
* lib/clean-temp-private.h: New file, based on lib/clean-temp.c.
* lib/clean-temp-simple.c: New file, based on lib/clean-temp.c.
* lib/clean-temp.h: Include clean-temp-simple.h.
(register_temporary_file, unregister_temporary_file,
cleanup_temporary_file): Remove declarations.
* lib/clean-temp.c: Don't include <limits.h>, <stdint.h>. Include
<signal.h>, <stdio.h>, clean-temp-simple.h, clean-temp-private.h.
(file_cleanup_list_lock, file_cleanup_list): Moved to
clean-temp-simple.c.
(struct tempdir, dir_cleanup_list, struct closeable_fd, descriptors):
Moved to clean-temp-private.h.
(string_equals, SIZE_BITS, string_hash, fatal_signal_set,
init_fatal_signal_set, asyncsafe_close): Moved to clean-temp-simple.c.
(asyncsafe_fclose_variant): Use get_fatal_signal_set() here.
(cleanup_action, do_init_clean_temp, clean_temp_once, init_clean_temp,
register_temporary_file, unregister_temporary_file, do_unlink,
cleanup_temporary_file): Moved to clean-temp-simple.c.
(create_temp_dir, cleanup_temp_file, cleanup_temp_dir_contents,
gen_register_open_temp, close_temp): Update for changed function names.
(fclose_variant_temp): Don't call init_fatal_signal_set().
* modules/clean-temp-simple: New file, based on modules/clean-temp.
* modules/clean-temp (Depends-on): Add clean-temp-simple, list. Remove
stdint.
(configure.ac): Don't define SIGNAL_SAFE_LIST here.
ChangeLog
lib/clean-temp-private.h [new file with mode: 0644]
lib/clean-temp-simple.c [new file with mode: 0644]
lib/clean-temp-simple.h [new file with mode: 0644]
lib/clean-temp.c
lib/clean-temp.h
modules/clean-temp
modules/clean-temp-simple [new file with mode: 0644]