Lines Matching defs:fd

110 	int		ct_fd;		/* connection's fd */
168 * Change the mode of the underlying fd.
176 * If the underlying fd is already in the required mode,
203 * NB: fd is copied into a private area.
207 * fd should be open and bound.
210 clnt_vc_create(const int fd, struct netbuf *svcaddr, const rpcprog_t prog,
213 return (_clnt_vc_create_timed(fd, svcaddr, prog, vers, sendsz,
229 _clnt_vc_create_timed(int fd, struct netbuf *svcaddr, rpcprog_t prog,
277 /* Check the current state of the fd. */
278 if ((flag = fcntl(fd, F_GETFL, 0)) < 0) {
288 if (set_up_connection(fd, svcaddr, ct, tp) == FALSE) {
295 ct->ct_fd = fd;
326 if (t_getinfo(fd, &tinfo) == -1) {
383 _set_tcp_conntime(int fd, int optval)
406 if (t_optmgmt(fd, &req, &res) < 0 || res.flags != T_SUCCESS) {
417 _get_tcp_conntime(int fd)
440 if (t_optmgmt(fd, &req, &res) < 0 || res.flags != T_SUCCESS) {
451 set_up_connection(int fd, struct netbuf *svcaddr, struct ct_data *ct,
462 state = t_getstate(fd);
482 rcvcall = (struct t_call *)t_alloc(fd, T_CALL, T_OPT|T_ADDR);
517 if (((curr_timeout = _get_tcp_conntime(fd)) != -1) &&
518 (_set_tcp_conntime(fd, ms) == 0)) {
530 if (t_connect(fd, &sndcallstr, rcvcall) != -1) {
535 switch (t_look(fd)) {
537 (void) t_rcvdis(fd, (struct
546 if ((state = t_getstate(fd)) == T_OUTCON) {
569 if (t_rcvconnect(fd, rcvcall) != -1) {
580 (void) _set_tcp_conntime(fd, curr_timeout);
1180 pfdp[0].fd = ct->ct_fd;
1382 t_rcvall(int fd, char *buf, int len)
1390 res = t_rcv(fd, buf, (unsigned)len, &moreflag);
1393 switch (t_look(fd)) {
1395 (void) t_rcvdis(fd, NULL);
1396 (void) t_snddis(fd, NULL);
1400 (void) t_rcvrel(fd);
1402 (void) t_sndrel(fd);