diff options
| author | Patrick Steinhardt <ps@pks.im> | 2026-03-13 07:45:17 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-03-13 08:54:14 -0700 |
| commit | 1970fcef93adcc5a35f6468d00a5a634d5af2b3c (patch) | |
| tree | 72a7d14cd6856beff59ccdf49a71dcda0066f06a /write-or-die.h | |
| parent | 3b9b2c2a29a1d529ca9884fa0a6529f6e2496abe (diff) | |
| download | git-1970fcef93adcc5a35f6468d00a5a634d5af2b3c.tar.xz | |
wrapper: introduce writev(3p) wrappers
In the preceding commit we have added a compatibility wrapper for the
writev(3p) syscall. Introduce some generic wrappers for this function
that we nowadays take for granted in the Git codebase.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'write-or-die.h')
| -rw-r--r-- | write-or-die.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/write-or-die.h b/write-or-die.h index 65a5c42a47..ae3d7d88b8 100644 --- a/write-or-die.h +++ b/write-or-die.h @@ -7,6 +7,7 @@ void fprintf_or_die(FILE *, const char *fmt, ...); void fwrite_or_die(FILE *f, const void *buf, size_t count); void fflush_or_die(FILE *f); void write_or_die(int fd, const void *buf, size_t count); +void writev_or_die(int fd, struct iovec *iov, int iovlen); /* * These values are used to help identify parts of a repository to fsync. |
