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

Function can_read_t

test/defer-taskrun.c:22–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20#define EXEC_FILESIZE (1U<<20)
21
22static bool can_read_t(int fd, int time)
23{
24 int ret;
25 struct pollfd p = {
26 .fd = fd,
27 .events = POLLIN,
28 };
29
30 ret = poll(&p, 1, time);
31
32 return ret == 1;
33}
34
35static bool can_read(int fd)
36{

Callers 2

can_readFunction · 0.85
test_eventfdFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_eventfdFunction · 0.68