Lines Matching refs:fdr
505 static void run_one(struct testcase *test, int fdt, int fdr, in run_one() argument
538 ret = recv_one(fdr, 0); in run_one()
545 ret = recv_one(fdr, 0); in run_one()
552 ret = recv_one(fdr, MSG_DONTWAIT); in run_one()
557 static void run_all(int fdt, int fdr, struct sockaddr *addr, socklen_t alen) in run_all() argument
567 run_one(test, fdt, fdr, addr, alen); in run_all()
574 int fdr, fdt, val; in run_test() local
576 fdr = socket(addr->sa_family, SOCK_DGRAM, 0); in run_test()
577 if (fdr == -1) in run_test()
580 if (bind(fdr, addr, alen)) in run_test()
584 if (setsockopt(fdr, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv))) in run_test()
596 run_all(fdt, fdr, addr, alen); in run_test()
610 run_all(fdt, fdr, addr, 0 /* use connected addr */); in run_test()
615 if (close(fdr)) in run_test()