MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ff_poll

Function ff_poll

lib/ff_syscall_wrapper.c:1571–1586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1569}
1570
1571int
1572ff_poll(struct pollfd fds[], nfds_t nfds, int timeout)
1573{
1574 int rc;
1575 struct timespec ts;
1576 ts.tv_sec = 0;
1577 ts.tv_nsec = 0;
1578 if ((rc = kern_poll(curthread, fds, nfds, &ts, NULL)))
1579 goto kern_fail;
1580 rc = curthread->td_retval[0];
1581 return (rc);
1582
1583kern_fail:
1584 ff_os_errno(rc);
1585 return (-1);
1586}
1587
1588int
1589ff_kqueue(void)

Callers

nothing calls this directly

Calls 2

kern_pollFunction · 0.85
ff_os_errnoFunction · 0.85

Tested by

no test coverage detected