MCPcopy Index your code
hub / github.com/git/git / reftable_write_data

Function reftable_write_data

reftable/stack.c:32–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32static ssize_t reftable_write_data(int fd, const void *data, size_t size)
33{
34 size_t total_written = 0;
35 const char *p = data;
36
37 while (total_written < size) {
38 ssize_t bytes_written = write(fd, p, size - total_written);
39 if (bytes_written < 0 && (errno == EAGAIN || errno == EINTR))
40 continue;
41 if (bytes_written < 0)
42 return REFTABLE_IO_ERROR;
43
44 total_written += bytes_written;
45 p += bytes_written;
46 }
47
48 return total_written;
49}
50
51struct fd_writer {
52 const struct reftable_write_options *opts;

Callers 3

fd_writer_writeFunction · 0.85
reftable_addition_commitFunction · 0.85
stack_compact_rangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected