* Copyright (c) 1989 The Regents of the University of California.
* %sccs.include.redist.c%
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid
[] = "@(#)termios.c 5.2 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
return(ioctl(fd
, TIOCGETA
, t
));
struct termios localterm
;
localterm
.c_cflag
|= CIGNORE
;
return (ioctl(fd
, TIOCSETA
, t
));
else if (opt
== TCSADRAIN
)
return (ioctl(fd
, TIOCSETAW
, t
));
return (ioctl(fd
, TIOCSETAF
, t
));
return(ioctl(fd
, TIOCSPGRP
, &pgrp
));
if (ioctl(fd
, TIOCGPGRP
, &pgrp
) < 0)
t
->c_ispeed
= t
->c_ospeed
= speed
;
t
->c_iflag
&= ~(IGNBRK
|BRKINT
|PARMRK
|INLCR
|IGNCR
|ICRNL
|IXON
);
t
->c_oflag
&= ~(ONLCR
|OXTABS
);
t
->c_lflag
&= ~(ECHO
|ECHONL
|ICANON
|ISIG
|IEXTEN
);