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

Function read_buf

test/splice.c:36–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34static int has_tee = 0;
35
36static int read_buf(int fd, void *buf, int len)
37{
38 int ret;
39
40 while (len) {
41 ret = read(fd, buf, len);
42 if (ret < 0)
43 return ret;
44 len -= ret;
45 buf += ret;
46 }
47 return 0;
48}
49
50static int write_buf(int fd, const void *buf, int len)
51{

Callers 2

check_contentFunction · 0.70
init_splice_ctxFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected