Home
last modified time | relevance | path

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

/freebsd/tests/sys/kern/
H A Dunix_passfd_test.c445 #define MAXFDS ((MCLBYTES - _ALIGN(sizeof(struct cmsghdr)))/sizeof(void *)) macro
456 cmsg = malloc(CMSG_SPACE((MAXFDS + 1) * sizeof(int))); in ATF_TC_BODY()
462 .msg_controllen = CMSG_LEN((MAXFDS + 1) * sizeof(int)), in ATF_TC_BODY()
468 putfds(cmsg, fd[0], MAXFDS + 1); in ATF_TC_BODY()
473 putfds(cmsg, fd[0], MAXFDS); in ATF_TC_BODY()
474 msghdr.msg_controllen = CMSG_LEN(MAXFDS * sizeof(int)); in ATF_TC_BODY()
478 ATF_REQUIRE(getnfds() == (int)(nfds + MAXFDS)); in ATF_TC_BODY()