Home
last modified time | relevance | path

Searched refs:capfd (Results 1 – 3 of 3) sorted by relevance

/freebsd-14.2/contrib/unbound/util/
H A Dmini_event.c106 base->capfd = MAX_FDS; in event_init()
108 if((int)FD_SETSIZE < base->capfd) in event_init()
109 base->capfd = (int)FD_SETSIZE; in event_init()
111 base->fds = (struct event**)calloc((size_t)base->capfd, in event_init()
296 if(ev->ev_fd != -1 && ev->ev_fd >= ev->ev_base->capfd) in event_add()
330 if(ev->ev_fd != -1 && ev->ev_fd >= ev->ev_base->capfd) in event_del()
H A Dmini_event.h111 int capfd; member
/freebsd-14.2/lib/libcasper/services/cap_net/tests/
H A Dnet_test.c249 int capfd, ret, serrno; in test_bind() local
251 capfd = socket(AF_INET, SOCK_STREAM, 0); in test_bind()
252 ATF_REQUIRE(capfd > 0); in test_bind()
258 ret = cap_bind(chan, capfd, (struct sockaddr *)&ipv4, sizeof(ipv4)); in test_bind()
260 close(capfd); in test_bind()
269 int capfd, ret, serrno; in test_connect() local
271 capfd = socket(AF_INET, SOCK_STREAM, 0); in test_connect()
272 ATF_REQUIRE(capfd >= 0); in test_connect()
279 ret = cap_connect(chan, capfd, (struct sockaddr *)&ipv4, sizeof(ipv4)); in test_connect()
281 ATF_REQUIRE(close(capfd) == 0); in test_connect()