git/reftable
Patrick Steinhardt 01e49941d6 reftable/system: provide thin wrapper for tempfile subsystem
We use the tempfile subsystem to write temporary tables, but given that
we're in the process of converting the reftable library to become
standalone we cannot use this subsystem directly anymore. While we could
in theory convert the code to use mkstemp(3p) instead, we'd lose access
to our infrastructure that automatically prunes tempfiles via atexit(3p)
or signal handlers.

Provide a thin wrapper for the tempfile subsystem instead. Like this,
the compatibility shim is fully self-contained in "reftable/system.c".
Downstream users of the reftable library would have to implement their
own tempfile shims by replacing "system.c" with a custom version.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2024-11-19 12:23:10 +09:00
..
LICENSE
basics.c reftable/system: stop depending on "hash.h" 2024-11-19 12:23:10 +09:00
basics.h reftable/system: stop depending on "hash.h" 2024-11-19 12:23:10 +09:00
block.c reftable: handle trivial `reftable_buf` errors 2024-10-17 16:59:56 -04:00
block.h reftable: convert from `strbuf` to `reftable_buf` 2024-10-17 16:59:56 -04:00
blocksource.c reftable/blocksource: adapt interface name 2024-10-17 16:59:56 -04:00
blocksource.h reftable/blocksource: adapt interface name 2024-10-17 16:59:56 -04:00
constants.h reftable: make the compaction factor configurable 2024-05-13 17:02:39 -07:00
error.c reftable/error: introduce out-of-memory error code 2024-10-02 07:53:50 -07:00
iter.c reftable: handle trivial `reftable_buf` errors 2024-10-17 16:59:56 -04:00
iter.h reftable: convert from `strbuf` to `reftable_buf` 2024-10-17 16:59:56 -04:00
merged.c reftable/system: stop depending on "hash.h" 2024-11-19 12:23:10 +09:00
merged.h reftable/system: stop depending on "hash.h" 2024-11-19 12:23:10 +09:00
pq.c reftable: introduce `REFTABLE_FREE_AND_NULL()` 2024-10-02 07:53:56 -07:00
pq.h reftable/pq: handle allocation failures when adding entries 2024-10-02 07:53:55 -07:00
reader.c reftable/system: stop depending on "hash.h" 2024-11-19 12:23:10 +09:00
reader.h reftable/system: stop depending on "hash.h" 2024-11-19 12:23:10 +09:00
record.c reftable: handle trivial `reftable_buf` errors 2024-10-17 16:59:56 -04:00
record.h reftable/record: adapt `reftable_record_key()` to handle allocation failures 2024-10-17 16:59:56 -04:00
reftable-basics.h reftable/system: stop depending on "hash.h" 2024-11-19 12:23:10 +09:00
reftable-blocksource.h
reftable-error.h reftable/error: introduce out-of-memory error code 2024-10-02 07:53:50 -07:00
reftable-iterator.h reftable/generic: adapt interface to allow reuse of iterators 2024-05-13 17:04:18 -07:00
reftable-merged.h reftable/system: stop depending on "hash.h" 2024-11-19 12:23:10 +09:00
reftable-reader.h reftable/system: stop depending on "hash.h" 2024-11-19 12:23:10 +09:00
reftable-record.h reftable/system: stop depending on "hash.h" 2024-11-19 12:23:10 +09:00
reftable-stack.h Merge branch 'ps/reftable-alloc-failures' 2024-10-10 14:22:25 -07:00
reftable-writer.h reftable/stack: stop using `fsync_component()` directly 2024-11-19 12:23:10 +09:00
stack.c reftable/system: provide thin wrapper for tempfile subsystem 2024-11-19 12:23:10 +09:00
stack.h reftable: make the compaction factor configurable 2024-05-13 17:02:39 -07:00
system.c reftable/system: provide thin wrapper for tempfile subsystem 2024-11-19 12:23:10 +09:00
system.h reftable/system: provide thin wrapper for tempfile subsystem 2024-11-19 12:23:10 +09:00
tree.c reftable/tree: handle allocation failures 2024-10-02 07:53:55 -07:00
tree.h reftable/tree: handle allocation failures 2024-10-02 07:53:55 -07:00
writer.c reftable/system: stop depending on "hash.h" 2024-11-19 12:23:10 +09:00
writer.h reftable: convert from `strbuf` to `reftable_buf` 2024-10-17 16:59:56 -04:00