git/reftable
Patrick Steinhardt 8fd7a0ebe1 reftable: don't second-guess errors from flock interface
The `flock` interface is implemented as part of "reftable/system.c" and
thus needs to be implemented by the integrator between the reftable
library and its parent code base. As such, we cannot rely on any
specific implementation thereof.

Regardless of that, users of the `flock` subsystem rely on `errno` being
set to specific values. This is fragile and not documented anywhere and
doesn't really make for a good interface.

Refactor the code so that the implementations themselves are expected to
return reftable-specific error codes. Our implementation of the `flock`
subsystem already knows to do this for all error paths except one.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2025-08-12 07:41:00 -07:00
..
LICENSE reftable: add LICENSE 2021-10-08 10:45:48 -07:00
basics.c reftable: fix formatting of the license header 2025-04-07 14:53:09 -07:00
basics.h reftable: make REFTABLE_UNUSED C99 compatible 2025-05-29 09:18:53 -07:00
block.c Merge branch 'ps/reftable-read-block-perffix' 2025-05-19 16:02:48 -07:00
block.h Merge branch 'ps/reftable-api-revamp' 2025-04-29 14:21:30 -07:00
blocksource.c reftable/block: rename `block` to `block_data` 2025-04-07 14:53:10 -07:00
blocksource.h reftable/block: rename `block` to `block_data` 2025-04-07 14:53:10 -07:00
constants.h reftable/constants: make block types part of the public interface 2025-04-07 14:53:12 -07:00
error.c reftable: fix formatting of the license header 2025-04-07 14:53:09 -07:00
iter.c reftable/constants: make block types part of the public interface 2025-04-07 14:53:12 -07:00
iter.h reftable/block: rename `block_reader` to `reftable_block` 2025-04-07 14:53:10 -07:00
merged.c reftable/constants: make block types part of the public interface 2025-04-07 14:53:12 -07:00
merged.h reftable/reader: rename data structure to "table" 2025-04-07 14:53:09 -07:00
pq.c reftable: fix formatting of the license header 2025-04-07 14:53:09 -07:00
pq.h reftable: fix formatting of the license header 2025-04-07 14:53:09 -07:00
record.c Merge branch 'ps/reftable-api-revamp' 2025-04-29 14:21:30 -07:00
record.h reftable: fix formatting of the license header 2025-04-07 14:53:09 -07:00
reftable-basics.h reftable/block: create public interface for reading blocks 2025-04-07 14:53:11 -07:00
reftable-block.h reftable: fix perf regression when reading blocks of unwanted type 2025-05-12 10:55:24 -07:00
reftable-blocksource.h reftable/block: rename `block` to `block_data` 2025-04-07 14:53:10 -07:00
reftable-constants.h reftable/constants: make block types part of the public interface 2025-04-07 14:53:12 -07:00
reftable-error.h reftable: fix formatting of the license header 2025-04-07 14:53:09 -07:00
reftable-iterator.h reftable: fix formatting of the license header 2025-04-07 14:53:09 -07:00
reftable-merged.h reftable/reader: rename data structure to "table" 2025-04-07 14:53:09 -07:00
reftable-record.h reftable: fix formatting of the license header 2025-04-07 14:53:09 -07:00
reftable-stack.h reftable/stack: allow passing flags to `reftable_stack_add()` 2025-08-12 07:40:59 -07:00
reftable-table.h reftable/table: move printing logic into test helper 2025-04-07 14:53:13 -07:00
reftable-writer.h reftable/writer: fix type used for number of records 2025-08-12 07:40:58 -07:00
stack.c reftable: don't second-guess errors from flock interface 2025-08-12 07:41:00 -07:00
stack.h reftable/reader: rename data structure to "table" 2025-04-07 14:53:09 -07:00
system.c reftable: don't second-guess errors from flock interface 2025-08-12 07:41:00 -07:00
system.h reftable: don't second-guess errors from flock interface 2025-08-12 07:41:00 -07:00
table.c reftable: fix perf regression when reading blocks of unwanted type 2025-05-12 10:55:24 -07:00
table.h reftable/table: add `reftable_table` to the public interface 2025-04-07 14:53:12 -07:00
tree.c reftable: fix formatting of the license header 2025-04-07 14:53:09 -07:00
tree.h reftable: fix formatting of the license header 2025-04-07 14:53:09 -07:00
writer.c reftable/writer: drop Git-specific `QSORT()` macro 2025-08-12 07:40:59 -07:00
writer.h reftable: fix formatting of the license header 2025-04-07 14:53:09 -07:00