Lines Matching defs:tres
234 struct t_bind *tres = NULL; /* bind info */
317 * In any case, try to get its bound info in tres
319 tres = (struct t_bind *)t_alloc(fd, T_BIND, T_ADDR);
320 if (tres == NULL) {
366 tres) == -1) {
381 (memcmp(bindaddr->addr.buf, tres->addr.buf,
382 (int)tres->addr.len) != 0)) {
389 tres->qlen = 64; /* Chosen Arbitrarily */
390 tres->addr.len = 0;
391 if (t_bind(fd, tres, tres) == -1) {
438 /* Copy the entire stuff in tres */
439 if (tres->addr.maxlen < bindaddr->addr.len) {
444 tres->addr.len = bindaddr->addr.len;
445 (void) memcpy(tres->addr.buf, bindaddr->addr.buf,
446 (int)tres->addr.len);
448 if (t_getname(fd, &(tres->addr), LOCALNAME) == -1)
449 tres->addr.len = 0;
468 if (t_getname(fd, &(tres->addr), LOCALNAME) == -1)
469 tres->addr.len = 0;
514 xprt->xp_ltaddr = tres->addr;
517 tres->addr.buf = NULL;
518 (void) t_free((char *)tres, T_BIND);
519 tres = NULL;
559 if (tres)
560 (void) t_free((char *)tres, T_BIND);