]> git.ipfire.org Git - thirdparty/git.git/commit
compat/posix: introduce writev(3p) wrapper
authorPatrick Steinhardt <ps@pks.im>
Fri, 13 Mar 2026 06:45:16 +0000 (07:45 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 13 Mar 2026 15:54:14 +0000 (08:54 -0700)
commit3b9b2c2a29a1d529ca9884fa0a6529f6e2496abe
treee7548eabbdb68250a4fadc3c3bf27749e88a89dd
parenta5816e4596891f1c7552b049053e94929c699b78
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

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
compat/posix.h
compat/writev.c [new file with mode: 0644]
config.mak.uname
meson.build