libexec/telnetd/slc.c
/*
 * default_slc
 *
 * Set pty special characters to all the defaults.
 */
default_slc
Set pty special characters to all the defaults.
default_slc Set pty special characters to all the defaults .
void
default_slc()
{
	register int i;
	for (i = 1; i <= NSLC; i++) {
		slctab[i].current.val = slctab[i].defset.val;
		if (slctab[i].current.val == (cc_t)(_POSIX_VDISABLE))
			slctab[i].current.flag = SLC_NOSUPPORT;
		else
			slctab[i].current.flag = slctab[i].defset.flag;
		if (slctab[i].sptr) {
			*(slctab[i].sptr) = slctab[i].defset.val;
		}
	}
	slcchange = 1;
}
void default_slc ( ) { register int i ; for ( i = 1 ; i <= NSLC ; i ++ ) { slctab [ i ] . current . val = slctab [ i ] . defset . val ; if ( slctab [ i ] . current . val == ( cc_t ) ( _POSIX_VDISABLE ) ) slctab [ i ] . current . flag = SLC_NOSUPPORT ; else slctab [ i ] . current . flag = slctab [ i ] . defset . flag ; if ( slctab [ i ] . sptr ) { * ( slctab [ i ] . sptr ) = slctab [ i ] . defset . val ; } } slcchange = 1 ; }
default_slc
 Set pty special characters to all the defaults.
default_slc Set pty special characters to all the defaults .