Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
21
size_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
30
static ssize_t get_more(struct rbuf *rbuf)
31
{
Callers
6
tor_autoservice
Function · 0.85
tor_fixed_service
Function · 0.85
main
Function · 0.85
get_more
Function · 0.85
main
Function · 0.85
main
Function · 0.85
Calls
no outgoing calls
Tested by
2
main
Function · 0.68
main
Function · 0.68