* 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.5 (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
));
tcsetpgrp(int fd
, pid_t pgrp
)
return(ioctl(fd
, TIOCSPGRP
, &pgrp
));
if (ioctl(fd
, TIOCGPGRP
, &s
) < 0)
t
->c_ispeed
= t
->c_ospeed
= speed
;
* Make a pre-existing termios structure into "raw" mode:
* character-at-a-time mode with no characters interpreted,
t
->c_iflag
&= ~(IGNBRK
|BRKINT
|PARMRK
|ISTRIP
|INLCR
|IGNCR
|ICRNL
|IXON
);
t
->c_lflag
&= ~(ECHO
|ECHONL
|ICANON
|ISIG
|IEXTEN
);
t
->c_cflag
&= ~(CSIZE
|PARENB
);