aboutsummaryrefslogtreecommitdiff
path: root/reftable/system.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-04-01 19:05:13 +0900
committerJunio C Hamano <gitster@pobox.com>2025-04-01 19:05:13 +0900
commitc7c4e5e419952908e98d29d4eb418f91074a8c8a (patch)
treee1280465a5a0e163f1baf82681e3707b6fde3c3e /reftable/system.h
parent683c54c999c301c2cd6f715c411407c413b1d84e (diff)
parent8f6a2dbe34017e616f8bb35bc668538eb11a8d33 (diff)
downloadgit-c7c4e5e419952908e98d29d4eb418f91074a8c8a.tar.xz
Merge branch 'ps/reftable-sans-compat-util' into ps/reftable-api-revamp
* ps/reftable-sans-compat-util: Makefile: skip reftable library for Coccinelle reftable: decouple from Git codebase by pulling in "compat/posix.h" git-compat-util.h: split out POSIX-emulating bits compat/mingw: split out POSIX-related bits reftable/basics: introduce `REFTABLE_UNUSED` annotation reftable/basics: stop using `SWAP()` macro reftable/stack: stop using `sleep_millisec()` reftable/system: introduce `reftable_rand()` reftable/reader: stop using `ARRAY_SIZE()` macro reftable/basics: provide wrappers for big endian conversion reftable/basics: stop using `st_mult()` in array allocators reftable: stop using `BUG()` in trivial cases reftable/record: don't `BUG()` in `reftable_record_cmp()` reftable/record: stop using `BUG()` in `reftable_record_init()` reftable/record: stop using `COPY_ARRAY()` reftable/blocksource: stop using `xmmap()` reftable/stack: stop using `write_in_full()` reftable/stack: stop using `read_in_full()`
Diffstat (limited to 'reftable/system.h')
-rw-r--r--reftable/system.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/reftable/system.h b/reftable/system.h
index d02eacea8f..10055fbff2 100644
--- a/reftable/system.h
+++ b/reftable/system.h
@@ -11,10 +11,16 @@ https://developers.google.com/open-source/licenses/bsd
/* This header glues the reftable library to the rest of Git */
-#include "git-compat-util.h"
+#include "compat/posix.h"
#include "compat/zlib-compat.h"
/*
+ * Return a random 32 bit integer. This function is expected to return
+ * pre-seeded data.
+ */
+uint32_t reftable_rand(void);
+
+/*
* An implementation-specific temporary file. By making this specific to the
* implementation it becomes possible to tie temporary files into any kind of
* signal or atexit handlers for cleanup on abnormal situations.