Lines Matching defs:tres
235 struct t_bind *tres = NULL; /* bind info */
317 * In any case, try to get its bound info in tres
320 tres = (struct t_bind *)t_alloc(fd, T_BIND, T_ADDR);
321 if (tres == NULL) {
366 if (t_bind(fd, (struct t_bind *)bindaddr, tres) == -1) {
381 (memcmp(bindaddr->addr.buf, tres->addr.buf,
382 (int)tres->addr.len) != 0)) {
389 if (rpc_control(__RPC_SVC_LSTNBKLOG_GET, &tres->qlen)
395 tres->addr.len = 0;
396 if (t_bind(fd, tres, tres) == -1) {
444 /* Copy the entire stuff in tres */
445 if (tres->addr.maxlen < bindaddr->addr.len) {
450 tres->addr.len = bindaddr->addr.len;
451 (void) memcpy(tres->addr.buf, bindaddr->addr.buf,
452 (int)tres->addr.len);
454 if (t_getname(fd, &(tres->addr), LOCALNAME) == -1)
455 tres->addr.len = 0;
473 if (t_getname(fd, &(tres->addr), LOCALNAME) == -1)
474 tres->addr.len = 0;
519 xprt->xp_ltaddr = tres->addr;
522 tres->addr.buf = NULL;
523 (void) t_free((char *)tres, T_BIND);
524 tres = NULL;
564 if (tres)
565 (void) t_free((char *)tres, T_BIND);