]> git.99rst.org Git - git.git/commit
compat/posix: introduce writev(3p) wrapper
authorPatrick Steinhardt <redacted>
Fri, 7 Aug 2026 06:18:03 +0000 (08:18 +0200)
committerJunio C Hamano <redacted>
Fri, 7 Aug 2026 15:57:25 +0000 (08:57 -0700)
commit8b0ab33247e7ac86f2cecd144991301b6fe6a55b
treef24734da25f7d2715ecf604d1e5873d5d7ae2ea0
parentd35c5399e3e54ac277bb391fc2f6be3e816d312b
compat/posix: introduce writev(3p) wrapper

In a subsequent commit we're going to add the first caller to
writev(3p). Introduce a compatibility wrapper for this syscall that we
can use on systems that don't have this syscall.

The syscall exists on modern Unixes like Linux and macOS, and seemingly
even for NonStop according to [1]. It doesn't seem to exist on Windows
though.

[1]: http://nonstoptools.com/manuals/OSS-SystemCalls.pdf
[2]: https://www.gnu.org/software/gnulib/manual/html_node/writev.html

Helped-by: Johannes Schindelin <redacted>
Signed-off-by: Patrick Steinhardt <redacted>
Signed-off-by: Junio C Hamano <redacted>
Makefile
compat/posix.h
compat/writev.c [new file with mode: 0644]
config.mak.uname
contrib/buildsystems/CMakeLists.txt
meson.build
git clone https://git.99rst.org/PROJECT