Lines Matching refs:fn

88 	int nf, fn;
95 fn = getto(flds);
96 CDEBUG(4, "getto ret %d\n", fn);
97 if (fn < 0)
107 ioctl(fn, TIOCSPGRP, &pgrp);
111 if (chat(nf - F_LOGIN, flds + F_LOGIN, fn,"","") == SUCCESS) {
113 return(fn); /* successful return */
117 DEBUG(6, "close caller (%d)\n", fn);
118 fd_rmlock(fn);
119 close(fn);
125 return(fn);
568 * fn - write file number
576 chat(nf, flds, fn, phstr1, phstr2)
578 int nf, fn;
590 ok = expect(want, fn);
601 sendthem(altern, fn, phstr1, phstr2);
605 sendthem(flds[k+1], fn, phstr1, phstr2);
613 * expect(str, fn) look for expected string w/ possible special chars
622 expect(str, fn)
624 int fn;
636 if (expect_str(buf, fn) == FAIL) {
639 if (wait_for_hangup(fn) == FAIL) {
656 if (expect_str(buf, fn) == FAIL) {
663 * expect_str(str, fn) look for expected string, w/ no special chars
672 expect_str(str, fn)
674 int fn;
705 kr = (*Read)(fn, &nextch, 1);
766 * sendthem(str, fn, phstr1, phstr2) send line of chat sequence
774 if (wrstr(fn, buf, bptr - buf, echocheck) != SUCCESS)\
780 sendthem(str, fn, phstr1, phstr2)
782 int fn;
799 (*genbrk)(fn);
805 setmode(str+5, fn);
814 (void) (*Write)(fn, buf, bptr - buf);
904 (*genbrk)(fn);
912 if ( (*Ioctl)(fn, TCGETA, &ttybuf) != 0 ) {
919 if ( (*Ioctl)(fn, TCSETAW, &ttybuf) != 0 )
932 (void) wrstr(fn, buf, bptr - buf, echocheck);
963 wrstr(fn, buf, len, echocheck)
970 return(wrchr(fn, buf, len));
990 if ((*Write)(fn, dbuf, len) != len)
996 wrchr(fn, buf, len)
997 int fn;
1015 if (((*Write)(fn, &par_tab[cout], 1)) != 1)
1019 if ((*Read)(fn, &cin, 1) != 1)
1318 int fn = FAIL;
1357 fn = getto(alt);
1358 CDEBUG(4, "getto ret %d\n", fn);
1360 return(fn);