MCPcopy Create free account
hub / github.com/ElementsProject/lightning / rbuf_good_size

Function rbuf_good_size

ccan/ccan/rbuf/rbuf.c:21–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21size_t rbuf_good_size(int fd)
22{
23 struct stat st;
24
25 if (fstat(fd, &st) == 0 && st.st_blksize >= 4096)
26 return st.st_blksize;
27 return 4096;
28}
29
30static ssize_t get_more(struct rbuf *rbuf)
31{

Callers 6

tor_autoserviceFunction · 0.85
tor_fixed_serviceFunction · 0.85
mainFunction · 0.85
get_moreFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 2

mainFunction · 0.68
mainFunction · 0.68