Lines Matching defs:tdat
104 struct test_case_t tdat[] = {
359 int TST_TOTAL = sizeof(tdat) / sizeof(tdat[0]);
381 tdat[testno].setup();
383 iov[0].iov_base = tdat[testno].buf;
384 iov[0].iov_len = tdat[testno].buflen;
385 if (tdat[testno].type != SOCK_STREAM) {
386 msgdat.msg_name = tdat[testno].to;
387 msgdat.msg_namelen = tdat[testno].tolen;
389 msgdat.msg_iov = tdat[testno].iov;
390 msgdat.msg_iovlen = tdat[testno].iovcnt;
395 TEST(sendmsg(s, tdat[testno].msg, tdat[testno].flags));
400 if (TEST_RETURN != tdat[testno].retval ||
402 TEST_ERRNO != tdat[testno].experrno)) {
405 " %d)", tdat[testno].desc,
406 TEST_RETURN, tdat[testno].retval,
407 TEST_ERRNO, tdat[testno].experrno);
410 tdat[testno].desc);
412 tdat[testno].cleanup();
578 if (tdat[testno].experrno == EBADF)
592 s = SAFE_SOCKET(cleanup, tdat[testno].domain, tdat[testno].type,
593 tdat[testno].proto);
594 if (tdat[testno].type == SOCK_STREAM &&
595 connect(s, (struct sockaddr *)tdat[testno].to,
596 tdat[testno].tolen) < 0) {
618 s = SAFE_SOCKET(cleanup, tdat[testno].domain, tdat[testno].type,
619 tdat[testno].proto);
656 s = SAFE_SOCKET(cleanup, tdat[testno].domain, tdat[testno].type,
657 tdat[testno].proto);