Home
last modified time | relevance | path

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

/freebsd/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/lib/libcasper/services/cap_net/tests/
H A Dnet_test.c248 int capfd, ret, serrno; in test_bind() local
250 capfd = socket(AF_INET, SOCK_STREAM, 0); in test_bind()
251 ATF_REQUIRE(capfd > 0); in test_bind()
257 ret = cap_bind(chan, capfd, (struct sockaddr *)&ipv4, sizeof(ipv4)); in test_bind()
259 close(capfd); in test_bind()
268 int capfd, ret, serrno; in test_connect() local
270 capfd = socket(AF_INET, SOCK_STREAM, 0); in test_connect()
271 ATF_REQUIRE(capfd >= 0); in test_connect()
278 ret = cap_connect(chan, capfd, (struct sockaddr *)&ipv4, sizeof(ipv4)); in test_connect()
280 ATF_REQUIRE(close(capfd) == 0); in test_connect()