MCPcopy Create free account
hub / github.com/axboe/liburing / write_buf

Function write_buf

test/splice.c:50–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50static int write_buf(int fd, const void *buf, int len)
51{
52 int ret;
53
54 while (len) {
55 ret = write(fd, buf, len);
56 if (ret < 0)
57 return ret;
58 len -= ret;
59 buf += ret;
60 }
61 return 0;
62}
63
64static int check_content(int fd, void *buf, int len, const void *src)
65{

Callers 3

init_splice_ctxFunction · 0.85
splice_from_pipeFunction · 0.85
check_teeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected