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
basics.h reftable: make REFTABLE_UNUSED C99 compatible 2025-05-29 09:18:53 -07:00
block.c
block.h
blocksource.c
blocksource.h
constants.h
error.c
iter.c
iter.h
merged.c
merged.h
pq.c
pq.h
record.c
record.h
reftable-basics.h
reftable-block.h
reftable-blocksource.h
reftable-constants.h
reftable-error.h
reftable-iterator.h
reftable-merged.h
reftable-record.h
reftable-stack.h reftable/stack: allow passing flags to `reftable_stack_add()` 2025-08-12 07:40:59 -07:00
reftable-table.h
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
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
table.h
tree.c
tree.h
writer.c reftable/writer: drop Git-specific `QSORT()` macro 2025-08-12 07:40:59 -07:00
writer.h