Lines Matching refs:fn

84 	int nf, fn;  local
91 fn = getto(flds);
92 CDEBUG(4, "getto ret %d\n", fn);
93 if (fn < 0)
103 ioctl(fn, TIOCSPGRP, &pgrp);
107 if (chat(nf - F_LOGIN, flds + F_LOGIN, fn,"","") == SUCCESS) {
109 return(fn); /* successful return */
113 DEBUG(6, "close caller (%d)\n", fn);
114 fd_rmlock(fn);
115 close(fn);
121 return(fn);
568 chat(nf, flds, fn, phstr1, phstr2) in chat() argument
570 int nf, fn;
582 ok = expect(want, fn);
593 sendthem(altern, fn, phstr1, phstr2);
597 sendthem(flds[k+1], fn, phstr1, phstr2);
614 expect(str, fn) in expect() argument
616 int fn;
628 if (expect_str(buf, fn) == FAIL) {
631 if (wait_for_hangup(fn) == FAIL) {
648 if (expect_str(buf, fn) == FAIL) {
664 expect_str(str, fn) in expect_str() argument
666 int fn;
697 kr = (*Read)(fn, &nextch, 1);
766 if (wrstr(fn, buf, bptr - buf, echocheck) != SUCCESS)\
772 sendthem(str, fn, phstr1, phstr2) in sendthem() argument
774 int fn;
791 (*genbrk)(fn);
797 setmode(str+5, fn);
806 (void) (*Write)(fn, buf, bptr - buf);
896 (*genbrk)(fn);
904 if ( (*Ioctl)(fn, TCGETA, &ttybuf) != 0 ) {
911 if ( (*Ioctl)(fn, TCSETAW, &ttybuf) != 0 )
924 (void) wrstr(fn, buf, bptr - buf, echocheck);
955 wrstr(int fn, char *buf, int len, int echocheck) in wrstr() argument
961 return(wrchr(fn, buf, len)); in wrstr()
981 if ((*Write)(fn, dbuf, len) != len) in wrstr()
987 wrchr(int fn, char *buf, int len) in wrchr() argument
1004 if (((*Write)(fn, &par_tab[cout], 1)) != 1) in wrchr()
1008 if ((*Read)(fn, &cin, 1) != 1) in wrchr()
1307 int fn = FAIL; local
1346 fn = getto(alt);
1347 CDEBUG(4, "getto ret %d\n", fn);
1349 return(fn);