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

Function read_all

ccan/ccan/read_write_all/read_write_all.c:23–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23bool read_all(int fd, void *data, size_t size)
24{
25 while (size) {
26 ssize_t done;
27
28 done = read(fd, data, size);
29 if (done < 0 && errno == EINTR)
30 continue;
31 if (done <= 0)
32 return false;
33 data = (char *)data + done;
34 size -= done;
35 }
36
37 return true;
38}
39

Callers 12

read_payload_headerFunction · 0.85
get_hsm_secretFunction · 0.85
get_encrypted_hsm_secretFunction · 0.85
load_hsmFunction · 0.85
mainFunction · 0.85
decrypt_scbFunction · 0.85
wire_sync_readFunction · 0.85
simple_readFunction · 0.85
sync_crypto_readFunction · 0.85
handshake_successFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 1

mainFunction · 0.68